mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
No need to have this return a bool.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179226 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -899,7 +899,7 @@ namespace {
|
|||||||
/// EmitCompactUnwind - Emit the unwind information in a compact way. If
|
/// EmitCompactUnwind - Emit the unwind information in a compact way. If
|
||||||
/// we're successful, return 'true'. Otherwise, return 'false' and it will
|
/// we're successful, return 'true'. Otherwise, return 'false' and it will
|
||||||
/// emit the normal CIE and FDE.
|
/// emit the normal CIE and FDE.
|
||||||
bool EmitCompactUnwind(MCStreamer &streamer,
|
void EmitCompactUnwind(MCStreamer &streamer,
|
||||||
const MCDwarfFrameInfo &frame);
|
const MCDwarfFrameInfo &frame);
|
||||||
|
|
||||||
const MCSymbol &EmitCIE(MCStreamer &streamer,
|
const MCSymbol &EmitCIE(MCStreamer &streamer,
|
||||||
@ -1139,7 +1139,7 @@ void FrameEmitterImpl::EmitCFIInstructions(MCStreamer &streamer,
|
|||||||
/// EmitCompactUnwind - Emit the unwind information in a compact way. If we're
|
/// EmitCompactUnwind - Emit the unwind information in a compact way. If we're
|
||||||
/// successful, return 'true'. Otherwise, return 'false' and it will emit the
|
/// successful, return 'true'. Otherwise, return 'false' and it will emit the
|
||||||
/// normal CIE and FDE.
|
/// normal CIE and FDE.
|
||||||
bool FrameEmitterImpl::EmitCompactUnwind(MCStreamer &Streamer,
|
void FrameEmitterImpl::EmitCompactUnwind(MCStreamer &Streamer,
|
||||||
const MCDwarfFrameInfo &Frame) {
|
const MCDwarfFrameInfo &Frame) {
|
||||||
MCContext &Context = Streamer.getContext();
|
MCContext &Context = Streamer.getContext();
|
||||||
const MCObjectFileInfo *MOFI = Context.getObjectFileInfo();
|
const MCObjectFileInfo *MOFI = Context.getObjectFileInfo();
|
||||||
@ -1168,6 +1168,8 @@ bool FrameEmitterImpl::EmitCompactUnwind(MCStreamer &Streamer,
|
|||||||
// .quad except_tab1
|
// .quad except_tab1
|
||||||
|
|
||||||
uint32_t Encoding = Frame.CompactUnwindEncoding;
|
uint32_t Encoding = Frame.CompactUnwindEncoding;
|
||||||
|
if (!Encoding) return;
|
||||||
|
|
||||||
bool DwarfEHFrameOnly = (Encoding == MOFI->getCompactUnwindDwarfEHFrameOnly());
|
bool DwarfEHFrameOnly = (Encoding == MOFI->getCompactUnwindDwarfEHFrameOnly());
|
||||||
|
|
||||||
// The encoding needs to know we have an LSDA.
|
// The encoding needs to know we have an LSDA.
|
||||||
@ -1209,8 +1211,6 @@ bool FrameEmitterImpl::EmitCompactUnwind(MCStreamer &Streamer,
|
|||||||
Streamer.EmitSymbolValue(Frame.Lsda, Size);
|
Streamer.EmitSymbolValue(Frame.Lsda, Size);
|
||||||
else
|
else
|
||||||
Streamer.EmitIntValue(0, Size); // No LSDA
|
Streamer.EmitIntValue(0, Size); // No LSDA
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const MCSymbol &FrameEmitterImpl::EmitCIE(MCStreamer &streamer,
|
const MCSymbol &FrameEmitterImpl::EmitCIE(MCStreamer &streamer,
|
||||||
|
Reference in New Issue
Block a user