summaryrefslogtreecommitdiff
path: root/lib/Target/ARM/ARMFeatures.h
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-10-10 14:35:45 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-10-10 14:35:45 +0000
commit8ccf2b3c9e0f70220c88f3328ddebebd7866f92c (patch)
tree09d78a3a26f09e84735e4195e566584f0996b91a /lib/Target/ARM/ARMFeatures.h
parent58e3e1021d1ab7ab9a36d81a504913515fba9298 (diff)
downloadllvm-8ccf2b3c9e0f70220c88f3328ddebebd7866f92c.tar.gz
llvm-8ccf2b3c9e0f70220c88f3328ddebebd7866f92c.tar.bz2
llvm-8ccf2b3c9e0f70220c88f3328ddebebd7866f92c.tar.xz
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
Diffstat (limited to 'lib/Target/ARM/ARMFeatures.h')
-rw-r--r--lib/Target/ARM/ARMFeatures.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Target/ARM/ARMFeatures.h b/lib/Target/ARM/ARMFeatures.h
index eaec050741..dafc4b3a82 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