[llvm] r206117 - Spell the specialization namespace correctly.

Benjamin Kramer benny.kra at googlemail.com
Sat Apr 12 11:45:24 PDT 2014


Author: d0k
Date: Sat Apr 12 13:45:24 2014
New Revision: 206117

URL: http://llvm.org/viewvc/llvm-project?rev=206117&view=rev
Log:
Spell the specialization namespace correctly.

Not sure why clang didn't diagnose this (GCC does).

Modified:
    llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp
    llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp

Modified: llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp?rev=206117&r1=206116&r2=206117&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp Sat Apr 12 13:45:24 2014
@@ -535,7 +535,8 @@ bool ARMBaseInstrInfo::isPredicable(Mach
   return true;
 }
 
-template <> bool llvm::IsCPSRDead<MachineInstr>(MachineInstr *MI) {
+namespace llvm {
+template <> bool IsCPSRDead<MachineInstr>(MachineInstr *MI) {
   for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
     const MachineOperand &MO = MI->getOperand(i);
     if (!MO.isReg() || MO.isUndef() || MO.isUse())
@@ -548,6 +549,7 @@ template <> bool llvm::IsCPSRDead<Machin
   // all definitions of CPSR are dead
   return true;
 }
+}
 
 /// FIXME: Works around a gcc miscompilation with -fstrict-aliasing.
 LLVM_ATTRIBUTE_NOINLINE

Modified: llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp?rev=206117&r1=206116&r2=206117&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp (original)
+++ llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp Sat Apr 12 13:45:24 2014
@@ -7975,9 +7975,11 @@ unsigned ARMAsmParser::checkTargetMatchP
   return Match_Success;
 }
 
-template <> inline bool llvm::IsCPSRDead<MCInst>(MCInst *Instr) {
+namespace llvm {
+template <> inline bool IsCPSRDead<MCInst>(MCInst *Instr) {
   return true; // In an assembly source, no need to second-guess
 }
+}
 
 static const char *getSubtargetFeatureName(unsigned Val);
 bool ARMAsmParser::





More information about the llvm-commits mailing list