Correctly initialize LineSectionSymbol. Thanks to Duncan Sands for noticing it.
llvm-svn: 151979
This commit is contained in:
parent
999892f0d0
commit
c7ecbfb07d
|
@ -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