From: Evan Cheng Date: Fri, 21 Dec 2012 01:48:14 +0000 (+0000) Subject: Every pass deserves a name, even codegenprep. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a16422f11b030097182143581aaaa5451175b687;p=oota-llvm.git Every pass deserves a name, even codegenprep. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170831 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/CodeGenPrepare.cpp b/lib/Transforms/Scalar/CodeGenPrepare.cpp index c490705f3ba..b8900ac3d77 100644 --- a/lib/Transforms/Scalar/CodeGenPrepare.cpp +++ b/lib/Transforms/Scalar/CodeGenPrepare.cpp @@ -106,6 +106,8 @@ namespace { } bool runOnFunction(Function &F); + const char *getPassName() const { return "CodeGen Prepare"; } + virtual void getAnalysisUsage(AnalysisUsage &AU) const { AU.addPreserved(); AU.addPreserved();