xref: /llvm-project/llvm/lib/Target/M68k/M68kMachineFunction.cpp (revision cc5a1b3dd9039d50f6b9caa679d60398f0cec65f)
1 //===-- M68kMachineFunctionInfo.cpp - M68k private data ---------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #include "M68kMachineFunction.h"
10 
11 #include "M68kInstrInfo.h"
12 #include "M68kSubtarget.h"
13 
14 #include "llvm/CodeGen/MachineInstrBuilder.h"
15 #include "llvm/CodeGen/MachineRegisterInfo.h"
16 #include "llvm/IR/Function.h"
17 
18 using namespace llvm;
19 
anchor()20 void M68kMachineFunctionInfo::anchor() {}
21 
clone(BumpPtrAllocator & Allocator,MachineFunction & DestMF,const DenseMap<MachineBasicBlock *,MachineBasicBlock * > & Src2DstMBB) const22 MachineFunctionInfo *M68kMachineFunctionInfo::clone(
23     BumpPtrAllocator &Allocator, MachineFunction &DestMF,
24     const DenseMap<MachineBasicBlock *, MachineBasicBlock *> &Src2DstMBB)
25     const {
26   return DestMF.cloneInfo<M68kMachineFunctionInfo>(*this);
27 }
28