diff options
author | Chris Lattner <sabre@nondot.org> | 2002-07-22 02:10:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-07-22 02:10:13 +0000 |
commit | 5ff62e90d0bc321206023897edc1e2691cb0fbb6 (patch) | |
tree | f9dd91f41ef5858a217a9b871d0e3d8fe089da99 /lib/ExecutionEngine/Interpreter/Execution.cpp | |
parent | 50e3f88d38d93edcec9047322da8ed43aefc9e3d (diff) |
*** empty log message ***
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2985 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/Interpreter/Execution.cpp')
-rw-r--r-- | lib/ExecutionEngine/Interpreter/Execution.cpp | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/lib/ExecutionEngine/Interpreter/Execution.cpp b/lib/ExecutionEngine/Interpreter/Execution.cpp index 68379f4e16..b2eb378b40 100644 --- a/lib/ExecutionEngine/Interpreter/Execution.cpp +++ b/lib/ExecutionEngine/Interpreter/Execution.cpp @@ -24,10 +24,18 @@ using std::vector; using std::cout; using std::cerr; -cl::Flag QuietMode ("quiet" , "Do not emit any non-program output"); -cl::Alias QuietModeA("q" , "Alias for -quiet", cl::NoFlags, QuietMode); -cl::Flag ArrayChecksEnabled("array-checks", "Enable array bound checks"); -cl::Flag AbortOnExceptions("abort-on-exception", "Halt execution on a machine exception"); +static cl::opt<bool> +QuietMode("quiet", cl::desc("Do not emit any non-program output")); + +static cl::alias +QuietModeA("q", cl::desc("Alias for -quiet"), cl::aliasopt(QuietMode)); + +static cl::opt<bool> +ArrayChecksEnabled("array-checks", cl::desc("Enable array bound checks")); + +static cl::opt<bool> +AbortOnExceptions("abort-on-exception", + cl::desc("Halt execution on a machine exception")); // Create a TargetData structure to handle memory addressing and size/alignment // computations @@ -37,8 +45,9 @@ CachedWriter CW; // Object to accelerate printing of LLVM #ifdef PROFILE_STRUCTURE_FIELDS -static cl::Flag ProfileStructureFields("profilestructfields", - "Profile Structure Field Accesses"); +static cl::opt<bool> +ProfileStructureFields("profilestructfields", + cl::desc("Profile Structure Field Accesses")); #include <map> static std::map<const StructType *, vector<unsigned> > FieldAccessCounts; #endif |