Every pass deserves a name, even codegenprep.

llvm-svn: 170831
This commit is contained in:
Evan Cheng 2012-12-21 01:48:14 +00:00
parent 6d4fdd6d2c
commit 99cafb1db2
1 changed files with 2 additions and 0 deletions

View File

@ -106,6 +106,8 @@ namespace {
}
bool runOnFunction(Function &F);
const char *getPassName() const { return "CodeGen Prepare"; }
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
AU.addPreserved<DominatorTree>();
AU.addPreserved<ProfileInfo>();