aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/ARM/ARMBaseInfo.h
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2010-09-22 23:27:36 +0000
committerJim Grosbach <grosbach@apple.com>2010-09-22 23:27:36 +0000
commit637d89fe0eca4fa2b9c95f6c15eb69a99bae83bc (patch)
tree297d494459ff003f9e2d1d7bd36c0e90414d01c4 /lib/Target/ARM/ARMBaseInfo.h
parentdf046f078e95417f0ece761c92b8cc549f7ab105 (diff)
downloadexternal_llvm-637d89fe0eca4fa2b9c95f6c15eb69a99bae83bc.tar.gz
external_llvm-637d89fe0eca4fa2b9c95f6c15eb69a99bae83bc.tar.bz2
external_llvm-637d89fe0eca4fa2b9c95f6c15eb69a99bae83bc.zip
Add support for ELF PLT references for ARM MC asm printing. Adding a
new VariantKind to the MCSymbolExpr seems like overkill, but I'm not sure there's a more straightforward way to get the printing difference captured. (i.e., x86 uses @PLT, ARM uses (PLT)). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114613 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMBaseInfo.h')
-rw-r--r--lib/Target/ARM/ARMBaseInfo.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMBaseInfo.h b/lib/Target/ARM/ARMBaseInfo.h
index a460a5c05c..2da7be25a1 100644
--- a/lib/Target/ARM/ARMBaseInfo.h
+++ b/lib/Target/ARM/ARMBaseInfo.h
@@ -181,7 +181,11 @@ namespace ARMII {
/// MO_HI16 - On a symbol operand, this represents a relocation containing
/// higher 16 bit of the address. Used only via movt instruction.
- MO_HI16
+ MO_HI16,
+
+ /// MO_PLT - On a symbol operand, this represents an ELF PLT reference on a
+ /// call operand.
+ MO_PLT
};
} // end namespace ARMII