Use StringRef in LangOptions::isNoBuiltinFunc API (NFC)

llvm-svn: 283776
This commit is contained in:
Mehdi Amini 2016-10-10 16:34:07 +00:00
parent 5f3d1dc44c
commit ce2da5e143
2 changed files with 2 additions and 3 deletions

View File

@ -165,7 +165,7 @@ public:
/// \brief Is this a libc/libm function that is no longer recognized as a
/// builtin because a -fno-builtin-* option has been specified?
bool isNoBuiltinFunc(const char *Name) const;
bool isNoBuiltinFunc(StringRef Name) const;
};
/// \brief Floating point control options

View File

@ -36,8 +36,7 @@ void LangOptions::resetNonModularOptions() {
CurrentModule.clear();
}
bool LangOptions::isNoBuiltinFunc(const char *Name) const {
StringRef FuncName(Name);
bool LangOptions::isNoBuiltinFunc(StringRef FuncName) const {
for (unsigned i = 0, e = NoBuiltinFuncs.size(); i != e; ++i)
if (FuncName.equals(NoBuiltinFuncs[i]))
return true;