summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2014-04-12 18:45:24 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2014-04-12 18:45:24 +0000
commit44a53da3463e9d221211f04ac77e9526e98de483 (patch)
treec4dd07ac048ee288dc3a931b966d62a248d4959d /llvm/lib/Target
parent30120c0626698e98f4f98b32b4e1de169f35c342 (diff)
downloadbcm5719-llvm-44a53da3463e9d221211f04ac77e9526e98de483.tar.gz
bcm5719-llvm-44a53da3463e9d221211f04ac77e9526e98de483.zip
Spell the specialization namespace correctly.
Not sure why clang didn't diagnose this (GCC does). llvm-svn: 206117
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp4
-rw-r--r--llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp4
2 files changed, 6 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp b/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
index f67d578d104..184b2abab72 100644
--- a/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
+++ b/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
@@ -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
diff --git a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
index 88fc087bb73..a22d03e20be 100644
--- a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
+++ b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
@@ -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::
OpenPOWER on IntegriCloud