llvm.org GIT mirror llvm / 2c2ba4c
Spell the specialization namespace correctly. Not sure why clang didn't diagnose this (GCC does). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206117 91177308-0d34-0410-b5e6-96231b3b80d8 Benjamin Kramer 6 years ago
2 changed file(s) with 6 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
534534 return true;
535535 }
536536
537 template <> bool llvm::IsCPSRDead(MachineInstr *MI) {
537 namespace llvm {
538 template <> bool IsCPSRDead(MachineInstr *MI) {
538539 for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
539540 const MachineOperand &MO = MI->getOperand(i);
540541 if (!MO.isReg() || MO.isUndef() || MO.isUse())
546547 }
547548 // all definitions of CPSR are dead
548549 return true;
550 }
549551 }
550552
551553 /// FIXME: Works around a gcc miscompilation with -fstrict-aliasing.
79747974 return Match_Success;
79757975 }
79767976
7977 template <> inline bool llvm::IsCPSRDead(MCInst *Instr) {
7977 namespace llvm {
7978 template <> inline bool IsCPSRDead(MCInst *Instr) {
79787979 return true; // In an assembly source, no need to second-guess
7980 }
79797981 }
79807982
79817983 static const char *getSubtargetFeatureName(unsigned Val);