//===----------------------------------------------------------------------===//
#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";
#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;
};
const TargetAsmInfo *PIC16TargetMachine::createTargetAsmInfo() const {
- return new PIC16TargetAsmInfo(*this);
+ return new PIC16TargetAsmInfo();
}
bool PIC16TargetMachine::addInstSelector(PassManagerBase &PM,