Fix a bug that caused stuff like this:
authorChris Lattner <sabre@nondot.org>
Fri, 19 Nov 2004 19:45:44 +0000 (19:45 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 19 Nov 2004 19:45:44 +0000 (19:45 +0000)
main at ./eh.cpp:1414 ->          printf("a\n");

to be printed, instead of this:

main at ./eh.cpp:14
14 ->          printf("a\n");

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

tools/llvm-db/Commands.cpp

index 8e3125eaff08a859d74f13595d0192615a26060d..de7fdf604b787311e562dfaeffee2326d01010de 100644 (file)
@@ -119,7 +119,8 @@ void CLIDebugger::printProgramLocation(bool PrintLocation) {
     CurrentFile = &FileDesc->getSourceText();
     
     std::cout << " at " << CurrentFile->getFilename() << ":" << LineNo;
-    if (ColNo) std::cout << ":" << ColNo << "\n";
+    if (ColNo) std::cout << ":" << ColNo;
+    std::cout << "\n";
   }
 
   if (printSourceLine(LineNo))