[llvm-commits] [llvm] r58146 - in /llvm/trunk: include/llvm/Linker.h lib/Linker/Linker.cpp

Dan Gohman gohman at apple.com
Sat Oct 25 10:57:23 PDT 2008


Author: djg
Date: Sat Oct 25 12:57:20 2008
New Revision: 58146

URL: http://llvm.org/viewvc/llvm-project?rev=58146&view=rev
Log:
Make comments and code for QuietWarnings and QuietErrors
actually correspond to what their names suggest.

Modified:
    llvm/trunk/include/llvm/Linker.h
    llvm/trunk/lib/Linker/Linker.cpp

Modified: llvm/trunk/include/llvm/Linker.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Linker.h?rev=58146&r1=58145&r2=58146&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Linker.h (original)
+++ llvm/trunk/include/llvm/Linker.h Sat Oct 25 12:57:20 2008
@@ -52,8 +52,8 @@
     /// linker.
     enum ControlFlags {
       Verbose       = 1, ///< Print to std::cerr what steps the linker is taking
-      QuietWarnings = 2, ///< Don't print errors and warnings to std::cerr.
-      QuietErrors   = 4  ///< Indicate that this link is for a native executable
+      QuietWarnings = 2, ///< Don't print warnings to std::cerr.
+      QuietErrors   = 4  ///< Don't print errors to std::cerr.
     };
 
   /// @}

Modified: llvm/trunk/lib/Linker/Linker.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Linker/Linker.cpp?rev=58146&r1=58145&r2=58146&view=diff

==============================================================================
--- llvm/trunk/lib/Linker/Linker.cpp (original)
+++ llvm/trunk/lib/Linker/Linker.cpp Sat Oct 25 12:57:20 2008
@@ -54,7 +54,7 @@
 bool
 Linker::warning(const std::string& message) {
   Error = message;
-  if (!(Flags&QuietErrors))
+  if (!(Flags&QuietWarnings))
     cerr << ProgramName << ": warning: " << message << "\n";
   return false;
 }





More information about the llvm-commits mailing list