xref: /freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/SparcTargetObjectFile.h (revision 81ad626541db97eb356e2c1d4a20eb2a26a766ab)
10b57cec5SDimitry Andric //===-- SparcTargetObjectFile.h - Sparc Object Info -------------*- C++ -*-===//
20b57cec5SDimitry Andric //
30b57cec5SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
40b57cec5SDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
50b57cec5SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
60b57cec5SDimitry Andric //
70b57cec5SDimitry Andric //===----------------------------------------------------------------------===//
80b57cec5SDimitry Andric 
90b57cec5SDimitry Andric #ifndef LLVM_LIB_TARGET_SPARC_SPARCTARGETOBJECTFILE_H
100b57cec5SDimitry Andric #define LLVM_LIB_TARGET_SPARC_SPARCTARGETOBJECTFILE_H
110b57cec5SDimitry Andric 
120b57cec5SDimitry Andric #include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
130b57cec5SDimitry Andric 
140b57cec5SDimitry Andric namespace llvm {
150b57cec5SDimitry Andric 
160b57cec5SDimitry Andric class MCContext;
170b57cec5SDimitry Andric class TargetMachine;
180b57cec5SDimitry Andric 
190b57cec5SDimitry Andric class SparcELFTargetObjectFile : public TargetLoweringObjectFileELF {
200b57cec5SDimitry Andric public:
21*81ad6265SDimitry Andric   SparcELFTargetObjectFile() = default;
220b57cec5SDimitry Andric 
230b57cec5SDimitry Andric   void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
240b57cec5SDimitry Andric 
250b57cec5SDimitry Andric   const MCExpr *getTTypeGlobalReference(const GlobalValue *GV,
260b57cec5SDimitry Andric                                         unsigned Encoding,
270b57cec5SDimitry Andric                                         const TargetMachine &TM,
280b57cec5SDimitry Andric                                         MachineModuleInfo *MMI,
290b57cec5SDimitry Andric                                         MCStreamer &Streamer) const override;
300b57cec5SDimitry Andric };
310b57cec5SDimitry Andric 
320b57cec5SDimitry Andric } // end namespace llvm
330b57cec5SDimitry Andric 
340b57cec5SDimitry Andric #endif
35