mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-29 16:23:44 +00:00
add a copy ctor to TargetLibraryInfo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131806 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
21c60904ce
commit
40f5fbcc5c
@ -51,6 +51,7 @@ public:
|
|||||||
static char ID;
|
static char ID;
|
||||||
TargetLibraryInfo();
|
TargetLibraryInfo();
|
||||||
TargetLibraryInfo(const Triple &T);
|
TargetLibraryInfo(const Triple &T);
|
||||||
|
explicit TargetLibraryInfo(const TargetLibraryInfo &TLI);
|
||||||
|
|
||||||
/// has - This function is used by optimizations that want to match on or form
|
/// has - This function is used by optimizations that want to match on or form
|
||||||
/// a given library function.
|
/// a given library function.
|
||||||
|
@ -61,6 +61,12 @@ TargetLibraryInfo::TargetLibraryInfo(const Triple &T) : ImmutablePass(ID) {
|
|||||||
initialize(*this, T);
|
initialize(*this, T);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TargetLibraryInfo::TargetLibraryInfo(const TargetLibraryInfo &TLI)
|
||||||
|
: ImmutablePass(ID) {
|
||||||
|
memcpy(AvailableArray, TLI.AvailableArray, sizeof(AvailableArray));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/// disableAllFunctions - This disables all builtins, which is used for options
|
/// disableAllFunctions - This disables all builtins, which is used for options
|
||||||
/// like -fno-builtin.
|
/// like -fno-builtin.
|
||||||
void TargetLibraryInfo::disableAllFunctions() {
|
void TargetLibraryInfo::disableAllFunctions() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user