aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/MC/MCAsmInfo.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-25 21:10:10 +0000
committerChris Lattner <sabre@nondot.org>2010-01-25 21:10:10 +0000
commit78f485afb723121eedf4b6907ae6eb53da8af03c (patch)
tree33ce4077f681dcb4ec7676ad7ab0c37a667feb13 /include/llvm/MC/MCAsmInfo.h
parenta86106ed88582b913ac2394a5a4ad1868b299da4 (diff)
downloadexternal_llvm-78f485afb723121eedf4b6907ae6eb53da8af03c.zip
external_llvm-78f485afb723121eedf4b6907ae6eb53da8af03c.tar.gz
external_llvm-78f485afb723121eedf4b6907ae6eb53da8af03c.tar.bz2
rename MAI::PICJumpTableDirective to MAI::GPRel32Directive to
make it clear what it is, instead of how it is used. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94448 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCAsmInfo.h')
-rw-r--r--include/llvm/MC/MCAsmInfo.h16
1 files changed, 6 insertions, 10 deletions
diff --git a/include/llvm/MC/MCAsmInfo.h b/include/llvm/MC/MCAsmInfo.h
index 8a3ab73..c4f15a0 100644
--- a/include/llvm/MC/MCAsmInfo.h
+++ b/include/llvm/MC/MCAsmInfo.h
@@ -134,6 +134,11 @@ namespace llvm {
const char *Data32bitsDirective; // Defaults to "\t.long\t"
const char *Data64bitsDirective; // Defaults to "\t.quad\t"
+ /// GPRel32Directive - if non-null, a directive that is used to emit a word
+ /// which should be relocated as a 32-bit GP-relative offset, e.g. .gpword
+ /// on Mips or .gprel32 on Alpha.
+ const char *GPRel32Directive; // Defaults to NULL.
+
/// getDataASDirective - Return the directive that should be used to emit
/// data of the specified size to the specified numeric address space.
virtual const char *getDataASDirective(unsigned Size, unsigned AS) const {
@@ -168,13 +173,6 @@ namespace llvm {
/// space created as the result of a alignment directive.
unsigned TextAlignFillValue; // Defaults to 0
- //===--- Section Switching Directives ---------------------------------===//
-
- /// PICJumpTableDirective - if non-null, the directive to emit before jump
- /// table entries. FIXME: REMOVE THIS.
- const char *PICJumpTableDirective; // Defaults to NULL.
-
-
//===--- Global Variable Emission Directives --------------------------===//
/// GlobalDirective - This is the directive used to declare a global entity.
@@ -300,6 +298,7 @@ namespace llvm {
const char *getData64bitsDirective(unsigned AS = 0) const {
return AS == 0 ? Data64bitsDirective : getDataASDirective(64, AS);
}
+ const char *getGPRel32Directive() const { return GPRel32Directive; }
/// getNonexecutableStackSection - Targets can implement this method to
/// specify a section to switch to if the translation unit doesn't have any
@@ -373,9 +372,6 @@ namespace llvm {
const char *getAscizDirective() const {
return AscizDirective;
}
- const char *getPICJumpTableDirective() const {
- return PICJumpTableDirective;
- }
const char *getAlignDirective() const {
return AlignDirective;
}