1 //===-- llvm/Target/PPCTargetObjectFile.cpp - PPC Object Info Impl --------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #include "PPCTargetObjectFile.h"
11 #include "PPCSubtarget.h"
12 #include "llvm/MC/MCSectionMachO.h"
13 #include "llvm/Support/Dwarf.h"
14 #include "llvm/Target/TargetMachine.h"
16 using namespace dwarf;
18 //===----------------------------------------------------------------------===//
20 //===----------------------------------------------------------------------===//
22 void PPCMachOTargetObjectFile::Initialize(MCContext &Ctx,
23 const TargetMachine &TM) {
24 TargetLoweringObjectFileMachO::Initialize(Ctx, TM);
26 // Exception Handling.
27 LSDASection = getMachOSection("__TEXT", "__gcc_except_tab", 0,
28 SectionKind::getReadOnlyWithRel());
31 unsigned PPCMachOTargetObjectFile::getTTypeEncoding() const {
32 return DW_EH_PE_indirect | DW_EH_PE_pcrel | DW_EH_PE_sdata4;