summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/IPO/FunctionAttrs.cpp
diff options
context:
space:
mode:
authorBrian Homerding <homerdin@gmail.com>2019-07-08 16:33:32 +0000
committerBrian Homerding <homerdin@gmail.com>2019-07-08 16:33:32 +0000
commit498687bff2b44527960b22fa8f5dffd506d07315 (patch)
tree3a77fc659b4855d31838003db5059225470ab284 /llvm/lib/Transforms/IPO/FunctionAttrs.cpp
parent2734f5c89c349ee7b1d1f61249a58dd4874bef2e (diff)
downloadbcm5719-llvm-498687bff2b44527960b22fa8f5dffd506d07315.tar.gz
bcm5719-llvm-498687bff2b44527960b22fa8f5dffd506d07315.zip
Add, and infer, a nofree function attribute
Removing dead code leftover from refactor. Reviewers: jdoerfert Differential Revision: https://reviews.llvm.org/D49165 llvm-svn: 365345
Diffstat (limited to 'llvm/lib/Transforms/IPO/FunctionAttrs.cpp')
-rw-r--r--llvm/lib/Transforms/IPO/FunctionAttrs.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/IPO/FunctionAttrs.cpp b/llvm/lib/Transforms/IPO/FunctionAttrs.cpp
index a3fb7d1d57a..cfae267c2f6 100644
--- a/llvm/lib/Transforms/IPO/FunctionAttrs.cpp
+++ b/llvm/lib/Transforms/IPO/FunctionAttrs.cpp
@@ -1402,11 +1402,6 @@ PreservedAnalyses PostOrderFunctionAttrsPass::run(LazyCallGraph::SCC &C,
FunctionAnalysisManager &FAM =
AM.getResult<FunctionAnalysisManagerCGSCCProxy>(C, CG).getManager();
- const ModuleAnalysisManager &MAM =
- AM.getResult<ModuleAnalysisManagerCGSCCProxy>(C, CG).getManager();
- assert(C.size() > 0 && "Cannot handle an empty SCC!");
- Module &M = *C.begin()->getFunction().getParent();
-
// We pass a lambda into functions to wire them up to the analysis manager
// for getting function analyses.
auto AARGetter = [&](Function &F) -> AAResults & {
OpenPOWER on IntegriCloud