summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-03-10 20:41:52 +0000
committerBill Wendling <isanbard@gmail.com>2009-03-10 20:41:52 +0000
commite8dd2847ff3eb3918bfb07706920e741d21608fd (patch)
treeef32f099a7c74425141f9b04b46e924840ecbf57 /llvm/include
parente2c9defed878ccdddf57445f49b1fb6f2b324357 (diff)
downloadbcm5719-llvm-e8dd2847ff3eb3918bfb07706920e741d21608fd.tar.gz
bcm5719-llvm-e8dd2847ff3eb3918bfb07706920e741d21608fd.zip
Add a timer to the DwarfWriter pass that measures the total time it takes to
emit exception and debug Dwarf info. llvm-svn: 66571
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/CodeGen/DwarfWriter.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/include/llvm/CodeGen/DwarfWriter.h b/llvm/include/llvm/CodeGen/DwarfWriter.h
index a5597322fcb..97cf80bbffd 100644
--- a/llvm/include/llvm/CodeGen/DwarfWriter.h
+++ b/llvm/include/llvm/CodeGen/DwarfWriter.h
@@ -33,6 +33,7 @@ class Value;
class Module;
class GlobalVariable;
class TargetAsmInfo;
+class Timer;
class raw_ostream;
//===----------------------------------------------------------------------===//
@@ -49,12 +50,15 @@ private:
///
DwarfException *DE;
+ /// DwarfTimer - Timer for the Dwarf writer.
+ ///
+ Timer *DwarfTimer;
public:
static char ID; // Pass identification, replacement for typeid
DwarfWriter();
virtual ~DwarfWriter();
-
+
//===--------------------------------------------------------------------===//
// Main entry points.
//
OpenPOWER on IntegriCloud