forked from OSchip/llvm-project
parent
fb53861ee0
commit
3ea23cff65
|
@ -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";
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue