projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[SPARC] Don't compare arch name as a string, use the enum instead.
[oota-llvm.git]
/
lib
/
Target
/
Sparc
/
AsmParser
/
SparcAsmParser.cpp
diff --git
a/lib/Target/Sparc/AsmParser/SparcAsmParser.cpp
b/lib/Target/Sparc/AsmParser/SparcAsmParser.cpp
index fc56bf9ad8e849a66e8f0ca61ffebd51e4d87230..bba5c5ed176516233585255ff46a89196ffeed81 100644
(file)
--- a/
lib/Target/Sparc/AsmParser/SparcAsmParser.cpp
+++ b/
lib/Target/Sparc/AsmParser/SparcAsmParser.cpp
@@
-77,7
+77,7
@@
class SparcAsmParser : public MCTargetAsmParser {
bool parseDirectiveWord(unsigned Size, SMLoc L);
bool is64Bit() const {
- return STI.getTargetTriple().getArch
Name().startswith("sparcv9")
;
+ return STI.getTargetTriple().getArch
() == Triple::sparcv9
;
}
void expandSET(MCInst &Inst, SMLoc IDLoc,