mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 18:24:00 +00:00
refactor the interface to InlineFunction so that most of the in/out
arguments are handled with a new InlineFunctionInfo class. This makes it easier to extend InlineFunction to return more info in the future. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102137 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -129,7 +129,8 @@ void BasicInlinerImpl::inlineFunctions() {
|
||||
}
|
||||
|
||||
// Inline
|
||||
if (InlineFunction(CS, NULL, TD)) {
|
||||
InlineFunctionInfo IFI(0, TD);
|
||||
if (InlineFunction(CS, IFI)) {
|
||||
if (Callee->use_empty() && (Callee->hasLocalLinkage() ||
|
||||
Callee->hasAvailableExternallyLinkage()))
|
||||
DeadFunctions.insert(Callee);
|
||||
|
Reference in New Issue
Block a user