From f90e402af88c179d152ad5b4aba307814530ecca Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Mon, 21 Jun 2004 21:44:12 +0000 Subject: [PATCH] Direct declaration of namespace-ified globals does not work, must enclose them with a namespace declaration. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14303 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/TargetMachine.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/Target/TargetMachine.cpp b/lib/Target/TargetMachine.cpp index 8e114fc0b27..d71bd3f9542 100644 --- a/lib/Target/TargetMachine.cpp +++ b/lib/Target/TargetMachine.cpp @@ -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 PrintCode("print-machineinstrs", cl::desc("Print generated machine code"), -- 2.34.1