mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-11-04 05:17:07 +00:00 
			
		
		
		
	Make PPCSelectionDAGInfo take a DataLayout instead of a TargetMachine
since that's all it needs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210853 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
		@@ -16,9 +16,7 @@ using namespace llvm;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#define DEBUG_TYPE "powerpc-selectiondag-info"
 | 
					#define DEBUG_TYPE "powerpc-selectiondag-info"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
PPCSelectionDAGInfo::PPCSelectionDAGInfo(const PPCTargetMachine &TM)
 | 
					PPCSelectionDAGInfo::PPCSelectionDAGInfo(const DataLayout *DL)
 | 
				
			||||||
  : TargetSelectionDAGInfo(TM.getDataLayout()) {
 | 
					    : TargetSelectionDAGInfo(DL) {}
 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
PPCSelectionDAGInfo::~PPCSelectionDAGInfo() {
 | 
					PPCSelectionDAGInfo::~PPCSelectionDAGInfo() {}
 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
@@ -22,7 +22,7 @@ class PPCTargetMachine;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
class PPCSelectionDAGInfo : public TargetSelectionDAGInfo {
 | 
					class PPCSelectionDAGInfo : public TargetSelectionDAGInfo {
 | 
				
			||||||
public:
 | 
					public:
 | 
				
			||||||
  explicit PPCSelectionDAGInfo(const PPCTargetMachine &TM);
 | 
					  explicit PPCSelectionDAGInfo(const DataLayout *DL);
 | 
				
			||||||
  ~PPCSelectionDAGInfo();
 | 
					  ~PPCSelectionDAGInfo();
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -42,7 +42,8 @@ PPCTargetMachine::PPCTargetMachine(const Target &T, StringRef TT, StringRef CPU,
 | 
				
			|||||||
                                   Reloc::Model RM, CodeModel::Model CM,
 | 
					                                   Reloc::Model RM, CodeModel::Model CM,
 | 
				
			||||||
                                   CodeGenOpt::Level OL, bool is64Bit)
 | 
					                                   CodeGenOpt::Level OL, bool is64Bit)
 | 
				
			||||||
    : LLVMTargetMachine(T, TT, CPU, FS, Options, RM, CM, OL),
 | 
					    : LLVMTargetMachine(T, TT, CPU, FS, Options, RM, CM, OL),
 | 
				
			||||||
      Subtarget(TT, CPU, FS, *this, is64Bit, OL), TSInfo(*this) {
 | 
					      Subtarget(TT, CPU, FS, *this, is64Bit, OL),
 | 
				
			||||||
 | 
					      TSInfo(Subtarget.getDataLayout()) {
 | 
				
			||||||
  initAsmInfo();
 | 
					  initAsmInfo();
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user