[llvm-commits] CVS: llvm/tools/llvmc/llvmc.cpp

Reid Spencer reid at x10sys.com
Tue Aug 24 10:54:37 PDT 2004



Changes in directory llvm/tools/llvmc:

llvmc.cpp updated: 1.8 -> 1.9
---
Log message:

Get rid of error messages from CommandLine because -time-passes was 
defined twice. We make use of the new TimePassesIsEnabled global boolean
value from Pass.h to access the value.


---
Diffs of the changes:  (+2 -4)

Index: llvm/tools/llvmc/llvmc.cpp
diff -u llvm/tools/llvmc/llvmc.cpp:1.8 llvm/tools/llvmc/llvmc.cpp:1.9
--- llvm/tools/llvmc/llvmc.cpp:1.8	Tue Aug 24 09:05:30 2004
+++ llvm/tools/llvmc/llvmc.cpp	Tue Aug 24 12:54:26 2004
@@ -16,6 +16,7 @@
 
 #include "CompilerDriver.h"
 #include "Configuration.h"
+#include "llvm/Pass.h"
 #include "llvm/System/Signals.h"
 #include "Support/CommandLine.h"
 #include <iostream>
@@ -138,9 +139,6 @@
 cl::opt<bool> TimeActions("time-actions", cl::Optional, cl::init(false),
   cl::desc("Print execution time for each action taken"));
 
-cl::opt<bool> TimePasses("time-passes", cl::Optional, cl::init(false),
-  cl::desc("Print execution time for each optimization pass"));
-
 cl::opt<bool> ShowStats("stats", cl::Optional, cl::init(false),
   cl::desc("Print statistics accumulated during optimization"));
 
@@ -240,7 +238,7 @@
     CD.setEmitNativeCode(Native);
     CD.setEmitRawCode(EmitRawCode);
     CD.setTimeActions(TimeActions);
-    CD.setTimePasses(TimePasses);
+    CD.setTimePasses(TimePassesIsEnabled);
     CD.setShowStats(ShowStats);
     CD.setKeepTemporaries(KeepTemporaries);
     CD.setLibraryPaths(LibPaths);






More information about the llvm-commits mailing list