mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 02:33:06 +01:00
[Cloning] Remove unused parameter from CloneAndPruneFunctionInto() (NFC)
This commit is contained in:
parent
edf89b43ae
commit
b733414f37
@ -185,8 +185,7 @@ void CloneAndPruneFunctionInto(Function *NewFunc, const Function *OldFunc,
|
||||
ValueToValueMapTy &VMap, bool ModuleLevelChanges,
|
||||
SmallVectorImpl<ReturnInst*> &Returns,
|
||||
const char *NameSuffix = "",
|
||||
ClonedCodeInfo *CodeInfo = nullptr,
|
||||
Instruction *TheCall = nullptr);
|
||||
ClonedCodeInfo *CodeInfo = nullptr);
|
||||
|
||||
/// This class captures the data input to the InlineFunction call, and records
|
||||
/// the auxiliary results produced by it.
|
||||
|
@ -774,7 +774,7 @@ void llvm::CloneAndPruneIntoFromInst(Function *NewFunc, const Function *OldFunc,
|
||||
void llvm::CloneAndPruneFunctionInto(
|
||||
Function *NewFunc, const Function *OldFunc, ValueToValueMapTy &VMap,
|
||||
bool ModuleLevelChanges, SmallVectorImpl<ReturnInst *> &Returns,
|
||||
const char *NameSuffix, ClonedCodeInfo *CodeInfo, Instruction *TheCall) {
|
||||
const char *NameSuffix, ClonedCodeInfo *CodeInfo) {
|
||||
CloneAndPruneIntoFromInst(NewFunc, OldFunc, &OldFunc->front().front(), VMap,
|
||||
ModuleLevelChanges, Returns, NameSuffix, CodeInfo);
|
||||
}
|
||||
|
@ -1947,7 +1947,7 @@ llvm::InlineResult llvm::InlineFunction(CallBase &CB, InlineFunctionInfo &IFI,
|
||||
// happy with whatever the cloner can do.
|
||||
CloneAndPruneFunctionInto(Caller, CalledFunc, VMap,
|
||||
/*ModuleLevelChanges=*/false, Returns, ".i",
|
||||
&InlinedFunctionInfo, &CB);
|
||||
&InlinedFunctionInfo);
|
||||
// Remember the first block that is newly cloned over.
|
||||
FirstNewBlock = LastBlock; ++FirstNewBlock;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user