[PATCH] D68044: [LitConfig] Silenced notes/warnings on quiet.

Andrew Trick via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 7 22:26:24 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL374009: [LitConfig] Silenced notes/warnings on quiet. (authored by atrick, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D68044?vs=221815&id=223781#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D68044/new/

https://reviews.llvm.org/D68044

Files:
  llvm/trunk/utils/lit/lit/LitConfig.py


Index: llvm/trunk/utils/lit/lit/LitConfig.py
===================================================================
--- llvm/trunk/utils/lit/lit/LitConfig.py
+++ llvm/trunk/utils/lit/lit/LitConfig.py
@@ -174,10 +174,12 @@
                                                kind, message))
 
     def note(self, message):
-        self._write_message('note', message)
+        if not self.quiet:
+            self._write_message('note', message)
 
     def warning(self, message):
-        self._write_message('warning', message)
+        if not self.quiet:
+            self._write_message('warning', message)
         self.numWarnings += 1
 
     def error(self, message):


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68044.223781.patch
Type: text/x-patch
Size: 668 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191008/b3cf6a8d/attachment.bin>


More information about the llvm-commits mailing list