From 8ccf2b3c9e0f70220c88f3328ddebebd7866f92c Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Thu, 10 Oct 2013 14:35:45 +0000 Subject: [PATCH] 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 --- lib/Target/ARM/ARMFeatures.h | 6 ++++-- 1 file 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 // 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 -- 2.34.1