From e285f6c5a683c08b6f18998a7f8a0d43b331ad6d Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Thu, 20 Sep 2018 21:40:38 +0000 Subject: Rename a function. NFC. --- lld/ELF/Driver.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lld') 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())); } -- cgit v1.2.3