diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-08-24 17:54:26 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-08-24 17:54:26 +0000 |
commit | 44956326f02e4d219f2afbe4968ae5f13a70d6d8 (patch) | |
tree | 3219fc990b5d51dc97266de74f4af8c7936ea3a5 /tools | |
parent | 1f079267dc8281f9cb92b23910de621b3387265a (diff) | |
download | llvm-44956326f02e4d219f2afbe4968ae5f13a70d6d8.tar.gz llvm-44956326f02e4d219f2afbe4968ae5f13a70d6d8.tar.bz2 llvm-44956326f02e4d219f2afbe4968ae5f13a70d6d8.tar.xz |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16033 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/llvmc/llvmc.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/llvmc/llvmc.cpp b/tools/llvmc/llvmc.cpp index c87c6523f1..49e3fd90fd 100644 --- a/tools/llvmc/llvmc.cpp +++ b/tools/llvmc/llvmc.cpp @@ -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::alias DebugAlias("d", cl::Optional, 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 @@ int main(int argc, char **argv) { CD.setEmitNativeCode(Native); CD.setEmitRawCode(EmitRawCode); CD.setTimeActions(TimeActions); - CD.setTimePasses(TimePasses); + CD.setTimePasses(TimePassesIsEnabled); CD.setShowStats(ShowStats); CD.setKeepTemporaries(KeepTemporaries); CD.setLibraryPaths(LibPaths); |