summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/MachineFunctionAnalysis.h
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2011-01-04 18:21:18 +0000
committerOwen Anderson <resistor@mac.com>2011-01-04 18:21:18 +0000
commit19af2ed415e4bda9579dab11d30c378c5560e3ad (patch)
tree75406601826eb09be44384abe6500d9e68313119 /include/llvm/CodeGen/MachineFunctionAnalysis.h
parent64573aecb6ee43202327e938cc42dd2c1ad0f045 (diff)
downloadllvm-19af2ed415e4bda9579dab11d30c378c5560e3ad.tar.gz
llvm-19af2ed415e4bda9579dab11d30c378c5560e3ad.tar.bz2
llvm-19af2ed415e4bda9579dab11d30c378c5560e3ad.tar.xz
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.h4
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);