From 8bc93c6fdfd7ca29f6a41f9b72720f8cf7a3caec Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Tue, 4 Jan 2011 18:21:18 +0000 Subject: [PATCH] Give MachineFunctionAnalysis a getPassName() implementation to make timing reports prettier. llvm-svn: 122816 --- include/llvm/CodeGen/MachineFunctionAnalysis.h | 4 ++++ 1 file changed, 4 insertions(+) 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);