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:
Rafael Espindola 2012-03-03 14:24:15 +00:00
parent 61318736ee
commit e6ec02e8af
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);