From 72b6c1285694b1891ed7c1cd78b77d936f485eeb Mon Sep 17 00:00:00 2001 From: Matt Pharr Date: Sat, 5 May 2012 15:35:10 -0700 Subject: [PATCH] Notify LLVM pass mgr that the MakeInternalFuncsStaticPass doesn't change the CFG. --- opt.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/opt.cpp b/opt.cpp index dc201367..3de7794e 100644 --- a/opt.cpp +++ b/opt.cpp @@ -3865,6 +3865,10 @@ public: MakeInternalFuncsStaticPass(bool last = false) : ModulePass(ID) { } + void getAnalysisUsage(llvm::AnalysisUsage &AU) const { + AU.setPreservesCFG(); + } + const char *getPassName() const { return "Make internal funcs \"static\""; } bool runOnModule(llvm::Module &m); };