mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
Constify 'isLSDA' and move a method out-of-line.
llvm-svn: 140868
This commit is contained in:
parent
651c847dc5
commit
1485fec8b1
@ -69,6 +69,20 @@ const MachineBasicBlock *ARMConstantPoolValue::getMBB() const {
|
|||||||
return MBB;
|
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) {
|
static bool CPV_streq(const char *S1, const char *S2) {
|
||||||
if (S1 == S2)
|
if (S1 == S2)
|
||||||
return true;
|
return true;
|
||||||
|
@ -82,28 +82,20 @@ public:
|
|||||||
const char *getSymbol() const { return S; }
|
const char *getSymbol() const { return S; }
|
||||||
const BlockAddress *getBlockAddress() const;
|
const BlockAddress *getBlockAddress() const;
|
||||||
const MachineBasicBlock *getMBB() const;
|
const MachineBasicBlock *getMBB() const;
|
||||||
|
|
||||||
ARMCP::ARMCPModifier getModifier() const { return Modifier; }
|
ARMCP::ARMCPModifier getModifier() const { return Modifier; }
|
||||||
const char *getModifierText() const {
|
const char *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";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
bool hasModifier() const { return Modifier != ARMCP::no_modifier; }
|
bool hasModifier() const { return Modifier != ARMCP::no_modifier; }
|
||||||
|
|
||||||
bool mustAddCurrentAddress() const { return AddCurrentAddress; }
|
bool mustAddCurrentAddress() const { return AddCurrentAddress; }
|
||||||
|
|
||||||
unsigned getLabelId() const { return LabelId; }
|
unsigned getLabelId() const { return LabelId; }
|
||||||
unsigned char getPCAdjustment() const { return PCAdjust; }
|
unsigned char getPCAdjustment() const { return PCAdjust; }
|
||||||
|
|
||||||
bool isGlobalValue() const { return Kind == ARMCP::CPValue; }
|
bool isGlobalValue() const { return Kind == ARMCP::CPValue; }
|
||||||
bool isExtSymbol() const { return Kind == ARMCP::CPExtSymbol; }
|
bool isExtSymbol() const { return Kind == ARMCP::CPExtSymbol; }
|
||||||
bool isBlockAddress() { return Kind == ARMCP::CPBlockAddress; }
|
bool isBlockAddress() { return Kind == ARMCP::CPBlockAddress; }
|
||||||
bool isLSDA() { return Kind == ARMCP::CPLSDA; }
|
bool isLSDA() const { return Kind == ARMCP::CPLSDA; }
|
||||||
bool isMachineBasicBlock() { return Kind == ARMCP::CPMachineBasicBlock; }
|
bool isMachineBasicBlock() { return Kind == ARMCP::CPMachineBasicBlock; }
|
||||||
|
|
||||||
virtual unsigned getRelocationInfo() const { return 2; }
|
virtual unsigned getRelocationInfo() const { return 2; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user