1 //===-- SparcTargetObjectFile.h - Sparc 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_LIB_TARGET_SPARC_SPARCTARGETOBJECTFILE_H
11 #define LLVM_LIB_TARGET_SPARC_SPARCTARGETOBJECTFILE_H
12 
13 #include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
14 
15 namespace llvm {
16 
17 class MCContext;
18 class TargetMachine;
19 
20 class SparcELFTargetObjectFile : public TargetLoweringObjectFileELF {
21 public:
SparcELFTargetObjectFile()22   SparcELFTargetObjectFile() :
23     TargetLoweringObjectFileELF()
24   {}
25 
26   void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
27 
28   const MCExpr *getTTypeGlobalReference(const GlobalValue *GV,
29                                         unsigned Encoding,
30                                         const TargetMachine &TM,
31                                         MachineModuleInfo *MMI,
32                                         MCStreamer &Streamer) const override;
33 };
34 
35 } // end namespace llvm
36 
37 #endif
38