mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-02 16:36:40 +00:00
add a copy ctor to TargetLibraryInfo.
llvm-svn: 131806
This commit is contained in:
parent
58beee1262
commit
777808dcaf
@ -51,6 +51,7 @@ public:
|
||||
static char ID;
|
||||
TargetLibraryInfo();
|
||||
TargetLibraryInfo(const Triple &T);
|
||||
explicit TargetLibraryInfo(const TargetLibraryInfo &TLI);
|
||||
|
||||
/// has - This function is used by optimizations that want to match on or form
|
||||
/// a given library function.
|
||||
|
@ -61,6 +61,12 @@ TargetLibraryInfo::TargetLibraryInfo(const Triple &T) : ImmutablePass(ID) {
|
||||
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
|
||||
/// like -fno-builtin.
|
||||
void TargetLibraryInfo::disableAllFunctions() {
|
||||
|
Loading…
Reference in New Issue
Block a user