1//===-- SparcTargetObjectFile.h - Sparc Object Info -------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLVM_LIB_TARGET_SPARC_SPARCTARGETOBJECTFILE_H
10#define LLVM_LIB_TARGET_SPARC_SPARCTARGETOBJECTFILE_H
11
12#include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
13
14namespace llvm {
15
16class MCContext;
17class TargetMachine;
18
19class SparcELFTargetObjectFile : public TargetLoweringObjectFileELF {
20public:
21 SparcELFTargetObjectFile() = default;
22
23 void initialize(MCContext &Ctx, const TargetMachine &TM,
24 const Module &M) override;
25
26 const MCExpr *getTTypeGlobalReference(const GlobalValue *GV,
27 unsigned Encoding,
28 const TargetMachine &TM,
29 MachineModuleInfo *MMI,
30 MCStreamer &Streamer) const override;
31};
32
33} // end namespace llvm
34
35#endif
36