diff options
author | Bob Wilson <bob.wilson@apple.com> | 2011-02-03 21:46:10 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2011-02-03 21:46:10 +0000 |
commit | 69df72367f45c0414541196efaf7c13b1ccd3f08 (patch) | |
tree | 328d6fda5a1d9476c7812679af6591f810b7db67 | |
parent | d538e249224a91f85bd4297c71b2bfa71113a9ad (diff) | |
download | external_llvm-69df72367f45c0414541196efaf7c13b1ccd3f08.tar.gz external_llvm-69df72367f45c0414541196efaf7c13b1ccd3f08.tar.bz2 external_llvm-69df72367f45c0414541196efaf7c13b1ccd3f08.zip |
Fix 80-column violations and whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124819 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/ARM/AsmParser/ARMAsmParser.cpp | 6 | ||||
-rw-r--r-- | lib/Target/MBlaze/AsmParser/MBlazeAsmParser.cpp | 3 |
2 files changed, 5 insertions, 4 deletions
diff --git a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp index e40b8463e8..16a6bb1537 100644 --- a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp +++ b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp @@ -550,7 +550,8 @@ static unsigned MatchRegisterName(StringRef Name); /// } -bool ARMAsmParser::ParseRegister(unsigned &RegNo, SMLoc &StartLoc, SMLoc &EndLoc) { +bool ARMAsmParser::ParseRegister(unsigned &RegNo, + SMLoc &StartLoc, SMLoc &EndLoc) { RegNo = TryParseRegister(); return (RegNo == (unsigned)-1); @@ -578,12 +579,11 @@ int ARMAsmParser::TryParseRegister() { .Default(0); } if (!RegNum) return -1; - + Parser.Lex(); // Eat identifier token. return RegNum; } - /// Try to parse a register name. The token must be an Identifier when called. /// If it's a register, an AsmOperand is created. Another AsmOperand is created /// if there is a "writeback". 'true' if it's not a register. diff --git a/lib/Target/MBlaze/AsmParser/MBlazeAsmParser.cpp b/lib/Target/MBlaze/AsmParser/MBlazeAsmParser.cpp index c9e89536bd..15d3357cfe 100644 --- a/lib/Target/MBlaze/AsmParser/MBlazeAsmParser.cpp +++ b/lib/Target/MBlaze/AsmParser/MBlazeAsmParser.cpp @@ -386,7 +386,8 @@ ParseMemory(SmallVectorImpl<MCParsedAsmOperand*> &Operands) { return Op; } -bool MBlazeAsmParser::ParseRegister(unsigned &RegNo, SMLoc &StartLoc, SMLoc &EndLoc) { +bool MBlazeAsmParser::ParseRegister(unsigned &RegNo, + SMLoc &StartLoc, SMLoc &EndLoc) { return (ParseRegister(RegNo) == 0); } |