aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/Alpha
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/Alpha
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/Alpha')
-rw-r--r--lib/Target/Alpha/Alpha.h2
-rw-r--r--lib/Target/Alpha/AlphaTargetMachine.cpp1
-rw-r--r--lib/Target/Alpha/AsmPrinter/AlphaAsmPrinter.cpp1
-rw-r--r--lib/Target/Alpha/TargetInfo/AlphaTargetInfo.cpp3
4 files changed, 4 insertions, 3 deletions
diff --git a/lib/Target/Alpha/Alpha.h b/lib/Target/Alpha/Alpha.h
index 9226a55..93c4c70 100644
--- a/lib/Target/Alpha/Alpha.h
+++ b/lib/Target/Alpha/Alpha.h
@@ -39,6 +39,8 @@ namespace llvm {
FunctionPass *createAlphaLLRPPass(AlphaTargetMachine &tm);
FunctionPass *createAlphaBranchSelectionPass();
+ extern Target TheAlphaTarget;
+
} // end namespace llvm;
// Defines symbolic names for Alpha registers. This defines a mapping from
diff --git a/lib/Target/Alpha/AlphaTargetMachine.cpp b/lib/Target/Alpha/AlphaTargetMachine.cpp
index c57d06f..1947e65 100644
--- a/lib/Target/Alpha/AlphaTargetMachine.cpp
+++ b/lib/Target/Alpha/AlphaTargetMachine.cpp
@@ -22,7 +22,6 @@
using namespace llvm;
// Register the targets
-extern Target TheAlphaTarget;
static RegisterTarget<AlphaTargetMachine> X(TheAlphaTarget, "alpha",
"Alpha [experimental]");
diff --git a/lib/Target/Alpha/AsmPrinter/AlphaAsmPrinter.cpp b/lib/Target/Alpha/AsmPrinter/AlphaAsmPrinter.cpp
index 0f5950e..b772c14 100644
--- a/lib/Target/Alpha/AsmPrinter/AlphaAsmPrinter.cpp
+++ b/lib/Target/Alpha/AsmPrinter/AlphaAsmPrinter.cpp
@@ -295,7 +295,6 @@ bool AlphaAsmPrinter::PrintAsmMemoryOperand(const MachineInstr *MI,
// Force static initialization.
extern "C" void LLVMInitializeAlphaAsmPrinter() {
- extern Target TheAlphaTarget;
TargetRegistry::RegisterAsmPrinter(TheAlphaTarget,
createAlphaCodePrinterPass);
}
diff --git a/lib/Target/Alpha/TargetInfo/AlphaTargetInfo.cpp b/lib/Target/Alpha/TargetInfo/AlphaTargetInfo.cpp
index df560b8..60f53e3 100644
--- a/lib/Target/Alpha/TargetInfo/AlphaTargetInfo.cpp
+++ b/lib/Target/Alpha/TargetInfo/AlphaTargetInfo.cpp
@@ -7,11 +7,12 @@
//
//===----------------------------------------------------------------------===//
+#include "Alpha.h"
#include "llvm/Module.h"
#include "llvm/Target/TargetRegistry.h"
using namespace llvm;
-Target TheAlphaTarget;
+llvm::Target llvm::TheAlphaTarget;
static unsigned Alpha_JITMatchQuality() {
#ifdef __alpha