aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2006-07-27 01:13:04 +0000
committerNate Begeman <natebegeman@mac.com>2006-07-27 01:13:04 +0000
commit2f1ae88445c696a9b9d61e14747ba721190cdc99 (patch)
tree6570b0e6e190b959a613b0d01901a8141eb5cc00 /include
parent30ffe1b7765066300cebfdb29f5676feb7e5d329 (diff)
downloadexternal_llvm-2f1ae88445c696a9b9d61e14747ba721190cdc99.zip
external_llvm-2f1ae88445c696a9b9d61e14747ba721190cdc99.tar.gz
external_llvm-2f1ae88445c696a9b9d61e14747ba721190cdc99.tar.bz2
Support jump tables when in PIC relocation model
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29318 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/AsmPrinter.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h
index c90a3ee..802fe6d 100644
--- a/include/llvm/CodeGen/AsmPrinter.h
+++ b/include/llvm/CodeGen/AsmPrinter.h
@@ -156,9 +156,15 @@ namespace llvm {
/// before emitting the constant pool for a function.
const char *ConstantPoolSection; // Defaults to "\t.section .rodata\n"
- /// JumpTableSection - This is the section that we SwitchToSection right
- /// before emitting the jump tables for a function.
- const char *JumpTableSection; // Defaults to "\t.section .rodata\n"
+ /// JumpTableDataSection - This is the section that we SwitchToSection right
+ /// before emitting the jump tables for a function when the relocation model
+ /// is not PIC.
+ const char *JumpTableDataSection; // Defaults to "\t.section .rodata\n"
+
+ /// JumpTableTextSection - This is the section that we SwitchToSection right
+ /// before emitting the jump tables for a function when the relocation model
+ /// is PIC.
+ const char *JumpTableTextSection; // Defaults to "\t.text\n"
/// StaticCtorsSection - This is the directive that is emitted to switch to
/// a section to emit the static constructor list.