[llvm-commits] [llvm] r118662 - /llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
Bill Wendling
isanbard at gmail.com
Tue Nov 9 17:07:54 PST 2010
Author: void
Date: Tue Nov 9 19:07:54 2010
New Revision: 118662
URL: http://llvm.org/viewvc/llvm-project?rev=118662&view=rev
Log:
Emit a '!' if this is a "writeback" register or memory address.
Modified:
llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.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=118662&r1=118661&r2=118662&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp (original)
+++ llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp Tue Nov 9 19:07:54 2010
@@ -382,10 +382,10 @@
getImm()->print(OS);
break;
case Memory:
- OS << "<memory>";
+ OS << "<memory" << (!Mem.Writeback ? ">" : "!>");
break;
case Register:
- OS << "<register " << getReg() << ">";
+ OS << "<register " << getReg() << (!Reg.Writeback ? ">" : "!>");
break;
case RegisterList: {
OS << "<register_list ";
More information about the llvm-commits
mailing list