[llvm-commits] [llvm] r135215 - /llvm/trunk/lib/MC/MCDwarf.cpp
Bill Wendling
isanbard at gmail.com
Thu Jul 14 16:34:45 PDT 2011
Author: void
Date: Thu Jul 14 18:34:45 2011
New Revision: 135215
URL: http://llvm.org/viewvc/llvm-project?rev=135215&view=rev
Log:
* If we have an LSDA, we need to mark it in the encoding.
* The personality function should be encoded as an absolute pointer to the function.
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=135215&r1=135214&r2=135215&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCDwarf.cpp (original)
+++ llvm/trunk/lib/MC/MCDwarf.cpp Thu Jul 14 18:34:45 2011
@@ -722,6 +722,10 @@
getDataAlignmentFactor(Streamer), IsEH);
if (!Encoding) return false;
+ // The encoding needs to know we have an LSDA.
+ if (Frame.Lsda)
+ Encoding |= 0x40000000;
+
Streamer.SwitchSection(TAI.getCompactUnwindSection());
// Range Start
@@ -743,7 +747,7 @@
Streamer.EmitIntValue(Encoding, Size);
// Personality Function
- Size = getSizeForEncoding(Streamer, Frame.PersonalityEncoding);
+ Size = getSizeForEncoding(Streamer, dwarf::DW_EH_PE_absptr);
if (VerboseAsm) Streamer.AddComment("Personality Function");
if (Frame.Personality)
Streamer.EmitSymbolValue(Frame.Personality, Size);
More information about the llvm-commits
mailing list