[llvm-commits] [llvm] r124819 - in /llvm/trunk/lib/Target: ARM/AsmParser/ARMAsmParser.cpp MBlaze/AsmParser/MBlazeAsmParser.cpp
Bob Wilson
bob.wilson at apple.com
Thu Feb 3 13:46:10 PST 2011
Author: bwilson
Date: Thu Feb 3 15:46:10 2011
New Revision: 124819
URL: http://llvm.org/viewvc/llvm-project?rev=124819&view=rev
Log:
Fix 80-column violations and whitespace.
Modified:
llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
llvm/trunk/lib/Target/MBlaze/AsmParser/MBlazeAsmParser.cpp
Modified: llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp?rev=124819&r1=124818&r2=124819&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp (original)
+++ llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp Thu Feb 3 15:46:10 2011
@@ -550,7 +550,8 @@
/// }
-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 @@
.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.
Modified: llvm/trunk/lib/Target/MBlaze/AsmParser/MBlazeAsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/MBlaze/AsmParser/MBlazeAsmParser.cpp?rev=124819&r1=124818&r2=124819&view=diff
==============================================================================
--- llvm/trunk/lib/Target/MBlaze/AsmParser/MBlazeAsmParser.cpp (original)
+++ llvm/trunk/lib/Target/MBlaze/AsmParser/MBlazeAsmParser.cpp Thu Feb 3 15:46:10 2011
@@ -386,7 +386,8 @@
return Op;
}
-bool MBlazeAsmParser::ParseRegister(unsigned &RegNo, SMLoc &StartLoc, SMLoc &EndLoc) {
+bool MBlazeAsmParser::ParseRegister(unsigned &RegNo,
+ SMLoc &StartLoc, SMLoc &EndLoc) {
return (ParseRegister(RegNo) == 0);
}
More information about the llvm-commits
mailing list