1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 12:43:36 +01:00

[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 a06a2b5f16
commit 1222e2dc7d
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;
}