diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-18 23:03:22 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-18 23:03:22 +0000 |
commit | 4cb1e13769856716261a4d315f8202bd918502c3 (patch) | |
tree | 37be097eff658bad62348fef9c360a801f6303f3 /lib/Target/PIC16 | |
parent | 8ad2f9873939b1815bd4f788969ca210df42a8d4 (diff) |
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/PIC16')
-rw-r--r-- | lib/Target/PIC16/PIC16.h | 4 | ||||
-rw-r--r-- | lib/Target/PIC16/PIC16TargetMachine.cpp | 2 | ||||
-rw-r--r-- | lib/Target/PIC16/TargetInfo/PIC16TargetInfo.cpp | 5 |
3 files changed, 7 insertions, 4 deletions
diff --git a/lib/Target/PIC16/PIC16.h b/lib/Target/PIC16/PIC16.h index 39a5119aa8..b1df058cb8 100644 --- a/lib/Target/PIC16/PIC16.h +++ b/lib/Target/PIC16/PIC16.h @@ -348,6 +348,10 @@ namespace PIC16CC { bool Verbose); // Banksel optimzer pass. FunctionPass *createPIC16MemSelOptimizerPass(); + + extern Target ThePIC16Target; + extern Target TheCooperTarget; + } // end namespace llvm; // Defines symbolic names for PIC16 registers. This defines a mapping from diff --git a/lib/Target/PIC16/PIC16TargetMachine.cpp b/lib/Target/PIC16/PIC16TargetMachine.cpp index 9f6266c672..dca6ade938 100644 --- a/lib/Target/PIC16/PIC16TargetMachine.cpp +++ b/lib/Target/PIC16/PIC16TargetMachine.cpp @@ -23,11 +23,9 @@ using namespace llvm; // Register the targets -extern Target ThePIC16Target; static RegisterTarget<PIC16TargetMachine> X(ThePIC16Target, "pic16", "PIC16 14-bit [experimental]."); -extern Target TheCooperTarget; static RegisterTarget<CooperTargetMachine> Y(TheCooperTarget, "cooper", "PIC16 Cooper [experimental]."); diff --git a/lib/Target/PIC16/TargetInfo/PIC16TargetInfo.cpp b/lib/Target/PIC16/TargetInfo/PIC16TargetInfo.cpp index 454f4259ff..20bbba8a91 100644 --- a/lib/Target/PIC16/TargetInfo/PIC16TargetInfo.cpp +++ b/lib/Target/PIC16/TargetInfo/PIC16TargetInfo.cpp @@ -7,11 +7,12 @@ // //===----------------------------------------------------------------------===// +#include "PIC16.h" #include "llvm/Module.h" #include "llvm/Target/TargetRegistry.h" using namespace llvm; -Target ThePIC16Target; +Target llvm::ThePIC16Target; static unsigned PIC16_JITMatchQuality() { return 0; @@ -25,7 +26,7 @@ static unsigned PIC16_ModuleMatchQuality(const Module &M) { return 0; } -Target TheCooperTarget; +Target llvm::TheCooperTarget; static unsigned Cooper_JITMatchQuality() { return 0; |