From 071cee0c815e14aa868521a3f568f62bb2eefb72 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Wed, 13 Oct 2010 22:00:45 +0000 Subject: CallGraphSCC passes implicity require CallGraph analysis. llvm-svn: 116443 --- llvm/lib/Transforms/IPO/FunctionAttrs.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'llvm/lib/Transforms/IPO/FunctionAttrs.cpp') diff --git a/llvm/lib/Transforms/IPO/FunctionAttrs.cpp b/llvm/lib/Transforms/IPO/FunctionAttrs.cpp index 0c0ca84462b..9297356e29d 100644 --- a/llvm/lib/Transforms/IPO/FunctionAttrs.cpp +++ b/llvm/lib/Transforms/IPO/FunctionAttrs.cpp @@ -69,7 +69,10 @@ namespace { } char FunctionAttrs::ID = 0; -INITIALIZE_PASS(FunctionAttrs, "functionattrs", +INITIALIZE_PASS_BEGIN(FunctionAttrs, "functionattrs", + "Deduce function attributes", false, false) +INITIALIZE_AG_DEPENDENCY(CallGraph) +INITIALIZE_PASS_END(FunctionAttrs, "functionattrs", "Deduce function attributes", false, false) Pass *llvm::createFunctionAttrsPass() { return new FunctionAttrs(); } -- cgit v1.2.3