mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-14 23:48:56 +00:00
* 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135215 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9b4a172ac0
commit
4bb5b03712
@ -722,6 +722,10 @@ bool FrameEmitterImpl::EmitCompactUnwind(MCStreamer &Streamer,
|
||||
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 @@ bool FrameEmitterImpl::EmitCompactUnwind(MCStreamer &Streamer,
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user