diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-02 04:41:14 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-02 04:41:14 +0000 |
commit | 055f686e1279e07d24d35105800c13ca97005d2b (patch) | |
tree | 9fbd97bcde5212134044f2adc46ecdd63f4245f8 /lib/Target | |
parent | e3cfb273a3fe3b0f7cf832e7cff8dd2b45fc1062 (diff) | |
download | external_llvm-055f686e1279e07d24d35105800c13ca97005d2b.zip external_llvm-055f686e1279e07d24d35105800c13ca97005d2b.tar.gz external_llvm-055f686e1279e07d24d35105800c13ca97005d2b.tar.bz2 |
PIC16 TAI doesn't need TM
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77867 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/PIC16/PIC16TargetAsmInfo.cpp | 10 | ||||
-rw-r--r-- | lib/Target/PIC16/PIC16TargetAsmInfo.h | 7 | ||||
-rw-r--r-- | lib/Target/PIC16/PIC16TargetMachine.cpp | 2 |
3 files changed, 7 insertions, 12 deletions
diff --git a/lib/Target/PIC16/PIC16TargetAsmInfo.cpp b/lib/Target/PIC16/PIC16TargetAsmInfo.cpp index 7a48a46..50fba39 100644 --- a/lib/Target/PIC16/PIC16TargetAsmInfo.cpp +++ b/lib/Target/PIC16/PIC16TargetAsmInfo.cpp @@ -12,15 +12,15 @@ //===----------------------------------------------------------------------===// #include "PIC16TargetAsmInfo.h" -#include "PIC16TargetMachine.h" -#include "llvm/GlobalValue.h" -#include "llvm/GlobalVariable.h" -#include "llvm/DerivedTypes.h" +// FIXME: Layering violation to get enums and static function, should be moved +// to separate headers. +#include "PIC16.h" +#include "PIC16ISelLowering.h" using namespace llvm; PIC16TargetAsmInfo:: -PIC16TargetAsmInfo(const PIC16TargetMachine &TM) { +PIC16TargetAsmInfo() { CommentString = ";"; GlobalPrefix = PAN::getTagName(PAN::PREFIX_SYMBOL); GlobalDirective = "\tglobal\t"; diff --git a/lib/Target/PIC16/PIC16TargetAsmInfo.h b/lib/Target/PIC16/PIC16TargetAsmInfo.h index 8fb9e0c..d24aa6b 100644 --- a/lib/Target/PIC16/PIC16TargetAsmInfo.h +++ b/lib/Target/PIC16/PIC16TargetAsmInfo.h @@ -17,17 +17,12 @@ #include "llvm/Target/TargetAsmInfo.h" namespace llvm { - - // Forward declaration. - class PIC16TargetMachine; - class PIC16TargetAsmInfo : public TargetAsmInfo { const char *RomData8bitsDirective; const char *RomData16bitsDirective; const char *RomData32bitsDirective; public: - PIC16TargetAsmInfo(const PIC16TargetMachine &TM); - + PIC16TargetAsmInfo(); virtual const char *getDataASDirective(unsigned size, unsigned AS) const; }; diff --git a/lib/Target/PIC16/PIC16TargetMachine.cpp b/lib/Target/PIC16/PIC16TargetMachine.cpp index 6a4492c..1c5d3d4 100644 --- a/lib/Target/PIC16/PIC16TargetMachine.cpp +++ b/lib/Target/PIC16/PIC16TargetMachine.cpp @@ -38,7 +38,7 @@ CooperTargetMachine::CooperTargetMachine(const Target &T, const Module &M, const TargetAsmInfo *PIC16TargetMachine::createTargetAsmInfo() const { - return new PIC16TargetAsmInfo(*this); + return new PIC16TargetAsmInfo(); } bool PIC16TargetMachine::addInstSelector(PassManagerBase &PM, |