Direct declaration of namespace-ified globals does not work, must enclose
[oota-llvm.git] / lib / Target / TargetMachine.cpp
index 8e114fc0b271f5f3bc14862c2148ee18a037634d..d71bd3f9542f0bdbf0f710297c0d7720ff37eb49 100644 (file)
@@ -21,9 +21,10 @@ using namespace llvm;
 // 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"),