[llvm-commits] [llvm] r170831 - /llvm/trunk/lib/Transforms/Scalar/CodeGenPrepare.cpp
Evan Cheng
evan.cheng at apple.com
Thu Dec 20 17:48:15 PST 2012
Author: evancheng
Date: Thu Dec 20 19:48:14 2012
New Revision: 170831
URL: http://llvm.org/viewvc/llvm-project?rev=170831&view=rev
Log:
Every pass deserves a name, even codegenprep.
Modified:
llvm/trunk/lib/Transforms/Scalar/CodeGenPrepare.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/CodeGenPrepare.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/CodeGenPrepare.cpp?rev=170831&r1=170830&r2=170831&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/CodeGenPrepare.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/CodeGenPrepare.cpp Thu Dec 20 19:48:14 2012
@@ -106,6 +106,8 @@
}
bool runOnFunction(Function &F);
+ const char *getPassName() const { return "CodeGen Prepare"; }
+
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
AU.addPreserved<DominatorTree>();
AU.addPreserved<ProfileInfo>();
More information about the llvm-commits
mailing list