1 //===-- CSKYTargetObjectFile.h - CSKY Object Info -*- 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 "CSKYTargetObjectFile.h"
10 #include "CSKYTargetMachine.h"
11 #include "llvm/BinaryFormat/Dwarf.h"
12 #include "llvm/CodeGen/MachineFrameInfo.h"
13 
14 using namespace llvm;
15 
16 void CSKYELFTargetObjectFile::Initialize(MCContext &Ctx,
17                                          const TargetMachine &TM) {
18   TargetLoweringObjectFileELF::Initialize(Ctx, TM);
19 
20   LSDAEncoding = dwarf::DW_EH_PE_pcrel | dwarf::DW_EH_PE_sdata4;
21   PersonalityEncoding =
22       dwarf::DW_EH_PE_indirect | dwarf::DW_EH_PE_pcrel | dwarf::DW_EH_PE_sdata4;
23   TTypeEncoding =
24       dwarf::DW_EH_PE_indirect | dwarf::DW_EH_PE_pcrel | dwarf::DW_EH_PE_sdata4;
25 }
26