[llvm-commits] [llvm] r90641 - /llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp

Dan Gohman gohman at apple.com
Fri Dec 4 18:00:34 PST 2009


Author: djg
Date: Fri Dec  4 20:00:34 2009
New Revision: 90641

URL: http://llvm.org/viewvc/llvm-project?rev=90641&view=rev
Log:
Don't print a space before the : between the file name and line number.
And separate the directory and file name with a '/'.

Modified:
    llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=90641&r1=90640&r2=90641&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Fri Dec  4 20:00:34 2009
@@ -2616,9 +2616,9 @@
         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.





More information about the llvm-commits mailing list