[llvm-commits] [llvm] r95594 - /llvm/trunk/lib/Target/X86/AsmParser/X86AsmLexer.cpp
Sean Callanan
scallanan at apple.com
Mon Feb 8 14:50:23 PST 2010
Author: spyffe
Date: Mon Feb 8 16:50:23 2010
New Revision: 95594
URL: http://llvm.org/viewvc/llvm-project?rev=95594&view=rev
Log:
Fixed the AT&T AsmLexer to report the proper strings
for register tokens. Before, if it encountered
'%al,' it would report 'al,' as the token. Now it
correctly reports '%al'.
Modified:
llvm/trunk/lib/Target/X86/AsmParser/X86AsmLexer.cpp
Modified: llvm/trunk/lib/Target/X86/AsmParser/X86AsmLexer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/AsmParser/X86AsmLexer.cpp?rev=95594&r1=95593&r2=95594&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/AsmParser/X86AsmLexer.cpp (original)
+++ llvm/trunk/lib/Target/X86/AsmParser/X86AsmLexer.cpp Mon Feb 8 16:50:23 2010
@@ -72,7 +72,7 @@
static unsigned MatchRegisterName(const StringRef &Name);
AsmToken X86AsmLexer::LexTokenATT() {
- const AsmToken &lexedToken = lexDefinite();
+ const AsmToken lexedToken = lexDefinite();
switch (lexedToken.getKind()) {
default:
More information about the llvm-commits
mailing list