Spell the specialization namespace correctly.

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

llvm-svn: 206117
This commit is contained in:
Benjamin Kramer 2014-04-12 18:45:24 +00:00
parent 30120c0626
commit 44a53da346
2 changed files with 6 additions and 2 deletions

View File

@ -535,7 +535,8 @@ bool ARMBaseInstrInfo::isPredicable(MachineInstr *MI) const {
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<MachineInstr>(MachineInstr *MI) {
// all definitions of CPSR are dead
return true;
}
}
/// FIXME: Works around a gcc miscompilation with -fstrict-aliasing.
LLVM_ATTRIBUTE_NOINLINE

View File

@ -7975,9 +7975,11 @@ unsigned ARMAsmParser::checkTargetMatchPredicate(MCInst &Inst) {
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::