[lld] bb0e1ae - [lld-macho] Add separator to error message

Jez Ng via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 16 14:01:21 PDT 2021


Author: Jez Ng
Date: 2021-04-16T17:01:14-04:00
New Revision: bb0e1ae7c4170b18247e5c7c226ed29689d552a5

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

LOG: [lld-macho] Add separator to error message

Added: 
    

Modified: 
    lld/MachO/SyntheticSections.cpp

Removed: 
    


################################################################################
diff  --git a/lld/MachO/SyntheticSections.cpp b/lld/MachO/SyntheticSections.cpp
index 5f48d58a03e9..72854bc0d68b 100644
--- a/lld/MachO/SyntheticSections.cpp
+++ b/lld/MachO/SyntheticSections.cpp
@@ -1056,7 +1056,8 @@ class ErrorCodeWrapper {
   do {                                                                         \
     ErrorCodeWrapper ec(exp);                                                  \
     if (ec)                                                                    \
-      fatal(Twine("operation failed with error code ") + Twine(ec) + #exp);    \
+      fatal(Twine("operation failed with error code ") + Twine(ec) + ": " +    \
+            #exp);                                                             \
   } while (0);
 
 void BitcodeBundleSection::finalize() {


        


More information about the llvm-commits mailing list