summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-14 08:15:55 +0000
committerChris Lattner <sabre@nondot.org>2010-03-14 08:15:55 +0000
commitb4666f45175539a2204bff9dc860d3b618e6eed0 (patch)
tree1c169680a0aad3b9602142bd28c69a7d43dffd71 /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
parentd5e8d9f29a11db395fe5bd464d9396bf2d8212fd (diff)
downloadbcm5719-llvm-b4666f45175539a2204bff9dc860d3b618e6eed0.tar.gz
bcm5719-llvm-b4666f45175539a2204bff9dc860d3b618e6eed0.zip
change SrcLineInfo to contain a label instead of a label ID.
llvm-svn: 98483
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 4b71cfe0036..fd3902d8502 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -2220,13 +2220,12 @@ MCSymbol *DwarfDebug::recordSourceLine(unsigned Line, unsigned Col, MDNode *S) {
assert(0 && "Unexpected scope info");
unsigned Src = GetOrCreateSourceID(Dir, Fn);
- unsigned ID = MMI->NextLabelID();
- Lines.push_back(SrcLineInfo(Line, Col, Src, ID));
+ MCSymbol *Label = getDWLabel("label", MMI->NextLabelID());
+ Lines.push_back(SrcLineInfo(Line, Col, Src, Label));
if (TimePassesIsEnabled)
DebugTimer->stopTimer();
- MCSymbol *Label = getDWLabel("label", ID);
Asm->OutStreamer.EmitLabel(Label);
return Label;
}
@@ -2614,8 +2613,7 @@ void DwarfDebug::emitDebugLines() {
// Construct rows of the address, source, line, column matrix.
for (unsigned i = 0, N = LineInfos.size(); i < N; ++i) {
const SrcLineInfo &LineInfo = LineInfos[i];
- unsigned LabelID = LineInfo.getLabelID();
- MCSymbol *Label = getDWLabel("label", LabelID);
+ MCSymbol *Label = LineInfo.getLabel();
if (!Label->isDefined()) continue; // Not emitted, in dead code.
if (LineInfo.getLine() == 0) continue;
OpenPOWER on IntegriCloud