[SPARC] Don't compare arch name as a string, use the enum instead.
[oota-llvm.git] / lib / Target / Sparc / AsmParser / SparcAsmParser.cpp
index fc56bf9ad8e849a66e8f0ca61ffebd51e4d87230..bba5c5ed176516233585255ff46a89196ffeed81 100644 (file)
@@ -77,7 +77,7 @@ class SparcAsmParser : public MCTargetAsmParser {
   bool parseDirectiveWord(unsigned Size, SMLoc L);
 
   bool is64Bit() const {
-    return STI.getTargetTriple().getArchName().startswith("sparcv9");
+    return STI.getTargetTriple().getArch() == Triple::sparcv9;
   }
 
   void expandSET(MCInst &Inst, SMLoc IDLoc,