Stephen Hines | 36b5688 | 2014-04-23 16:57:46 -0700 | [diff] [blame] | 1 | //===-- ARM64TargetObjectFile.h - ARM64 Object Info -*- C++ -------------*-===// |
| 2 | // |
| 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_ARM64_TARGETOBJECTFILE_H |
| 11 | #define LLVM_TARGET_ARM64_TARGETOBJECTFILE_H |
| 12 | |
| 13 | #include "llvm/CodeGen/TargetLoweringObjectFileImpl.h" |
| 14 | #include "llvm/Target/TargetLoweringObjectFile.h" |
| 15 | |
| 16 | namespace llvm { |
| 17 | class ARM64TargetMachine; |
| 18 | |
| 19 | /// This implementation is used for AArch64 ELF targets (Linux in particular). |
| 20 | class ARM64_ELFTargetObjectFile : public TargetLoweringObjectFileELF { |
| 21 | void Initialize(MCContext &Ctx, const TargetMachine &TM) override; |
| 22 | }; |
| 23 | |
| 24 | /// ARM64_MachoTargetObjectFile - This TLOF implementation is used for Darwin. |
| 25 | class ARM64_MachoTargetObjectFile : public TargetLoweringObjectFileMachO { |
| 26 | public: |
| 27 | const MCExpr *getTTypeGlobalReference(const GlobalValue *GV, |
| 28 | unsigned Encoding, Mangler &Mang, |
| 29 | const TargetMachine &TM, |
| 30 | MachineModuleInfo *MMI, |
| 31 | MCStreamer &Streamer) const override; |
| 32 | |
| 33 | MCSymbol *getCFIPersonalitySymbol(const GlobalValue *GV, Mangler &Mang, |
| 34 | const TargetMachine &TM, |
| 35 | MachineModuleInfo *MMI) const override; |
| 36 | }; |
| 37 | |
| 38 | } // end namespace llvm |
| 39 | |
| 40 | #endif |