ARM: Put isV8EligibleForIT into the llvm namespace. While there make it inline.
authorBenjamin Kramer <benny.kra@googlemail.com>
Thu, 10 Oct 2013 14:35:45 +0000 (14:35 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Thu, 10 Oct 2013 14:35:45 +0000 (14:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192350 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMFeatures.h

index eaec0507410c991e34fb75cd7ad03600594ea3da..dafc4b3a82bd1b4bb47c728669ba320aa9b763bf 100644 (file)
 
 #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