PIC16 TAI doesn't need TM
authorChris Lattner <sabre@nondot.org>
Sun, 2 Aug 2009 04:41:14 +0000 (04:41 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 2 Aug 2009 04:41:14 +0000 (04:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77867 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PIC16/PIC16TargetAsmInfo.cpp
lib/Target/PIC16/PIC16TargetAsmInfo.h
lib/Target/PIC16/PIC16TargetMachine.cpp

index 7a48a469101f496826bacfc47d7214cccccb6f0c..50fba39112a229b0fd1a236975788de7d1b501f9 100644 (file)
 //===----------------------------------------------------------------------===//
 
 #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";
index 8fb9e0c29eb48cddfc023b81725c048923e1ba73..d24aa6bd620d074bf2a2eea5360b9d2a51b322df 100644 (file)
 #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;
   };
index 6a4492c5484ba72978e930d0464fd8fcedefeda8..1c5d3d4f2e5702d031881c79492f520bb5a472b8 100644 (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,