diff options
Diffstat (limited to 'lld/ELF/DriverUtils.cpp')
-rw-r--r-- | lld/ELF/DriverUtils.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lld/ELF/DriverUtils.cpp b/lld/ELF/DriverUtils.cpp index 43987cd5d4d4..9fcb36e81676 100644 --- a/lld/ELF/DriverUtils.cpp +++ b/lld/ELF/DriverUtils.cpp @@ -59,15 +59,15 @@ static void handleColorDiagnostics(opt::InputArgList &args) { if (!arg) return; if (arg->getOption().getID() == OPT_color_diagnostics) { - enableColors(true); + lld::errs().enable_colors(true); } else if (arg->getOption().getID() == OPT_no_color_diagnostics) { - enableColors(false); + lld::errs().enable_colors(false); } else { StringRef s = arg->getValue(); if (s == "always") - enableColors(true); + lld::errs().enable_colors(true); else if (s == "never") - enableColors(false); + lld::errs().enable_colors(false); else if (s != "auto") error("unknown option: --color-diagnostics=" + s); } @@ -145,16 +145,16 @@ opt::InputArgList ELFOptTable::parse(ArrayRef<const char *> argv) { void printHelp() { ELFOptTable().PrintHelp( - outs(), (config->progName + " [options] file...").str().c_str(), "lld", - false /*ShowHidden*/, true /*ShowAllAliases*/); - outs() << "\n"; + lld::outs(), (config->progName + " [options] file...").str().c_str(), + "lld", false /*ShowHidden*/, true /*ShowAllAliases*/); + lld::outs() << "\n"; // Scripts generated by Libtool versions up to at least 2.4.6 (the most // recent version as of March 2017) expect /: supported targets:.* elf/ // in a message for the -help option. If it doesn't match, the scripts // assume that the linker doesn't support very basic features such as // shared libraries. Therefore, we need to print out at least "elf". - outs() << config->progName << ": supported targets: elf\n"; + lld::outs() << config->progName << ": supported targets: elf\n"; } static std::string rewritePath(StringRef s) { |