diff options
author | Andrew Lenharth <andrewl@lenharth.org> | 2005-07-28 18:13:59 +0000 |
---|---|---|
committer | Andrew Lenharth <andrewl@lenharth.org> | 2005-07-28 18:13:59 +0000 |
commit | fe660397e14ecba84e792ada489f2bda7269b413 (patch) | |
tree | abbe296b7e73783a490283be59ba14edcd0812de /lib/CodeGen/MachineCodeEmitter.cpp | |
parent | 3be872ed59c631213fc84c29603545e362623c76 (diff) |
new is not a valid default anywhere, so make this pure virtual
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22542 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineCodeEmitter.cpp')
-rw-r--r-- | lib/CodeGen/MachineCodeEmitter.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/CodeGen/MachineCodeEmitter.cpp b/lib/CodeGen/MachineCodeEmitter.cpp index 3037cba297..1090d762d7 100644 --- a/lib/CodeGen/MachineCodeEmitter.cpp +++ b/lib/CodeGen/MachineCodeEmitter.cpp @@ -51,6 +51,9 @@ namespace { std::cout << "<relocation> "; } + virtual unsigned char* allocateGlobal(unsigned size, unsigned alignment) + { return 0; } + uint64_t getConstantPoolEntryAddress(unsigned Num) { return 0; } uint64_t getCurrentPCValue() { return 0; } uint64_t getCurrentPCOffset() { return 0; } @@ -142,6 +145,10 @@ namespace { uint64_t getConstantPoolEntryAddress(unsigned Num) { return MCE.getConstantPoolEntryAddress(Num); } + + virtual unsigned char* allocateGlobal(unsigned size, unsigned alignment) + { return MCE.allocateGlobal(size, alignment); } + uint64_t getCurrentPCValue() { return MCE.getCurrentPCValue(); } |