mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-23 14:25:07 +00:00
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
This commit is contained in:
@@ -52,8 +52,8 @@ class Linker {
|
|||||||
/// linker.
|
/// linker.
|
||||||
enum ControlFlags {
|
enum ControlFlags {
|
||||||
Verbose = 1, ///< Print to std::cerr what steps the linker is taking
|
Verbose = 1, ///< Print to std::cerr what steps the linker is taking
|
||||||
QuietWarnings = 2, ///< Don't print errors and warnings to std::cerr.
|
QuietWarnings = 2, ///< Don't print warnings to std::cerr.
|
||||||
QuietErrors = 4 ///< Indicate that this link is for a native executable
|
QuietErrors = 4 ///< Don't print errors to std::cerr.
|
||||||
};
|
};
|
||||||
|
|
||||||
/// @}
|
/// @}
|
||||||
|
@@ -54,7 +54,7 @@ Linker::error(const std::string& message) {
|
|||||||
bool
|
bool
|
||||||
Linker::warning(const std::string& message) {
|
Linker::warning(const std::string& message) {
|
||||||
Error = message;
|
Error = message;
|
||||||
if (!(Flags&QuietErrors))
|
if (!(Flags&QuietWarnings))
|
||||||
cerr << ProgramName << ": warning: " << message << "\n";
|
cerr << ProgramName << ": warning: " << message << "\n";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user