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 | e8d7bd0323a391f774631a72bcea181076969f18 (patch) | |
tree | b550898b50fa638f93d5519f630f6dfe13173470 | |
parent | b2a41e93887199c28e93354dcc7f51e589cd8784 (diff) | |
download | bcm5719-llvm-e8d7bd0323a391f774631a72bcea181076969f18.tar.gz bcm5719-llvm-e8d7bd0323a391f774631a72bcea181076969f18.zip |
Give MachineFunctionAnalysis a getPassName() implementation to make timing reports prettier.
llvm-svn: 122816
-rw-r--r-- | llvm/include/llvm/CodeGen/MachineFunctionAnalysis.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/include/llvm/CodeGen/MachineFunctionAnalysis.h b/llvm/include/llvm/CodeGen/MachineFunctionAnalysis.h index 75dbaab973d..50676ad4ad4 100644 --- a/llvm/include/llvm/CodeGen/MachineFunctionAnalysis.h +++ b/llvm/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); |