#include "CSKYTargetMachine.h"
#include "CSKY.h"
+#include "CSKYMachineFunctionInfo.h"
#include "CSKYSubtarget.h"
#include "CSKYTargetObjectFile.h"
#include "TargetInfo/CSKYTargetInfo.h"
return I.get();
}
+MachineFunctionInfo *CSKYTargetMachine::createMachineFunctionInfo(
+ BumpPtrAllocator &Allocator, const Function &F,
+ const TargetSubtargetInfo *STI) const {
+ return CSKYMachineFunctionInfo::create<CSKYMachineFunctionInfo>(Allocator, F,
+ STI);
+}
+
namespace {
class CSKYPassConfig : public TargetPassConfig {
public:
TargetLoweringObjectFile *getObjFileLowering() const override {
return TLOF.get();
}
+
+ MachineFunctionInfo *
+ createMachineFunctionInfo(BumpPtrAllocator &Allocator, const Function &F,
+ const TargetSubtargetInfo *STI) const override;
};
} // namespace llvm