| //===-- CSKYTargetObjectFile.h - CSKY Object Info -*- C++ ---------------*-===// | |
| // | |
| // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | |
| // See https://llvm.org/LICENSE.txt for license information. | |
| // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | |
| // | |
| //===----------------------------------------------------------------------===// | |
| #include "CSKYTargetObjectFile.h" | |
| #include "CSKYTargetMachine.h" | |
| #include "llvm/BinaryFormat/Dwarf.h" | |
| #include "llvm/CodeGen/MachineFrameInfo.h" | |
| using namespace llvm; | |
| void CSKYELFTargetObjectFile::Initialize(MCContext &Ctx, | |
| const TargetMachine &TM) { | |
| TargetLoweringObjectFileELF::Initialize(Ctx, TM); | |
| LSDAEncoding = dwarf::DW_EH_PE_pcrel | dwarf::DW_EH_PE_sdata4; | |
| PersonalityEncoding = | |
| dwarf::DW_EH_PE_indirect | dwarf::DW_EH_PE_pcrel | dwarf::DW_EH_PE_sdata4; | |
| TTypeEncoding = | |
| dwarf::DW_EH_PE_indirect | dwarf::DW_EH_PE_pcrel | dwarf::DW_EH_PE_sdata4; | |
| } |