mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Remove always true argument and field.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208559 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f4a9638884
commit
e4b9009399
@ -911,13 +911,11 @@ namespace {
|
|||||||
class FrameEmitterImpl {
|
class FrameEmitterImpl {
|
||||||
int CFAOffset;
|
int CFAOffset;
|
||||||
int CIENum;
|
int CIENum;
|
||||||
bool UsingCFI;
|
|
||||||
bool IsEH;
|
bool IsEH;
|
||||||
const MCSymbol *SectionStart;
|
const MCSymbol *SectionStart;
|
||||||
public:
|
public:
|
||||||
FrameEmitterImpl(bool usingCFI, bool isEH)
|
FrameEmitterImpl(bool isEH)
|
||||||
: CFAOffset(0), CIENum(0), UsingCFI(usingCFI), IsEH(isEH),
|
: CFAOffset(0), CIENum(0), IsEH(isEH), SectionStart(nullptr) {}
|
||||||
SectionStart(nullptr) {}
|
|
||||||
|
|
||||||
void setSectionStart(const MCSymbol *Label) { SectionStart = Label; }
|
void setSectionStart(const MCSymbol *Label) { SectionStart = Label; }
|
||||||
|
|
||||||
@ -1202,7 +1200,7 @@ void FrameEmitterImpl::EmitCompactUnwind(MCStreamer &Streamer,
|
|||||||
Encoding |= 0x40000000;
|
Encoding |= 0x40000000;
|
||||||
|
|
||||||
// Range Start
|
// Range Start
|
||||||
unsigned FDEEncoding = MOFI->getFDEEncoding(UsingCFI);
|
unsigned FDEEncoding = MOFI->getFDEEncoding(true);
|
||||||
unsigned Size = getSizeForEncoding(Streamer, FDEEncoding);
|
unsigned Size = getSizeForEncoding(Streamer, FDEEncoding);
|
||||||
if (VerboseAsm) Streamer.AddComment("Range Start");
|
if (VerboseAsm) Streamer.AddComment("Range Start");
|
||||||
Streamer.EmitSymbolValue(Frame.Function, Size);
|
Streamer.EmitSymbolValue(Frame.Function, Size);
|
||||||
@ -1334,8 +1332,7 @@ const MCSymbol &FrameEmitterImpl::EmitCIE(MCStreamer &streamer,
|
|||||||
EmitEncodingByte(streamer, lsdaEncoding, "LSDA Encoding");
|
EmitEncodingByte(streamer, lsdaEncoding, "LSDA Encoding");
|
||||||
|
|
||||||
// Encoding of the FDE pointers
|
// Encoding of the FDE pointers
|
||||||
EmitEncodingByte(streamer, MOFI->getFDEEncoding(UsingCFI),
|
EmitEncodingByte(streamer, MOFI->getFDEEncoding(true), "FDE Encoding");
|
||||||
"FDE Encoding");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initial Instructions
|
// Initial Instructions
|
||||||
@ -1393,8 +1390,8 @@ MCSymbol *FrameEmitterImpl::EmitFDE(MCStreamer &streamer,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// PC Begin
|
// PC Begin
|
||||||
unsigned PCEncoding = IsEH ? MOFI->getFDEEncoding(UsingCFI)
|
unsigned PCEncoding =
|
||||||
: (unsigned)dwarf::DW_EH_PE_absptr;
|
IsEH ? MOFI->getFDEEncoding(true) : (unsigned)dwarf::DW_EH_PE_absptr;
|
||||||
unsigned PCSize = getSizeForEncoding(streamer, PCEncoding);
|
unsigned PCSize = getSizeForEncoding(streamer, PCEncoding);
|
||||||
EmitFDESymbol(streamer, *frame.Begin, PCEncoding, IsEH, "FDE initial location");
|
EmitFDESymbol(streamer, *frame.Begin, PCEncoding, IsEH, "FDE initial location");
|
||||||
|
|
||||||
@ -1485,7 +1482,7 @@ void MCDwarfFrameEmitter::Emit(MCStreamer &Streamer, MCAsmBackend *MAB,
|
|||||||
|
|
||||||
MCContext &Context = Streamer.getContext();
|
MCContext &Context = Streamer.getContext();
|
||||||
const MCObjectFileInfo *MOFI = Context.getObjectFileInfo();
|
const MCObjectFileInfo *MOFI = Context.getObjectFileInfo();
|
||||||
FrameEmitterImpl Emitter(true, IsEH);
|
FrameEmitterImpl Emitter(IsEH);
|
||||||
ArrayRef<MCDwarfFrameInfo> FrameArray = Streamer.getFrameInfos();
|
ArrayRef<MCDwarfFrameInfo> FrameArray = Streamer.getFrameInfos();
|
||||||
|
|
||||||
// Emit the compact unwind info if available.
|
// Emit the compact unwind info if available.
|
||||||
|
Loading…
Reference in New Issue
Block a user