diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2004-03-04 19:16:23 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2004-03-04 19:16:23 +0000 |
commit | 323819e4e1e3573072e7dbd82b0ebd75b5df0648 (patch) | |
tree | 6dccce862eb949adb13ce1e46475e1e16fcd97d0 /lib/Target/TargetMachine.cpp | |
parent | ce1e500e2f2e25da5164302af25573d828c4a11d (diff) |
make -print-machineinstrs work for both SparcV9 and X86
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12122 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetMachine.cpp')
-rw-r--r-- | lib/Target/TargetMachine.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/Target/TargetMachine.cpp b/lib/Target/TargetMachine.cpp index 2c8b79622a..82778d9b8a 100644 --- a/lib/Target/TargetMachine.cpp +++ b/lib/Target/TargetMachine.cpp @@ -14,9 +14,23 @@ #include "llvm/Target/TargetMachine.h" #include "llvm/Type.h" #include "llvm/IntrinsicLowering.h" +#include "Support/CommandLine.h" using namespace llvm; //--------------------------------------------------------------------------- +// Command-line options that tend to be useful on more than one back-end. +// + +namespace llvm { + bool PrintMachineCode; +}; +namespace { + cl::opt<bool, true> PrintCode("print-machineinstrs", + cl::desc("Print generated machine code"), + cl::location(PrintMachineCode), cl::init(false)); +}; + +//--------------------------------------------------------------------------- // TargetMachine Class // TargetMachine::TargetMachine(const std::string &name, IntrinsicLowering *il, |