2014-01-29 12:51:35 +08:00
|
|
|
//===-- SparcTargetObjectFile.h - Sparc Object Info -------------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2014-08-14 00:26:38 +08:00
|
|
|
#ifndef LLVM_LIB_TARGET_SPARC_SPARCTARGETOBJECTFILE_H
|
|
|
|
#define LLVM_LIB_TARGET_SPARC_SPARCTARGETOBJECTFILE_H
|
2014-01-29 12:51:35 +08:00
|
|
|
|
|
|
|
#include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
|
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
|
|
|
class MCContext;
|
|
|
|
class TargetMachine;
|
|
|
|
|
|
|
|
class SparcELFTargetObjectFile : public TargetLoweringObjectFileELF {
|
|
|
|
public:
|
|
|
|
SparcELFTargetObjectFile() :
|
|
|
|
TargetLoweringObjectFileELF()
|
|
|
|
{}
|
|
|
|
|
2017-06-22 04:36:32 +08:00
|
|
|
void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
|
|
|
|
|
2016-09-16 15:33:15 +08:00
|
|
|
const MCExpr *getTTypeGlobalReference(const GlobalValue *GV,
|
|
|
|
unsigned Encoding,
|
|
|
|
const TargetMachine &TM,
|
|
|
|
MachineModuleInfo *MMI,
|
|
|
|
MCStreamer &Streamer) const override;
|
2014-01-29 12:51:35 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
} // end namespace llvm
|
|
|
|
|
|
|
|
#endif
|