forked from OSchip/llvm-project
Use StringRef in LangOptions::isNoBuiltinFunc API (NFC)
llvm-svn: 283776
This commit is contained in:
parent
5f3d1dc44c
commit
ce2da5e143
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue