blob: 7baedd2ddfddf9871b7fd337b121b03a41ee4aef [file] [log] [blame]
Jia Liub22310f2012-02-18 12:03:15 +00001//===-- X86TargetObjectFile.h - X86 Object Info -----------------*- C++ -*-===//
Chris Lattnerb8666022009-09-16 01:46:41 +00002//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10#ifndef LLVM_TARGET_X86_TARGETOBJECTFILE_H
11#define LLVM_TARGET_X86_TARGETOBJECTFILE_H
12
Anton Korobeynikovab663a02010-02-15 22:37:53 +000013#include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
Chris Lattnerb8666022009-09-16 01:46:41 +000014#include "llvm/Target/TargetLoweringObjectFile.h"
Chandler Carruth802d7552012-12-04 07:12:27 +000015#include "llvm/Target/TargetMachine.h"
Chris Lattnerb8666022009-09-16 01:46:41 +000016
17namespace llvm {
Anton Korobeynikovae4ccc12010-02-15 22:35:59 +000018
Bill Wendling8ed44462012-06-26 10:05:06 +000019 /// X86_64MachoTargetObjectFile - This TLOF implementation is used for Darwin
Bill Wendling03448742010-03-15 19:04:37 +000020 /// x86-64.
Bill Wendling8ed44462012-06-26 10:05:06 +000021 class X86_64MachoTargetObjectFile : public TargetLoweringObjectFileMachO {
Bill Wendling03448742010-03-15 19:04:37 +000022 public:
Chris Lattnerb8666022009-09-16 01:46:41 +000023 virtual const MCExpr *
Anton Korobeynikove42af362012-11-14 01:47:00 +000024 getTTypeGlobalReference(const GlobalValue *GV, Mangler *Mang,
25 MachineModuleInfo *MMI, unsigned Encoding,
26 MCStreamer &Streamer) const;
Rafael Espindola08704342011-04-27 23:08:15 +000027
28 // getCFIPersonalitySymbol - The symbol that gets passed to
29 // .cfi_personality.
30 virtual MCSymbol *
Rafael Espindolace83fc32011-04-27 23:17:57 +000031 getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang,
32 MachineModuleInfo *MMI) const;
Chris Lattnerb8666022009-09-16 01:46:41 +000033 };
Anton Korobeynikovae4ccc12010-02-15 22:35:59 +000034
Rafael Espindolaca3e0ee2012-06-19 00:48:28 +000035 /// X86LinuxTargetObjectFile - This implementation is used for linux x86
36 /// and x86-64.
37 class X86LinuxTargetObjectFile : public TargetLoweringObjectFileELF {
38 virtual void Initialize(MCContext &Ctx, const TargetMachine &TM);
David Blaikie1b01ae82013-07-01 21:45:25 +000039
40 /// \brief Describe a TLS variable address within debug info.
41 virtual const MCSymbolRefExpr *getDebugThreadLocalSymbol(const MCSymbol *Sym) const;
Rafael Espindolaca3e0ee2012-06-19 00:48:28 +000042 };
43
Chris Lattnerb8666022009-09-16 01:46:41 +000044} // end namespace llvm
45
46#endif