diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2013-10-10 14:35:45 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2013-10-10 14:35:45 +0000 |
commit | b3b79a434580f28a2e44dac70e3f6f5e88e98f79 (patch) | |
tree | f3d9ecac9cb4c4b02b89fab2142b2684db32b51a | |
parent | 60d1b046dd3f24bacd6f4dc2acd1c033d668de86 (diff) | |
download | llvm-b3b79a434580f28a2e44dac70e3f6f5e88e98f79.zip llvm-b3b79a434580f28a2e44dac70e3f6f5e88e98f79.tar.gz llvm-b3b79a434580f28a2e44dac70e3f6f5e88e98f79.tar.bz2 |
ARM: Put isV8EligibleForIT into the llvm namespace. While there make it inline.
llvm-svn: 192350
-rw-r--r-- | llvm/lib/Target/ARM/ARMFeatures.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/ARMFeatures.h b/llvm/lib/Target/ARM/ARMFeatures.h index eaec050..dafc4b3 100644 --- a/llvm/lib/Target/ARM/ARMFeatures.h +++ b/llvm/lib/Target/ARM/ARMFeatures.h @@ -16,10 +16,10 @@ #include "ARM.h" -using namespace llvm; +namespace llvm { template<typename InstrType> // could be MachineInstr or MCInst -bool isV8EligibleForIT(InstrType *Instr, int BLXOperandIndex=0) { +inline bool isV8EligibleForIT(InstrType *Instr, int BLXOperandIndex = 0) { switch (Instr->getOpcode()) { default: return false; @@ -88,4 +88,6 @@ bool isV8EligibleForIT(InstrType *Instr, int BLXOperandIndex=0) { } } +} + #endif |