[PATCH] D80553: [NFC][Debugify] Format the CheckModuleDebugify output

Djordje Todorovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 26 06:27:33 PDT 2020


djtodoro created this revision.
djtodoro added reviewers: vsk, aprantl.
djtodoro added projects: debug-info, LLVM.
Herald added subscribers: llvm-commits, hiraditya.

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


https://reviews.llvm.org/D80553

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


Index: llvm/lib/Transforms/Utils/Debugify.cpp
===================================================================
--- llvm/lib/Transforms/Utils/Debugify.cpp
+++ llvm/lib/Transforms/Utils/Debugify.cpp
@@ -422,7 +422,7 @@
 struct CheckDebugifyModulePass : public ModulePass {
   bool runOnModule(Module &M) override {
     return checkDebugifyMetadata(M, M.functions(), NameOfWrappedPass,
-                                 "CheckModuleDebugify", Strip, StatsMap);
+                                 "CheckModuleDebugify: ", Strip, StatsMap);
   }
 
   CheckDebugifyModulePass(bool Strip = false, StringRef NameOfWrappedPass = "",


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80553.266189.patch
Type: text/x-patch
Size: 627 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200526/56ba12df/attachment.bin>


More information about the llvm-commits mailing list