diff options
author | Rui Ueyama <ruiu@google.com> | 2018-09-20 21:40:38 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2018-09-20 21:40:38 +0000 |
commit | e285f6c5a683c08b6f18998a7f8a0d43b331ad6d (patch) | |
tree | 633aebe0a951c1bd3ac2889e2b30d86a236f88c5 /lld | |
parent | b0b134dd7d9d263481d8237817940749fe9b6ecb (diff) |
Rename a function. NFC.
Diffstat (limited to 'lld')
-rw-r--r-- | lld/ELF/Driver.cpp | 4 |
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())); } |