[llvm] r192350 - ARM: Put isV8EligibleForIT into the llvm namespace. While there make it inline.

Benjamin Kramer benny.kra at googlemail.com
Thu Oct 10 07:35:45 PDT 2013


Author: d0k
Date: Thu Oct 10 09:35:45 2013
New Revision: 192350

URL: http://llvm.org/viewvc/llvm-project?rev=192350&view=rev
Log:
ARM: Put isV8EligibleForIT into the llvm namespace. While there make it inline.

Modified:
    llvm/trunk/lib/Target/ARM/ARMFeatures.h

Modified: llvm/trunk/lib/Target/ARM/ARMFeatures.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMFeatures.h?rev=192350&r1=192349&r2=192350&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMFeatures.h (original)
+++ llvm/trunk/lib/Target/ARM/ARMFeatures.h Thu Oct 10 09:35:45 2013
@@ -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,
   }
 }
 
+}
+
 #endif





More information about the llvm-commits mailing list