mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
Spread some const around for non-mutating uses of MCSymbolData.
I discovered this const-hole while attempting to coalesnce the Symbol and SymbolMap data structures. There's some pending issues with that, but I figured this change was easy to flush early. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207124 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -925,7 +925,7 @@ void ELFObjectWriter::RecordRelocation(const MCAssembler &Asm,
|
||||
uint64_t
|
||||
ELFObjectWriter::getSymbolIndexInSymbolTable(const MCAssembler &Asm,
|
||||
const MCSymbol *S) {
|
||||
MCSymbolData &SD = Asm.getSymbolData(*S);
|
||||
const MCSymbolData &SD = Asm.getSymbolData(*S);
|
||||
return SD.getIndex();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user