mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-22 10:29:35 +00:00
Correctly initialize LineSectionSymbol. Thanks to Duncan Sands for noticing it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151979 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
61318736ee
commit
e6ec02e8af
@ -1311,7 +1311,7 @@ void MCAsmStreamer::EmitRawText(StringRef String) {
|
||||
void MCAsmStreamer::FinishImpl() {
|
||||
// FIXME: This header is duplicated with MCObjectStreamer
|
||||
// Dump out the dwarf file & directory tables and line tables.
|
||||
const MCSymbol *LineSectionSymbol;
|
||||
const MCSymbol *LineSectionSymbol = NULL;
|
||||
if (getContext().hasDwarfFiles() && !UseLoc)
|
||||
LineSectionSymbol = MCDwarfFileTable::Emit(this);
|
||||
|
||||
|
@ -266,7 +266,7 @@ void MCObjectStreamer::EmitGPRel32Value(const MCExpr *Value) {
|
||||
|
||||
void MCObjectStreamer::FinishImpl() {
|
||||
// Dump out the dwarf file & directory tables and line tables.
|
||||
const MCSymbol *LineSectionSymbol;
|
||||
const MCSymbol *LineSectionSymbol = NULL;
|
||||
if (getContext().hasDwarfFiles())
|
||||
LineSectionSymbol = MCDwarfFileTable::Emit(this);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user