From: Benjamin Kramer Date: Thu, 10 Oct 2013 14:35:45 +0000 (+0000) Subject: ARM: Put isV8EligibleForIT into the llvm namespace. While there make it inline. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8ccf2b3c9e0f70220c88f3328ddebebd7866f92c;p=oota-llvm.git 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 --- 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 // 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