aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/SystemZ
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-07-18 23:03:22 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-07-18 23:03:22 +0000
commit4cb1e13769856716261a4d315f8202bd918502c3 (patch)
tree37be097eff658bad62348fef9c360a801f6303f3 /lib/Target/SystemZ
parent8ad2f9873939b1815bd4f788969ca210df42a8d4 (diff)
downloadexternal_llvm-4cb1e13769856716261a4d315f8202bd918502c3.zip
external_llvm-4cb1e13769856716261a4d315f8202bd918502c3.tar.gz
external_llvm-4cb1e13769856716261a4d315f8202bd918502c3.tar.bz2
Put Target definitions inside Target specific header, and llvm namespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76344 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SystemZ')
-rw-r--r--lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp1
-rw-r--r--lib/Target/SystemZ/SystemZ.h2
-rw-r--r--lib/Target/SystemZ/SystemZTargetMachine.cpp1
-rw-r--r--lib/Target/SystemZ/TargetInfo/SystemZTargetInfo.cpp3
4 files changed, 4 insertions, 3 deletions
diff --git a/lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp b/lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp
index 07c8ed0..1bb4d42 100644
--- a/lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp
+++ b/lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp
@@ -418,7 +418,6 @@ void SystemZAsmPrinter::printModuleLevelGV(const GlobalVariable* GVar) {
// Force static initialization.
extern "C" void LLVMInitializeSystemZAsmPrinter() {
- extern Target TheSystemZTarget;
TargetRegistry::RegisterAsmPrinter(TheSystemZTarget,
createSystemZCodePrinterPass);
}
diff --git a/lib/Target/SystemZ/SystemZ.h b/lib/Target/SystemZ/SystemZ.h
index 88b7b02..466b447 100644
--- a/lib/Target/SystemZ/SystemZ.h
+++ b/lib/Target/SystemZ/SystemZ.h
@@ -50,6 +50,8 @@ namespace llvm {
TargetMachine &tm,
bool verbose);
+ extern Target TheSystemZTarget;
+
} // end namespace llvm;
// Defines symbolic names for SystemZ registers.
diff --git a/lib/Target/SystemZ/SystemZTargetMachine.cpp b/lib/Target/SystemZ/SystemZTargetMachine.cpp
index 01be4ed..8799190 100644
--- a/lib/Target/SystemZ/SystemZTargetMachine.cpp
+++ b/lib/Target/SystemZ/SystemZTargetMachine.cpp
@@ -18,7 +18,6 @@
#include "llvm/Target/TargetMachineRegistry.h"
using namespace llvm;
-extern Target TheSystemZTarget;
namespace {
// Register the target.
RegisterTarget<SystemZTargetMachine> X(TheSystemZTarget,
diff --git a/lib/Target/SystemZ/TargetInfo/SystemZTargetInfo.cpp b/lib/Target/SystemZ/TargetInfo/SystemZTargetInfo.cpp
index c464039..09cb9c3 100644
--- a/lib/Target/SystemZ/TargetInfo/SystemZTargetInfo.cpp
+++ b/lib/Target/SystemZ/TargetInfo/SystemZTargetInfo.cpp
@@ -7,11 +7,12 @@
//
//===----------------------------------------------------------------------===//
+#include "SystemZ.h"
#include "llvm/Module.h"
#include "llvm/Target/TargetRegistry.h"
using namespace llvm;
-Target TheSystemZTarget;
+Target llvm::TheSystemZTarget;
static unsigned SystemZ_JITMatchQuality() {
return 0;