LLVM API Documentation

PPCTargetObjectFile.h
Go to the documentation of this file.
00001 //===-- PPCTargetObjectFile.h - PPC Object Info -----------------*- C++ -*-===//
00002 //
00003 //                     The LLVM Compiler Infrastructure
00004 //
00005 // This file is distributed under the University of Illinois Open Source
00006 // License. See LICENSE.TXT for details.
00007 //
00008 //===----------------------------------------------------------------------===//
00009 
00010 #ifndef LLVM_LIB_TARGET_POWERPC_PPCTARGETOBJECTFILE_H
00011 #define LLVM_LIB_TARGET_POWERPC_PPCTARGETOBJECTFILE_H
00012 
00013 #include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
00014 #include "llvm/Target/TargetLoweringObjectFile.h"
00015 #include "llvm/Target/TargetMachine.h"
00016 
00017 namespace llvm {
00018 
00019   /// PPC64LinuxTargetObjectFile - This implementation is used for
00020   /// 64-bit PowerPC Linux.
00021   class PPC64LinuxTargetObjectFile : public TargetLoweringObjectFileELF {
00022 
00023     void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
00024 
00025     const MCSection *SelectSectionForGlobal(const GlobalValue *GV,
00026                                         SectionKind Kind, Mangler &Mang,
00027                                         const TargetMachine &TM) const override;
00028 
00029     /// \brief Describe a TLS variable address within debug info.
00030     const MCExpr *getDebugThreadLocalSymbol(const MCSymbol *Sym) const override;
00031   };
00032 
00033 }  // end namespace llvm
00034 
00035 #endif