summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2018-09-20 21:40:38 +0000
committerRui Ueyama <ruiu@google.com>2018-09-20 21:40:38 +0000
commita07166995667a86af8856d052671d3f2ef07fcb9 (patch)
treea6bda30a3c57c5f0adaff23e55978839f49eef94
parentd19bc048692a4c5287c7276a491b98e520d90db9 (diff)
downloadbcm5719-llvm-a07166995667a86af8856d052671d3f2ef07fcb9.tar.gz
bcm5719-llvm-a07166995667a86af8856d052671d3f2ef07fcb9.zip
Rename a function. NFC.
llvm-svn: 342687
-rw-r--r--lld/ELF/Driver.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp
index 0635bf6ffc3..519589fb039 100644
--- a/lld/ELF/Driver.cpp
+++ b/lld/ELF/Driver.cpp
@@ -342,7 +342,7 @@ static bool getZFlag(opt::InputArgList &Args, StringRef K1, StringRef K2,
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()));
}
OpenPOWER on IntegriCloud