[llvm-commits] [llvm] r134119 - /llvm/trunk/lib/MC/MCDwarf.cpp

Bill Wendling isanbard at gmail.com
Wed Jun 29 17:30:52 PDT 2011


Author: void
Date: Wed Jun 29 19:30:52 2011
New Revision: 134119

URL: http://llvm.org/viewvc/llvm-project?rev=134119&view=rev
Log:
* Use the proper size to output the range size.
* Rough in the compact encoding part.

Modified:
    llvm/trunk/lib/MC/MCDwarf.cpp

Modified: llvm/trunk/lib/MC/MCDwarf.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCDwarf.cpp?rev=134119&r1=134118&r2=134119&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCDwarf.cpp (original)
+++ llvm/trunk/lib/MC/MCDwarf.cpp Wed Jun 29 19:30:52 2011
@@ -667,7 +667,14 @@
   // Range Length
   const MCExpr *Range = MakeStartMinusEndExpr(Streamer, *Frame.Begin,
                                               *Frame.End, 0);
-  Streamer.EmitAbsValue(Range, Size);
+  Streamer.EmitAbsValue(Range, 4);
+
+  // FIXME:
+  // Compact Encoding
+  uint32_t Encoding = 0;
+  Size = getSizeForEncoding(Streamer, dwarf::DW_EH_PE_udata4);
+  Streamer.EmitIntValue(Encoding, Size);
+
 
   // Personality Function
   Size = getSizeForEncoding(Streamer, Frame.PersonalityEncoding);





More information about the llvm-commits mailing list