Notify LLVM pass mgr that the MakeInternalFuncsStaticPass doesn't change the CFG.
This commit is contained in:
4
opt.cpp
4
opt.cpp
@@ -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);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user