diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-03-10 01:04:13 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-03-10 01:04:13 +0000 |
| commit | 188a87da79f51b00522b9487ee352a50a01e5ea4 (patch) | |
| tree | 370cd07362745f19e1a59446aa28f5b0e24687f9 /lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
| parent | a015c1c876bb74a83cbbae06449056e0c6f0e9c9 (diff) | |
| download | external_llvm-188a87da79f51b00522b9487ee352a50a01e5ea4.zip external_llvm-188a87da79f51b00522b9487ee352a50a01e5ea4.tar.gz external_llvm-188a87da79f51b00522b9487ee352a50a01e5ea4.tar.bz2 | |
add some fixme's for MCizing. EH still has a few things that
need to be MCized, but the last debug info thing are LEB and
cygwin specific (which the MC api doesn't support yet) and
one specific form of EmitReference which I'll tackle next.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98116 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
| -rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index d759f1e..20cd623 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -2598,12 +2598,6 @@ void DwarfDebug::emitDebugLines() { // Isolate current sections line info. const std::vector<SrcLineInfo> &LineInfos = SectionSourceLines[j]; - /*if (Asm->isVerbose()) { - const MCSection *S = SectionMap[j + 1]; - O << '\t' << MAI->getCommentString() << " Section" - << S->getName() << '\n'; - }*/ - // Dwarf assumes we start with first line of first source file. unsigned Source = 1; unsigned Line = 1; @@ -2617,12 +2611,10 @@ void DwarfDebug::emitDebugLines() { if (LineInfo.getLine() == 0) continue; if (Asm->isVerbose()) { - std::pair<unsigned, unsigned> SourceID = + std::pair<unsigned, unsigned> SrcID = getSourceDirectoryAndFileIds(LineInfo.getSourceID()); - O << '\t' << MAI->getCommentString() << ' ' - << getSourceDirectoryName(SourceID.first) << '/' - << getSourceFileName(SourceID.second) - << ':' << utostr_32(LineInfo.getLine()) << '\n'; + Asm->OutStreamer.AddComment(Twine(getSourceDirectoryName(SrcID.first)) + + ":" + Twine(LineInfo.getLine())); } // Define the line address. |
