From: Dan Gohman Date: Sat, 25 Oct 2008 17:57:20 +0000 (+0000) Subject: Make comments and code for QuietWarnings and QuietErrors X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=5d9759bd04f2aa9f95067ea32f67a8ad5cac4c8f;p=oota-llvm.git Make comments and code for QuietWarnings and QuietErrors actually correspond to what their names suggest. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58146 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Linker.h b/include/llvm/Linker.h index 1e817b46743..bcba476b34a 100644 --- a/include/llvm/Linker.h +++ b/include/llvm/Linker.h @@ -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. }; /// @} diff --git a/lib/Linker/Linker.cpp b/lib/Linker/Linker.cpp index ef242e5c798..d6737721d25 100644 --- a/lib/Linker/Linker.cpp +++ b/lib/Linker/Linker.cpp @@ -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; }