forked from OSchip/llvm-project
[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:
parent
420cbb6190
commit
3b705ef712
|
@ -30,11 +30,12 @@ struct VecDesc {
|
||||||
unsigned VectorizationFactor;
|
unsigned VectorizationFactor;
|
||||||
};
|
};
|
||||||
|
|
||||||
enum LibFunc {
|
enum LibFunc : unsigned {
|
||||||
#define TLI_DEFINE_ENUM
|
#define TLI_DEFINE_ENUM
|
||||||
#include "llvm/Analysis/TargetLibraryInfo.def"
|
#include "llvm/Analysis/TargetLibraryInfo.def"
|
||||||
|
|
||||||
NumLibFuncs
|
NumLibFuncs,
|
||||||
|
NotLibFunc
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Implementation of the target library information.
|
/// Implementation of the target library information.
|
||||||
|
|
|
@ -1478,6 +1478,7 @@ bool TargetLibraryInfoImpl::isValidProtoForLibFunc(const FunctionType &FTy,
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
case LibFunc::NumLibFuncs:
|
case LibFunc::NumLibFuncs:
|
||||||
|
case LibFunc::NotLibFunc:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue