Don't print a space before the : between the file name and line number.
authorDan Gohman <gohman@apple.com>
Sat, 5 Dec 2009 02:00:34 +0000 (02:00 +0000)
committerDan Gohman <gohman@apple.com>
Sat, 5 Dec 2009 02:00:34 +0000 (02:00 +0000)
And separate the directory and file name with a '/'.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90641 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfDebug.cpp

index 0dfab12f988043208b3f39afd90d3aa0345e63d6..3adb520d995657c8702c84e418c84813d3e9ad5f 100644 (file)
@@ -2616,9 +2616,9 @@ void DwarfDebug::emitDebugLines() {
         std::pair<unsigned, unsigned> SourceID =
           getSourceDirectoryAndFileIds(LineInfo.getSourceID());
         O << '\t' << MAI->getCommentString() << ' '
-          << getSourceDirectoryName(SourceID.first) << ' '
+          << getSourceDirectoryName(SourceID.first) << '/'
           << getSourceFileName(SourceID.second)
-          <<" :" << utostr_32(LineInfo.getLine()) << '\n';
+          << ':' << utostr_32(LineInfo.getLine()) << '\n';
       }
 
       // Define the line address.