[llvm-commits] CVS: llvm/lib/Target/TargetMachine.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Thu Mar 4 13:23:48 PST 2004
Changes in directory llvm/lib/Target:
TargetMachine.cpp updated: 1.23 -> 1.24
---
Log message:
make -print-machineinstrs work for both SparcV9 and X86
---
Diffs of the changes: (+14 -0)
Index: llvm/lib/Target/TargetMachine.cpp
diff -u llvm/lib/Target/TargetMachine.cpp:1.23 llvm/lib/Target/TargetMachine.cpp:1.24
--- llvm/lib/Target/TargetMachine.cpp:1.23 Tue Mar 2 20:12:47 2004
+++ llvm/lib/Target/TargetMachine.cpp Thu Mar 4 13:16:23 2004
@@ -14,7 +14,21 @@
#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
More information about the llvm-commits
mailing list