summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/include/llvm/Linker.h4
-rw-r--r--llvm/lib/Linker/Linker.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/include/llvm/Linker.h b/llvm/include/llvm/Linker.h
index 1e817b46743..bcba476b34a 100644
--- a/llvm/include/llvm/Linker.h
+++ b/llvm/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/llvm/lib/Linker/Linker.cpp b/llvm/lib/Linker/Linker.cpp
index ef242e5c798..d6737721d25 100644
--- a/llvm/lib/Linker/Linker.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud