[llvm-commits] [llvm] r122816 - /llvm/trunk/include/llvm/CodeGen/MachineFunctionAnalysis.h
Owen Anderson
resistor at mac.com
Tue Jan 4 10:21:18 PST 2011
Author: resistor
Date: Tue Jan 4 12:21:18 2011
New Revision: 122816
URL: http://llvm.org/viewvc/llvm-project?rev=122816&view=rev
Log:
Give MachineFunctionAnalysis a getPassName() implementation to make timing reports prettier.
Modified:
llvm/trunk/include/llvm/CodeGen/MachineFunctionAnalysis.h
Modified: llvm/trunk/include/llvm/CodeGen/MachineFunctionAnalysis.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/MachineFunctionAnalysis.h?rev=122816&r1=122815&r2=122816&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineFunctionAnalysis.h (original)
+++ llvm/trunk/include/llvm/CodeGen/MachineFunctionAnalysis.h Tue Jan 4 12:21:18 2011
@@ -37,6 +37,10 @@
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);
More information about the llvm-commits
mailing list