PIC16 TAI doesn't need TM

llvm-svn: 77867
This commit is contained in:
Chris Lattner 2009-08-02 04:41:14 +00:00
parent fb53861ee0
commit 3ea23cff65
3 changed files with 7 additions and 12 deletions

View File

@ -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";

View File

@ -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;
};

View File

@ -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,