[llvm-commits] CVS: llvm/lib/VMCore/Pass.cpp
Reid Spencer
reid at x10sys.com
Tue Aug 24 10:52:45 PDT 2004
Changes in directory llvm/lib/VMCore:
Pass.cpp updated: 1.60 -> 1.61
---
Log message:
Give the -time-passes tool option a global storage location so that its
value can be discovered by the various LLVM tools.
---
Diffs of the changes: (+4 -3)
Index: llvm/lib/VMCore/Pass.cpp
diff -u llvm/lib/VMCore/Pass.cpp:1.60 llvm/lib/VMCore/Pass.cpp:1.61
--- llvm/lib/VMCore/Pass.cpp:1.60 Wed Jul 7 16:22:05 2004
+++ llvm/lib/VMCore/Pass.cpp Tue Aug 24 12:52:35 2004
@@ -110,15 +110,16 @@
// amount of time each pass takes to execute. This only happens with
// -time-passes is enabled on the command line.
//
-static cl::opt<bool>
-EnableTiming("time-passes",
+bool llvm::TimePassesIsEnabled = false;
+static cl::opt<bool,true>
+EnableTiming("time-passes", cl::location(TimePassesIsEnabled),
cl::desc("Time each pass, printing elapsed time for each on exit"));
// createTheTimeInfo - This method either initializes the TheTimeInfo pointer to
// a non null value (if the -time-passes option is enabled) or it leaves it
// null. It may be called multiple times.
void TimingInfo::createTheTimeInfo() {
- if (!EnableTiming || TheTimeInfo) return;
+ if (!TimePassesIsEnabled || TheTimeInfo) return;
// Constructed the first time this is called, iff -time-passes is enabled.
// This guarantees that the object will be constructed before static globals,
More information about the llvm-commits
mailing list