[llvm-commits] CVS: llvm/lib/Target/TargetMachine.cpp
Misha Brukman
brukman at cs.uiuc.edu
Mon Jun 21 16:52:00 PDT 2004
Changes in directory llvm/lib/Target:
TargetMachine.cpp updated: 1.30 -> 1.31
---
Log message:
Direct declaration of namespace-ified globals does not work, must enclose
them with a namespace declaration.
---
Diffs of the changes: (+4 -3)
Index: llvm/lib/Target/TargetMachine.cpp
diff -u llvm/lib/Target/TargetMachine.cpp:1.30 llvm/lib/Target/TargetMachine.cpp:1.31
--- llvm/lib/Target/TargetMachine.cpp:1.30 Mon Jun 21 16:21:49 2004
+++ llvm/lib/Target/TargetMachine.cpp Mon Jun 21 16:44:12 2004
@@ -21,9 +21,10 @@
// Command-line options that tend to be useful on more than one back-end.
//
-bool llvm::PrintMachineCode;
-bool llvm::NoFramePointerElim;
-
+namespace llvm {
+ bool PrintMachineCode;
+ bool NoFramePointerElim;
+};
namespace {
cl::opt<bool, true> PrintCode("print-machineinstrs",
cl::desc("Print generated machine code"),
More information about the llvm-commits
mailing list