[llvm] 6503082 - [NFC][Debugify] Format the CheckModuleDebugify output

Djordje Todorovic via llvm-commits llvm-commits at lists.llvm.org
Wed May 27 01:32:58 PDT 2020


Author: Djordje Todorovic
Date: 2020-05-27T10:32:40+02:00
New Revision: 65030821d4a6af94b84a33e66a40c08ca26f1526

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

LOG: [NFC][Debugify] Format the CheckModuleDebugify output

This fixes the output of the check-debugify option.
Without the patch an example of running the option:

$ opt -check-debugify test.ll -S -o testDebugify.ll
CheckModuleDebugifySkipping module without debugify metadata

After the patch:

$ opt -check-debugify test.ll -S -o testDebugify.ll
CheckModuleDebugify: Skipping module without debugify metadata

Differential Revision: https://reviews.llvm.org/D80553

Added: 
    

Modified: 
    llvm/lib/Transforms/Utils/Debugify.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Utils/Debugify.cpp b/llvm/lib/Transforms/Utils/Debugify.cpp
index 19c73f3840fc..7c178aba5ad2 100644
--- a/llvm/lib/Transforms/Utils/Debugify.cpp
+++ b/llvm/lib/Transforms/Utils/Debugify.cpp
@@ -293,7 +293,7 @@ bool checkDebugifyMetadata(Module &M,
   // Skip modules without debugify metadata.
   NamedMDNode *NMD = M.getNamedMetadata("llvm.debugify");
   if (!NMD) {
-    dbg() << Banner << "Skipping module without debugify metadata\n";
+    dbg() << Banner << ": Skipping module without debugify metadata\n";
     return false;
   }
 


        


More information about the llvm-commits mailing list