mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Add range access to MCAssembler's symbol collection.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206631 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -665,13 +665,9 @@ void WinCOFFObjectWriter::ExecutePostLayoutBinding(MCAssembler &Asm,
|
||||
for (MCAssembler::const_iterator i = Asm.begin(), e = Asm.end(); i != e; i++)
|
||||
DefineSection(*i);
|
||||
|
||||
for (MCAssembler::const_symbol_iterator i = Asm.symbol_begin(),
|
||||
e = Asm.symbol_end();
|
||||
i != e; i++) {
|
||||
if (ExportSymbol(*i, Asm)) {
|
||||
DefineSymbol(*i, Asm, Layout);
|
||||
}
|
||||
}
|
||||
for (MCSymbolData &SD : Asm.symbols())
|
||||
if (ExportSymbol(SD, Asm))
|
||||
DefineSymbol(SD, Asm, Layout);
|
||||
}
|
||||
|
||||
void WinCOFFObjectWriter::RecordRelocation(const MCAssembler &Asm,
|
||||
|
Reference in New Issue
Block a user