diff options
author | Rui Ueyama <ruiu@google.com> | 2019-07-11 05:40:30 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2019-07-11 05:40:30 +0000 |
commit | 136d27ab4de0c1d5dedfecc32a9857be78fa0648 (patch) | |
tree | ed1d11367899a7567b358b28e687ba179faf4ade /lld/ELF/DriverUtils.cpp | |
parent | 51f5079191d53862c7673c73ee48f80df59de00f (diff) | |
download | bcm5719-llvm-136d27ab4de0c1d5dedfecc32a9857be78fa0648.tar.gz bcm5719-llvm-136d27ab4de0c1d5dedfecc32a9857be78fa0648.zip |
[Coding style change][lld] Rename variables for non-ELF ports
This patch does the same thing as r365595 to other subdirectories,
which completes the naming style change for the entire lld directory.
With this, the naming style conversion is complete for lld.
Differential Revision: https://reviews.llvm.org/D64473
llvm-svn: 365730
Diffstat (limited to 'lld/ELF/DriverUtils.cpp')
-rw-r--r-- | lld/ELF/DriverUtils.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lld/ELF/DriverUtils.cpp b/lld/ELF/DriverUtils.cpp index 4abccc135a9..87f0aa2a982 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) { - errorHandler().ColorDiagnostics = true; + errorHandler().colorDiagnostics = true; } else if (arg->getOption().getID() == OPT_no_color_diagnostics) { - errorHandler().ColorDiagnostics = false; + errorHandler().colorDiagnostics = false; } else { StringRef s = arg->getValue(); if (s == "always") - errorHandler().ColorDiagnostics = true; + errorHandler().colorDiagnostics = true; else if (s == "never") - errorHandler().ColorDiagnostics = false; + errorHandler().colorDiagnostics = false; else if (s != "auto") error("unknown option: --color-diagnostics=" + s); } @@ -101,7 +101,7 @@ static void concatLTOPluginOptions(SmallVectorImpl<const char *> &args) { for (size_t i = 0, e = args.size(); i != e; ++i) { StringRef s = args[i]; if ((s == "-plugin-opt" || s == "--plugin-opt") && i + 1 != e) { - v.push_back(Saver.save(s + "=" + args[i + 1]).data()); + v.push_back(saver.save(s + "=" + args[i + 1]).data()); ++i; } else { v.push_back(args[i]); @@ -124,7 +124,7 @@ opt::InputArgList ELFOptTable::parse(ArrayRef<const char *> argv) { // Expand response files (arguments in the form of @<filename>) // and then parse the argument again. - cl::ExpandResponseFiles(Saver, getQuotingStyle(args), vec); + cl::ExpandResponseFiles(saver, getQuotingStyle(args), vec); concatLTOPluginOptions(vec); args = this->ParseArgs(vec, missingIndex, missingCount); |