Notify LLVM pass mgr that the MakeInternalFuncsStaticPass doesn't change the CFG.

This commit is contained in:
Matt Pharr
2012-05-05 15:35:10 -07:00
parent 15ea0af687
commit 72b6c12856

View File

@@ -3865,6 +3865,10 @@ public:
MakeInternalFuncsStaticPass(bool last = false) : ModulePass(ID) { MakeInternalFuncsStaticPass(bool last = false) : ModulePass(ID) {
} }
void getAnalysisUsage(llvm::AnalysisUsage &AU) const {
AU.setPreservesCFG();
}
const char *getPassName() const { return "Make internal funcs \"static\""; } const char *getPassName() const { return "Make internal funcs \"static\""; }
bool runOnModule(llvm::Module &m); bool runOnModule(llvm::Module &m);
}; };