diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-11 20:30:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-11 20:30:58 +0000 |
commit | dfab291702a9c6e88981047bf6a3fe42f7d508b0 (patch) | |
tree | edf98a87e6ed40735fda5ba7ce9c6ecf71850c38 /include/llvm/Target | |
parent | b3ac6e40d9dd3bc8157edc47004f39c8f382dc9e (diff) | |
download | llvm-dfab291702a9c6e88981047bf6a3fe42f7d508b0.tar.gz llvm-dfab291702a9c6e88981047bf6a3fe42f7d508b0.tar.bz2 llvm-dfab291702a9c6e88981047bf6a3fe42f7d508b0.tar.xz |
split "JumpTableDirective" (an existing hack) into a PIC and nonPIC
version. This allows TAI implementations to specify the directive to use
based on the mode being codegen'd for.
The real fix for this is to remove JumpTableDirective, but I don't feel
like diving into the jumptable snarl just now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78709 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target')
-rw-r--r-- | include/llvm/Target/TargetAsmInfo.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/llvm/Target/TargetAsmInfo.h b/include/llvm/Target/TargetAsmInfo.h index 2dd644c089..2654025af2 100644 --- a/include/llvm/Target/TargetAsmInfo.h +++ b/include/llvm/Target/TargetAsmInfo.h @@ -184,9 +184,11 @@ namespace llvm { //===--- Section Switching Directives ---------------------------------===// - /// JumpTableDirective - if non-null, the directive to emit before a jump - /// table. + /// JumpTableDirective - if non-null, the directive to emit before jump + /// table entries. FIXME: REMOVE THIS. const char *JumpTableDirective; + const char *PICJumpTableDirective; + //===--- Global Variable Emission Directives --------------------------===// @@ -418,8 +420,8 @@ namespace llvm { const char *getAscizDirective() const { return AscizDirective; } - const char *getJumpTableDirective() const { - return JumpTableDirective; + const char *getJumpTableDirective(bool isPIC) const { + return isPIC ? PICJumpTableDirective : JumpTableDirective; } const char *getAlignDirective() const { return AlignDirective; |