diff options
author | Owen Anderson <resistor@mac.com> | 2011-01-04 18:21:18 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2011-01-04 18:21:18 +0000 |
commit | 19af2ed415e4bda9579dab11d30c378c5560e3ad (patch) | |
tree | 75406601826eb09be44384abe6500d9e68313119 /include/llvm/CodeGen/MachineFunctionAnalysis.h | |
parent | 64573aecb6ee43202327e938cc42dd2c1ad0f045 (diff) |
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
Diffstat (limited to 'include/llvm/CodeGen/MachineFunctionAnalysis.h')
-rw-r--r-- | include/llvm/CodeGen/MachineFunctionAnalysis.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineFunctionAnalysis.h b/include/llvm/CodeGen/MachineFunctionAnalysis.h index 75dbaab973..50676ad4ad 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); |