[lld] r342687 - Rename a function. NFC.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 20 14:40:38 PDT 2018
Author: ruiu
Date: Thu Sep 20 14:40:38 2018
New Revision: 342687
URL: http://llvm.org/viewvc/llvm-project?rev=342687&view=rev
Log:
Rename a function. NFC.
Modified:
lld/trunk/ELF/Driver.cpp
Modified: lld/trunk/ELF/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Driver.cpp?rev=342687&r1=342686&r2=342687&view=diff
==============================================================================
--- lld/trunk/ELF/Driver.cpp (original)
+++ lld/trunk/ELF/Driver.cpp Thu Sep 20 14:40:38 2018
@@ -342,7 +342,7 @@ static bool getZFlag(opt::InputArgList &
return Default;
}
-static bool isKnown(StringRef S) {
+static bool isKnownZFlag(StringRef S) {
return S == "combreloc" || S == "copyreloc" || S == "defs" ||
S == "execstack" || S == "global" || S == "hazardplt" ||
S == "initfirst" || S == "interpose" ||
@@ -358,7 +358,7 @@ static bool isKnown(StringRef S) {
// Report an error for an unknown -z option.
static void checkZOptions(opt::InputArgList &Args) {
for (auto *Arg : Args.filtered(OPT_z))
- if (!isKnown(Arg->getValue()))
+ if (!isKnownZFlag(Arg->getValue()))
error("unknown -z value: " + StringRef(Arg->getValue()));
}
More information about the llvm-commits
mailing list