mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-21 18:29:46 +00:00
Reformatting. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153928 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cbece8c2a6
commit
90e7d4f6f0
@ -491,7 +491,7 @@ void LTOModule::addPotentialUndefinedSymbol(GlobalValue *decl, bool isFunc) {
|
||||
namespace {
|
||||
class RecordStreamer : public MCStreamer {
|
||||
public:
|
||||
enum State { NeverSeen, Global, Defined, DefinedGlobal, Used};
|
||||
enum State { NeverSeen, Global, Defined, DefinedGlobal, Used };
|
||||
|
||||
private:
|
||||
StringMap<State> Symbols;
|
||||
@ -580,14 +580,16 @@ namespace {
|
||||
|
||||
RecordStreamer(MCContext &Context) : MCStreamer(Context) {}
|
||||
|
||||
virtual void ChangeSection(const MCSection *Section) {}
|
||||
virtual void InitSections() {}
|
||||
virtual void EmitInstruction(const MCInst &Inst) {
|
||||
// Scan for values.
|
||||
for (unsigned i = Inst.getNumOperands(); i--; )
|
||||
if (Inst.getOperand(i).isExpr())
|
||||
AddValueSymbols(Inst.getOperand(i).getExpr());
|
||||
}
|
||||
virtual void EmitLabel(MCSymbol *Symbol) {
|
||||
Symbol->setSection(*getCurrentSection());
|
||||
markDefined(*Symbol);
|
||||
}
|
||||
virtual void EmitAssemblerFlag(MCAssemblerFlag Flag) {}
|
||||
virtual void EmitThumbFunc(MCSymbol *Func) {}
|
||||
virtual void EmitAssignment(MCSymbol *Symbol, const MCExpr *Value) {
|
||||
// FIXME: should we handle aliases?
|
||||
markDefined(*Symbol);
|
||||
@ -596,20 +598,26 @@ namespace {
|
||||
if (Attribute == MCSA_Global)
|
||||
markGlobal(*Symbol);
|
||||
}
|
||||
virtual void EmitSymbolDesc(MCSymbol *Symbol, unsigned DescValue) {}
|
||||
virtual void EmitWeakReference(MCSymbol *Alias, const MCSymbol *Symbol) {}
|
||||
virtual void BeginCOFFSymbolDef(const MCSymbol *Symbol) {}
|
||||
virtual void EmitCOFFSymbolStorageClass(int StorageClass) {}
|
||||
virtual void EmitZerofill(const MCSection *Section, MCSymbol *Symbol,
|
||||
unsigned Size , unsigned ByteAlignment) {
|
||||
markDefined(*Symbol);
|
||||
}
|
||||
virtual void EmitCOFFSymbolType(int Type) {}
|
||||
virtual void EndCOFFSymbolDef() {}
|
||||
virtual void EmitCommonSymbol(MCSymbol *Symbol, uint64_t Size,
|
||||
unsigned ByteAlignment) {
|
||||
markDefined(*Symbol);
|
||||
}
|
||||
|
||||
// Noop calls.
|
||||
virtual void ChangeSection(const MCSection *Section) {}
|
||||
virtual void InitSections() {}
|
||||
virtual void EmitAssemblerFlag(MCAssemblerFlag Flag) {}
|
||||
virtual void EmitThumbFunc(MCSymbol *Func) {}
|
||||
virtual void EmitSymbolDesc(MCSymbol *Symbol, unsigned DescValue) {}
|
||||
virtual void EmitWeakReference(MCSymbol *Alias, const MCSymbol *Symbol) {}
|
||||
virtual void BeginCOFFSymbolDef(const MCSymbol *Symbol) {}
|
||||
virtual void EmitCOFFSymbolStorageClass(int StorageClass) {}
|
||||
virtual void EmitCOFFSymbolType(int Type) {}
|
||||
virtual void EndCOFFSymbolDef() {}
|
||||
virtual void EmitELFSize(MCSymbol *Symbol, const MCExpr *Value) {}
|
||||
virtual void EmitLocalCommonSymbol(MCSymbol *Symbol, uint64_t Size,
|
||||
unsigned ByteAlignment) {}
|
||||
@ -632,13 +640,6 @@ namespace {
|
||||
const MCSymbol *LastLabel,
|
||||
const MCSymbol *Label,
|
||||
unsigned PointerSize) {}
|
||||
|
||||
virtual void EmitInstruction(const MCInst &Inst) {
|
||||
// Scan for values.
|
||||
for (unsigned i = Inst.getNumOperands(); i--; )
|
||||
if (Inst.getOperand(i).isExpr())
|
||||
AddValueSymbols(Inst.getOperand(i).getExpr());
|
||||
}
|
||||
virtual void FinishImpl() {}
|
||||
};
|
||||
} // end anonymous namespace
|
||||
|
Loading…
Reference in New Issue
Block a user