[llvm] c9f37c4 - [dsymutil] Remove spurious newline in warning

Jonas Devlieghere via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 31 14:26:02 PDT 2023


Author: Jonas Devlieghere
Date: 2023-03-31T14:25:56-07:00
New Revision: c9f37c450056d6438e0ccc653580600d827ecd80

URL: https://github.com/llvm/llvm-project/commit/c9f37c450056d6438e0ccc653580600d827ecd80
DIFF: https://github.com/llvm/llvm-project/commit/c9f37c450056d6438e0ccc653580600d827ecd80.diff

LOG: [dsymutil] Remove spurious newline in warning

Remove spurious newline at the end of the warning about not being able
to open a binary.

Added: 
    

Modified: 
    llvm/tools/dsymutil/DwarfLinkerForBinary.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/tools/dsymutil/DwarfLinkerForBinary.cpp b/llvm/tools/dsymutil/DwarfLinkerForBinary.cpp
index cf3c87bc630af..6d2b4c593edb3 100644
--- a/llvm/tools/dsymutil/DwarfLinkerForBinary.cpp
+++ b/llvm/tools/dsymutil/DwarfLinkerForBinary.cpp
@@ -679,7 +679,7 @@ bool DwarfLinkerForBinary::link(const DebugMap &Map) {
       StringRef File = Obj->getObjectFilename();
       auto ErrorOrMem = MemoryBuffer::getFile(File);
       if (!ErrorOrMem) {
-        warn("Could not open '" + File + "'\n");
+        warn("Could not open '" + File + "'");
         continue;
       }
       sys::fs::file_status Stat;


        


More information about the llvm-commits mailing list