diff options
-rw-r--r-- | lib/Target/ARM/ARMFeatures.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Target/ARM/ARMFeatures.h b/lib/Target/ARM/ARMFeatures.h index eaec050..dafc4b3 100644 --- a/lib/Target/ARM/ARMFeatures.h +++ b/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 |