Make comments and code for QuietWarnings and QuietErrors
authorDan Gohman <gohman@apple.com>
Sat, 25 Oct 2008 17:57:20 +0000 (17:57 +0000)
committerDan Gohman <gohman@apple.com>
Sat, 25 Oct 2008 17:57:20 +0000 (17:57 +0000)
actually correspond to what their names suggest.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58146 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Linker.h
lib/Linker/Linker.cpp

index 1e817b467432662f61003b851fba86362ad437c5..bcba476b34ade9dc777ec7f5c67f8328da31b1ba 100644 (file)
@@ -52,8 +52,8 @@ class Linker {
     /// 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.
     };
 
   /// @}
index ef242e5c798d585f47188297db3ff8d7737c6ff9..d6737721d25fb74a5330e386737496a5cb8d3348 100644 (file)
@@ -54,7 +54,7 @@ Linker::error(const std::string& message) {
 bool
 Linker::warning(const std::string& message) {
   Error = message;
-  if (!(Flags&QuietErrors))
+  if (!(Flags&QuietWarnings))
     cerr << ProgramName << ": warning: " << message << "\n";
   return false;
 }