25 lines
712 B
C++
25 lines
712 B
C++
#ifndef LLVM_LIB_TARGET_FOOT_FOOTMACHINEFUNCTIONINFO_H
|
|
#define LLVM_LIB_TARGET_FOOT_FOOTMACHINEFUNCTIONINFO_H
|
|
|
|
#include "llvm/CodeGen/MachineFunction.h"
|
|
|
|
namespace llvm {
|
|
|
|
class FootMachineFunctionInfo : public MachineFunctionInfo {
|
|
int RetAddrFI = -1;
|
|
|
|
public:
|
|
FootMachineFunctionInfo() = default;
|
|
|
|
int getReturnAddressFrameIndex() const { return RetAddrFI; }
|
|
void setReturnAddressFrameIndex(int RetAddrFI) { this->RetAddrFI = RetAddrFI; }
|
|
|
|
MachineFunctionInfo *
|
|
clone(BumpPtrAllocator &Allocator, MachineFunction &DestMF,
|
|
const DenseMap<MachineBasicBlock *, MachineBasicBlock *> &Src2DstMBB) const override;
|
|
};
|
|
|
|
} // namespace llvm
|
|
|
|
#endif // LLVM_LIB_TARGET_FOOT_FOOTMACHINEFUNCTIONINFO_H
|