mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-19 10:13:13 +00:00
Make comments and code for QuietWarnings and QuietErrors
actually correspond to what their names suggest. llvm-svn: 58146
This commit is contained in:
parent
e7c43e94b0
commit
64431fe1db
@ -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.
|
||||
};
|
||||
|
||||
/// @}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user