mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-24 20:25:32 -04:00
MC: De-duplicate the object streamer implementations of EmitFileDirective into MCObjectStreamer. NFCI.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296912 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -902,6 +902,8 @@ void ELFObjectWriter::computeSymbolTable(
|
||||
|
||||
StrTabBuilder.finalize();
|
||||
|
||||
// File symbols are emitted first and handled separately from normal symbols,
|
||||
// i.e. a non-STT_FILE symbol with the same name may appear.
|
||||
for (const std::string &Name : FileNames)
|
||||
Writer.writeSymbol(StrTabBuilder.getOffset(Name),
|
||||
ELF::STT_FILE | ELF::STB_LOCAL, 0, 0, ELF::STV_DEFAULT,
|
||||
|
||||
Reference in New Issue
Block a user