summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/ELFWriter.cpp
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2006-04-22 18:53:45 +0000
committerNate Begeman <natebegeman@mac.com>2006-04-22 18:53:45 +0000
commit4ca2ea5b43a69c3786f8636675b486455a2cbf3f (patch)
treec773e752243da2d8cdb31290fd9b3d8edeba04ec /llvm/lib/CodeGen/ELFWriter.cpp
parente728efdfce8bb978a576fa3ba9306d17d565b077 (diff)
downloadbcm5719-llvm-4ca2ea5b43a69c3786f8636675b486455a2cbf3f.tar.gz
bcm5719-llvm-4ca2ea5b43a69c3786f8636675b486455a2cbf3f.zip
JumpTable support! What this represents is working asm and jit support for
x86 and ppc for 100% dense switch statements when relocations are non-PIC. This support will be extended and enhanced in the coming days to support PIC, and less dense forms of jump tables. llvm-svn: 27947
Diffstat (limited to 'llvm/lib/CodeGen/ELFWriter.cpp')
-rw-r--r--llvm/lib/CodeGen/ELFWriter.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/ELFWriter.cpp b/llvm/lib/CodeGen/ELFWriter.cpp
index c0b2cdfd2aa..4be24198864 100644
--- a/llvm/lib/CodeGen/ELFWriter.cpp
+++ b/llvm/lib/CodeGen/ELFWriter.cpp
@@ -84,7 +84,10 @@ namespace llvm {
assert(0 && "CP not implementated yet!");
return 0;
}
-
+ virtual uint64_t getJumpTableEntryAddress(unsigned Index) {
+ assert(0 && "JT not implementated yet!");
+ return 0;
+ }
virtual unsigned char* allocateGlobal(unsigned size, unsigned alignment) {
assert(0 && "Globals not implemented yet!");
return 0;
OpenPOWER on IntegriCloud