mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-21 19:32:16 +00:00
Run clang-format on these header files. Part of a WIP.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190250 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0917ca56dc
commit
baaefaf828
@ -32,6 +32,7 @@ class raw_ostream;
|
|||||||
class MCAsmBackend {
|
class MCAsmBackend {
|
||||||
MCAsmBackend(const MCAsmBackend &) LLVM_DELETED_FUNCTION;
|
MCAsmBackend(const MCAsmBackend &) LLVM_DELETED_FUNCTION;
|
||||||
void operator=(const MCAsmBackend &) LLVM_DELETED_FUNCTION;
|
void operator=(const MCAsmBackend &) LLVM_DELETED_FUNCTION;
|
||||||
|
|
||||||
protected: // Can only create subclasses.
|
protected: // Can only create subclasses.
|
||||||
MCAsmBackend();
|
MCAsmBackend();
|
||||||
|
|
||||||
@ -71,9 +72,7 @@ public:
|
|||||||
|
|
||||||
/// hasDataInCodeSupport - Check whether this target implements data-in-code
|
/// hasDataInCodeSupport - Check whether this target implements data-in-code
|
||||||
/// markers. If not, data region directives will be ignored.
|
/// markers. If not, data region directives will be ignored.
|
||||||
bool hasDataInCodeSupport() const {
|
bool hasDataInCodeSupport() const { return HasDataInCodeSupport; }
|
||||||
return HasDataInCodeSupport;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// doesSectionRequireSymbols - Check whether the given section requires that
|
/// doesSectionRequireSymbols - Check whether the given section requires that
|
||||||
/// all symbols (even temporaries) have symbol table entries.
|
/// all symbols (even temporaries) have symbol table entries.
|
||||||
@ -128,8 +127,7 @@ public:
|
|||||||
|
|
||||||
/// fixupNeedsRelaxation - Target specific predicate for whether a given
|
/// fixupNeedsRelaxation - Target specific predicate for whether a given
|
||||||
/// fixup requires the associated instruction to be relaxed.
|
/// fixup requires the associated instruction to be relaxed.
|
||||||
virtual bool fixupNeedsRelaxation(const MCFixup &Fixup,
|
virtual bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value,
|
||||||
uint64_t Value,
|
|
||||||
const MCRelaxableFragment *DF,
|
const MCRelaxableFragment *DF,
|
||||||
const MCAsmLayout &Layout) const = 0;
|
const MCAsmLayout &Layout) const = 0;
|
||||||
|
|
||||||
|
@ -106,7 +106,9 @@ namespace llvm {
|
|||||||
virtual void EmitCFIEndProcImpl(MCDwarfFrameInfo &CurFrame);
|
virtual void EmitCFIEndProcImpl(MCDwarfFrameInfo &CurFrame);
|
||||||
void EmitFrames(bool usingCFI);
|
void EmitFrames(bool usingCFI);
|
||||||
|
|
||||||
MCWin64EHUnwindInfo *getCurrentW64UnwindInfo(){return CurrentW64UnwindInfo;}
|
MCWin64EHUnwindInfo *getCurrentW64UnwindInfo() {
|
||||||
|
return CurrentW64UnwindInfo;
|
||||||
|
}
|
||||||
void EmitW64Tables();
|
void EmitW64Tables();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -120,21 +122,13 @@ namespace llvm {
|
|||||||
|
|
||||||
MCContext &getContext() const { return Context; }
|
MCContext &getContext() const { return Context; }
|
||||||
|
|
||||||
unsigned getNumFrameInfos() {
|
unsigned getNumFrameInfos() { return FrameInfos.size(); }
|
||||||
return FrameInfos.size();
|
|
||||||
}
|
|
||||||
|
|
||||||
const MCDwarfFrameInfo &getFrameInfo(unsigned i) {
|
const MCDwarfFrameInfo &getFrameInfo(unsigned i) { return FrameInfos[i]; }
|
||||||
return FrameInfos[i];
|
|
||||||
}
|
|
||||||
|
|
||||||
ArrayRef<MCDwarfFrameInfo> getFrameInfos() {
|
ArrayRef<MCDwarfFrameInfo> getFrameInfos() const { return FrameInfos; }
|
||||||
return FrameInfos;
|
|
||||||
}
|
|
||||||
|
|
||||||
unsigned getNumW64UnwindInfos() {
|
unsigned getNumW64UnwindInfos() { return W64UnwindInfos.size(); }
|
||||||
return W64UnwindInfos.size();
|
|
||||||
}
|
|
||||||
|
|
||||||
MCWin64EHUnwindInfo &getW64UnwindInfo(unsigned i) {
|
MCWin64EHUnwindInfo &getW64UnwindInfo(unsigned i) {
|
||||||
return *W64UnwindInfos[i];
|
return *W64UnwindInfos[i];
|
||||||
@ -198,8 +192,8 @@ namespace llvm {
|
|||||||
/// pushSection - Save the current and previous section on the
|
/// pushSection - Save the current and previous section on the
|
||||||
/// section stack.
|
/// section stack.
|
||||||
void PushSection() {
|
void PushSection() {
|
||||||
SectionStack.push_back(std::make_pair(getCurrentSection(),
|
SectionStack.push_back(
|
||||||
getPreviousSection()));
|
std::make_pair(getCurrentSection(), getPreviousSection()));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// popSection - Restore the current and previous section from
|
/// popSection - Restore the current and previous section from
|
||||||
@ -280,8 +274,7 @@ namespace llvm {
|
|||||||
|
|
||||||
virtual void EmitDebugLabel(MCSymbol *Symbol);
|
virtual void EmitDebugLabel(MCSymbol *Symbol);
|
||||||
|
|
||||||
virtual void EmitEHSymAttributes(const MCSymbol *Symbol,
|
virtual void EmitEHSymAttributes(const MCSymbol *Symbol, MCSymbol *EHSymbol);
|
||||||
MCSymbol *EHSymbol);
|
|
||||||
|
|
||||||
/// EmitAssemblerFlag - Note in the output the specified @p Flag.
|
/// EmitAssemblerFlag - Note in the output the specified @p Flag.
|
||||||
virtual void EmitAssemblerFlag(MCAssemblerFlag Flag) = 0;
|
virtual void EmitAssemblerFlag(MCAssemblerFlag Flag) = 0;
|
||||||
@ -533,8 +526,7 @@ namespace llvm {
|
|||||||
// '.loc fileno lineno ...' assembler directive.
|
// '.loc fileno lineno ...' assembler directive.
|
||||||
virtual void EmitDwarfLocDirective(unsigned FileNo, unsigned Line,
|
virtual void EmitDwarfLocDirective(unsigned FileNo, unsigned Line,
|
||||||
unsigned Column, unsigned Flags,
|
unsigned Column, unsigned Flags,
|
||||||
unsigned Isa,
|
unsigned Isa, unsigned Discriminator,
|
||||||
unsigned Discriminator,
|
|
||||||
StringRef FileName);
|
StringRef FileName);
|
||||||
|
|
||||||
virtual void EmitDwarfAdvanceLineAddr(int64_t LineDelta,
|
virtual void EmitDwarfAdvanceLineAddr(int64_t LineDelta,
|
||||||
@ -543,8 +535,7 @@ namespace llvm {
|
|||||||
unsigned PointerSize) = 0;
|
unsigned PointerSize) = 0;
|
||||||
|
|
||||||
virtual void EmitDwarfAdvanceFrameAddr(const MCSymbol *LastLabel,
|
virtual void EmitDwarfAdvanceFrameAddr(const MCSymbol *LastLabel,
|
||||||
const MCSymbol *Label) {
|
const MCSymbol *Label) {}
|
||||||
}
|
|
||||||
|
|
||||||
void EmitDwarfSetLineAddr(int64_t LineDelta, const MCSymbol *Label,
|
void EmitDwarfSetLineAddr(int64_t LineDelta, const MCSymbol *Label,
|
||||||
int PointerSize);
|
int PointerSize);
|
||||||
@ -655,13 +646,10 @@ namespace llvm {
|
|||||||
/// \param ShowInst - Whether to show the MCInst representation inline with
|
/// \param ShowInst - Whether to show the MCInst representation inline with
|
||||||
/// the assembly.
|
/// the assembly.
|
||||||
MCStreamer *createAsmStreamer(MCContext &Ctx, formatted_raw_ostream &OS,
|
MCStreamer *createAsmStreamer(MCContext &Ctx, formatted_raw_ostream &OS,
|
||||||
bool isVerboseAsm,
|
bool isVerboseAsm, bool useLoc, bool useCFI,
|
||||||
bool useLoc,
|
|
||||||
bool useCFI,
|
|
||||||
bool useDwarfDirectory,
|
bool useDwarfDirectory,
|
||||||
MCInstPrinter *InstPrint = 0,
|
MCInstPrinter *InstPrint = 0,
|
||||||
MCCodeEmitter *CE = 0,
|
MCCodeEmitter *CE = 0, MCAsmBackend *TAB = 0,
|
||||||
MCAsmBackend *TAB = 0,
|
|
||||||
bool ShowInst = false);
|
bool ShowInst = false);
|
||||||
|
|
||||||
/// createMachOStreamer - Create a machine code streamer which will generate
|
/// createMachOStreamer - Create a machine code streamer which will generate
|
||||||
@ -676,16 +664,15 @@ namespace llvm {
|
|||||||
/// generate Microsoft COFF format object files.
|
/// generate Microsoft COFF format object files.
|
||||||
///
|
///
|
||||||
/// Takes ownership of \p TAB and \p CE.
|
/// Takes ownership of \p TAB and \p CE.
|
||||||
MCStreamer *createWinCOFFStreamer(MCContext &Ctx,
|
MCStreamer *createWinCOFFStreamer(MCContext &Ctx, MCAsmBackend &TAB,
|
||||||
MCAsmBackend &TAB,
|
|
||||||
MCCodeEmitter &CE, raw_ostream &OS,
|
MCCodeEmitter &CE, raw_ostream &OS,
|
||||||
bool RelaxAll = false);
|
bool RelaxAll = false);
|
||||||
|
|
||||||
/// createELFStreamer - Create a machine code streamer which will generate
|
/// createELFStreamer - Create a machine code streamer which will generate
|
||||||
/// ELF format object files.
|
/// ELF format object files.
|
||||||
MCStreamer *createELFStreamer(MCContext &Ctx, MCAsmBackend &TAB,
|
MCStreamer *createELFStreamer(MCContext &Ctx, MCAsmBackend &TAB,
|
||||||
raw_ostream &OS, MCCodeEmitter *CE,
|
raw_ostream &OS, MCCodeEmitter *CE, bool RelaxAll,
|
||||||
bool RelaxAll, bool NoExecStack);
|
bool NoExecStack);
|
||||||
|
|
||||||
/// createPureStreamer - Create a machine code streamer which will generate
|
/// createPureStreamer - Create a machine code streamer which will generate
|
||||||
/// "pure" MC object files, for use with MC-JIT and testing tools.
|
/// "pure" MC object files, for use with MC-JIT and testing tools.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user