summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/PassManager.cpp
diff options
context:
space:
mode:
authorEli Bendersky <eliben@google.com>2013-04-03 15:33:45 +0000
committerEli Bendersky <eliben@google.com>2013-04-03 15:33:45 +0000
commitb35a211f61c360b4758d79e8c156ac7c3f63df19 (patch)
tree452a53027a38a2acd34c5286ba3bfb858f6e7b2b /llvm/lib/IR/PassManager.cpp
parentc0b7be60f8ec3047ad1610da76a2859e733379b4 (diff)
downloadbcm5719-llvm-b35a211f61c360b4758d79e8c156ac7c3f63df19.tar.gz
bcm5719-llvm-b35a211f61c360b4758d79e8c156ac7c3f63df19.zip
Measure time that IR parsing took as part of the -time-passes measurement.
llvm-svn: 178662
Diffstat (limited to 'llvm/lib/IR/PassManager.cpp')
-rw-r--r--llvm/lib/IR/PassManager.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/IR/PassManager.cpp b/llvm/lib/IR/PassManager.cpp
index 5a8df703dbe..3c968aac164 100644
--- a/llvm/lib/IR/PassManager.cpp
+++ b/llvm/lib/IR/PassManager.cpp
@@ -1739,10 +1739,8 @@ bool PassManager::run(Module &M) {
}
//===----------------------------------------------------------------------===//
-// TimingInfo Class - This class is used to calculate information about the
-// amount of time each pass takes to execute. This only happens with
-// -time-passes is enabled on the command line.
-//
+// TimingInfo implementation
+
bool llvm::TimePassesIsEnabled = false;
static cl::opt<bool,true>
EnableTiming("time-passes", cl::location(TimePassesIsEnabled),
OpenPOWER on IntegriCloud