[llvm-commits] [llvm] r129921 - /llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Devang Patel
dpatel at apple.com
Thu Apr 21 10:50:24 PDT 2011
Author: dpatel
Date: Thu Apr 21 12:50:24 2011
New Revision: 129921
URL: http://llvm.org/viewvc/llvm-project?rev=129921&view=rev
Log:
Add comment in output stream.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=129921&r1=129920&r2=129921&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Thu Apr 21 12:50:24 2011
@@ -2715,7 +2715,10 @@
} else {
Asm->OutStreamer.AddComment("Loc expr size");
Asm->EmitInt16(1 + MCAsmInfo::getULEB128Size(Reg));
+ Asm->OutStreamer.AddComment(
+ dwarf::OperationEncodingString(dwarf::DW_OP_regx));
Asm->EmitInt8(dwarf::DW_OP_regx);
+ Asm->OutStreamer.AddComment(Twine(Reg));
Asm->EmitULEB128(Reg);
}
}
More information about the llvm-commits
mailing list