Put Target definitions inside Target specific header, and llvm namespace.
llvm-svn: 76344
diff --git a/llvm/lib/Target/ARM/ARMTargetMachine.cpp b/llvm/lib/Target/ARM/ARMTargetMachine.cpp
index a207871..08bb382 100644
--- a/llvm/lib/Target/ARM/ARMTargetMachine.cpp
+++ b/llvm/lib/Target/ARM/ARMTargetMachine.cpp
@@ -29,11 +29,10 @@
cl::desc("Disable if-conversion pass"));
// Register the target.
-extern Target TheARMTarget;
-static RegisterTarget<ARMTargetMachine> X(TheARMTarget, "arm", "ARM");
+static RegisterTarget<ARMTargetMachine> X(llvm::TheARMTarget, "arm", "ARM");
-extern Target TheThumbTarget;
-static RegisterTarget<ThumbTargetMachine> Y(TheThumbTarget, "thumb", "Thumb");
+static RegisterTarget<ThumbTargetMachine> Y(llvm::TheThumbTarget, "thumb",
+ "Thumb");
// Force static initialization.
extern "C" void LLVMInitializeARMTarget() { }