aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineCodeEmitter.cpp
diff options
context:
space:
mode:
authorAndrew Lenharth <andrewl@lenharth.org>2005-07-28 18:13:59 +0000
committerAndrew Lenharth <andrewl@lenharth.org>2005-07-28 18:13:59 +0000
commit3faa82219ad19d5e19ebdd90a2d4434d40b565ad (patch)
tree8381d4a581177257e2c21723dd94626dc820a11d /llvm/lib/CodeGen/MachineCodeEmitter.cpp
parent29f83e099765528eab3c848df524d4b9f7e025e5 (diff)
downloadllvm-3faa82219ad19d5e19ebdd90a2d4434d40b565ad.zip
llvm-3faa82219ad19d5e19ebdd90a2d4434d40b565ad.tar.gz
llvm-3faa82219ad19d5e19ebdd90a2d4434d40b565ad.tar.bz2
new is not a valid default anywhere, so make this pure virtual
llvm-svn: 22542
Diffstat (limited to 'llvm/lib/CodeGen/MachineCodeEmitter.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineCodeEmitter.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineCodeEmitter.cpp b/llvm/lib/CodeGen/MachineCodeEmitter.cpp
index 3037cba..1090d76 100644
--- a/llvm/lib/CodeGen/MachineCodeEmitter.cpp
+++ b/llvm/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();
}