diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-09-30 18:42:06 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-09-30 18:42:06 +0000 |
commit | d98f838284b7c539f274bb21820b2df3588a295e (patch) | |
tree | 1d09e32ed81d1052f4a769fc2b689b3dc6e24cbd /lib/Target/ARM/ARMConstantPoolValue.cpp | |
parent | 0cc4a958f3f27dafd5c6039962f3e3ddb17ba39f (diff) |
Constify 'isLSDA' and move a method out-of-line.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140868 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMConstantPoolValue.cpp')
-rw-r--r-- | lib/Target/ARM/ARMConstantPoolValue.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMConstantPoolValue.cpp b/lib/Target/ARM/ARMConstantPoolValue.cpp index dccdefbfe8..8dae56ab5e 100644 --- a/lib/Target/ARM/ARMConstantPoolValue.cpp +++ b/lib/Target/ARM/ARMConstantPoolValue.cpp @@ -69,6 +69,20 @@ const MachineBasicBlock *ARMConstantPoolValue::getMBB() const { return MBB; } +const char *ARMConstantPoolValue::getModifierText() const { + switch (Modifier) { + default: llvm_unreachable("Unknown modifier!"); + // FIXME: Are these case sensitive? It'd be nice to lower-case all the + // strings if that's legal. + case ARMCP::no_modifier: return "none"; + case ARMCP::TLSGD: return "tlsgd"; + case ARMCP::GOT: return "GOT"; + case ARMCP::GOTOFF: return "GOTOFF"; + case ARMCP::GOTTPOFF: return "gottpoff"; + case ARMCP::TPOFF: return "tpoff"; + } +} + static bool CPV_streq(const char *S1, const char *S2) { if (S1 == S2) return true; |