aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/Utils/BasicInliner.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-22 23:07:58 +0000
committerChris Lattner <sabre@nondot.org>2010-04-22 23:07:58 +0000
commit60915146f4d35e12f10dcdaa155596fac79184da (patch)
treeac5782ad8e8a3ff4627855e7f04872b92f66e658 /lib/Transforms/Utils/BasicInliner.cpp
parent9517144f5395ee88f0e5a22afd2ca1905a344e68 (diff)
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
Diffstat (limited to 'lib/Transforms/Utils/BasicInliner.cpp')
-rw-r--r--lib/Transforms/Utils/BasicInliner.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/BasicInliner.cpp b/lib/Transforms/Utils/BasicInliner.cpp
index c580b8fed9..f0e31efa30 100644
--- a/lib/Transforms/Utils/BasicInliner.cpp
+++ b/lib/Transforms/Utils/BasicInliner.cpp
@@ -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);