mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 02:33:33 +00:00
dba14301f0
setting of ELF header e_flags. Contributer: Jack Carter git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173884 91177308-0d34-0410-b5e6-96231b3b80d8
38 lines
1.2 KiB
C++
38 lines
1.2 KiB
C++
//=== MipsELFStreamer.h - MipsELFStreamer ------------------------------===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENCE.TXT for details.
|
|
//
|
|
//===-------------------------------------------------------------------===//
|
|
#ifndef MIPSELFSTREAMER_H_
|
|
#define MIPSELFSTREAMER_H_
|
|
|
|
#include "llvm/MC/MCELFStreamer.h"
|
|
|
|
namespace llvm {
|
|
class MipsSubtarget;
|
|
|
|
class MipsELFStreamer : public MCELFStreamer {
|
|
private:
|
|
unsigned EFlags;
|
|
public:
|
|
MipsELFStreamer(MCContext &Context, MCAsmBackend &TAB,
|
|
raw_ostream &OS, MCCodeEmitter *Emitter,
|
|
bool RelaxAll, bool NoExecStack)
|
|
: MCELFStreamer(Context, TAB, OS, Emitter), EFlags(0) {
|
|
}
|
|
|
|
~MipsELFStreamer() {}
|
|
void emitELFHeaderFlagsCG(const MipsSubtarget &Subtarget);
|
|
// void emitELFHeaderFlagCG(unsigned Val);
|
|
};
|
|
|
|
MCELFStreamer* createMipsELFStreamer(MCContext &Context, MCAsmBackend &TAB,
|
|
raw_ostream &OS, MCCodeEmitter *Emitter,
|
|
bool RelaxAll, bool NoExecStack);
|
|
}
|
|
|
|
#endif /* MIPSELFSTREAMER_H_ */
|