[TargetLibraryInfo] Define enumerator for no library function (NFC)

Add a null enumerator do designate no library function.

llvm-svn: 370947
This commit is contained in:
Evandro Menezes 2019-09-04 18:15:58 +00:00
parent 420cbb6190
commit 3b705ef712
2 changed files with 4 additions and 2 deletions

View File

@ -30,11 +30,12 @@ struct VecDesc {
unsigned VectorizationFactor;
};
enum LibFunc {
enum LibFunc : unsigned {
#define TLI_DEFINE_ENUM
#include "llvm/Analysis/TargetLibraryInfo.def"
NumLibFuncs
NumLibFuncs,
NotLibFunc
};
/// Implementation of the target library information.

View File

@ -1478,6 +1478,7 @@ bool TargetLibraryInfoImpl::isValidProtoForLibFunc(const FunctionType &FTy,
return false;
}
case LibFunc::NumLibFuncs:
case LibFunc::NotLibFunc:
break;
}