Correctly initialize LineSectionSymbol. Thanks to Duncan Sands for noticing it.

llvm-svn: 151979
This commit is contained in:
Rafael Espindola 2012-03-03 14:24:15 +00:00
parent 999892f0d0
commit c7ecbfb07d
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);