From: Owen Anderson Date: Tue, 4 Jan 2011 18:21:18 +0000 (+0000) Subject: Give MachineFunctionAnalysis a getPassName() implementation to make timing reports... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=19af2ed415e4bda9579dab11d30c378c5560e3ad;p=oota-llvm.git Give MachineFunctionAnalysis a getPassName() implementation to make timing reports prettier. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122816 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/CodeGen/MachineFunctionAnalysis.h b/include/llvm/CodeGen/MachineFunctionAnalysis.h index 75dbaab973d..50676ad4ad4 100644 --- a/include/llvm/CodeGen/MachineFunctionAnalysis.h +++ b/include/llvm/CodeGen/MachineFunctionAnalysis.h @@ -37,6 +37,10 @@ public: MachineFunction &getMF() const { return *MF; } CodeGenOpt::Level getOptLevel() const { return OptLevel; } + + virtual const char* getPassName() const { + return "Machine Function Analysis"; + } private: virtual bool doInitialization(Module &M);