mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-19 01:34:32 +00:00
47 lines
1.3 KiB
C
47 lines
1.3 KiB
C
|
//===-- llvm/MC/ELFObjectWriter.h - ELF File Writer ---------*- C++ -*-===//
|
||
|
//
|
||
|
// The LLVM Compiler Infrastructure
|
||
|
//
|
||
|
// This file is distributed under the University of Illinois Open Source
|
||
|
// License. See LICENSE.TXT for details.
|
||
|
//
|
||
|
//===----------------------------------------------------------------------===//
|
||
|
|
||
|
#ifndef LLVM_MC_ELFOBJECTWRITER_H
|
||
|
#define LLVM_MC_ELFOBJECTWRITER_H
|
||
|
|
||
|
#include "llvm/MC/MCObjectWriter.h"
|
||
|
#include "llvm/Support/raw_ostream.h"
|
||
|
#include <cassert>
|
||
|
|
||
|
namespace llvm {
|
||
|
class MCAsmFixup;
|
||
|
class MCAssembler;
|
||
|
class MCFragment;
|
||
|
class MCValue;
|
||
|
class raw_ostream;
|
||
|
|
||
|
class ELFObjectWriter : public MCObjectWriter {
|
||
|
void *Impl;
|
||
|
|
||
|
public:
|
||
|
ELFObjectWriter(raw_ostream &OS, bool Is64Bit, bool IsLittleEndian = true,
|
||
|
bool HasRelocationAddend = true);
|
||
|
|
||
|
virtual ~ELFObjectWriter();
|
||
|
|
||
|
virtual void ExecutePostLayoutBinding(MCAssembler &Asm);
|
||
|
|
||
|
virtual void RecordRelocation(const MCAssembler &Asm,
|
||
|
const MCAsmLayout &Layout,
|
||
|
const MCFragment *Fragment,
|
||
|
const MCFixup &Fixup, MCValue Target,
|
||
|
uint64_t &FixedValue);
|
||
|
|
||
|
virtual void WriteObject(const MCAssembler &Asm, const MCAsmLayout &Layout);
|
||
|
};
|
||
|
|
||
|
} // End llvm namespace
|
||
|
|
||
|
#endif
|