diff options
author | d0k <d0k@91177308-0d34-0410-b5e6-96231b3b80d8> | 2013-10-10 14:35:45 +0000 |
---|---|---|
committer | d0k <d0k@91177308-0d34-0410-b5e6-96231b3b80d8> | 2013-10-10 14:35:45 +0000 |
commit | 1810af28bd8c3124c15c064906e7363793686135 (patch) | |
tree | 09d78a3a26f09e84735e4195e566584f0996b91a | |
parent | 58e3e1021d1ab7ab9a36d81a504913515fba9298 (diff) |
ARM: Put isV8EligibleForIT into the llvm namespace. While there make it inline.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192350 91177308-0d34-0410-b5e6-96231b3b80d8
-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 eaec0507410..dafc4b3a82b 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 |