mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 21:00:29 +00:00
Stupid error: If the LSDA and Personality functions aren't there, emit 0 instead
of the encoding. llvm-svn: 134117
This commit is contained in:
parent
66c4bc1dda
commit
5a7a3562e0
@ -670,20 +670,18 @@ bool FrameEmitterImpl::EmitCompactUnwind(MCStreamer &Streamer,
|
||||
Streamer.EmitAbsValue(Range, Size);
|
||||
|
||||
// Personality Function
|
||||
if (Frame.Personality) {
|
||||
Size = getSizeForEncoding(Streamer, Frame.PersonalityEncoding);
|
||||
Size = getSizeForEncoding(Streamer, Frame.PersonalityEncoding);
|
||||
if (Frame.Personality)
|
||||
Streamer.EmitSymbolValue(Frame.Personality, Size);
|
||||
} else {
|
||||
Streamer.EmitIntValue(Frame.PersonalityEncoding, 0); // No personality fn
|
||||
}
|
||||
else
|
||||
Streamer.EmitIntValue(0, Size); // No personality fn
|
||||
|
||||
// LSDA
|
||||
if (Frame.Lsda) {
|
||||
Size = getSizeForEncoding(Streamer, Frame.LsdaEncoding);
|
||||
Size = getSizeForEncoding(Streamer, Frame.LsdaEncoding);
|
||||
if (Frame.Lsda)
|
||||
Streamer.EmitSymbolValue(Frame.Lsda, Size);
|
||||
} else {
|
||||
Streamer.EmitIntValue(Frame.LsdaEncoding, 0); // No LSDA
|
||||
}
|
||||
else
|
||||
Streamer.EmitIntValue(0, Size); // No LSDA
|
||||
|
||||
return true;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user