diff options
author | Fangrui Song <i@maskray.me> | 2024-07-01 11:27:32 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2024-07-01 11:27:32 -0700 |
commit | a40ca78bb926d8c596036fc93b1c6ca7731c795b (patch) | |
tree | 2f74f5317cbefb8b990b364cc451a59a6ed647fc /llvm/lib/MC/WasmObjectWriter.cpp | |
parent | 71ff749d6b9aee70c6d26d9781b9f70bf6a8c445 (diff) | |
download | llvm-a40ca78bb926d8c596036fc93b1c6ca7731c795b.zip llvm-a40ca78bb926d8c596036fc93b1c6ca7731c795b.tar.gz llvm-a40ca78bb926d8c596036fc93b1c6ca7731c795b.tar.bz2 |
[MC] Remove MCAsmLayout::{getSectionFileSize,getSectionAddressSize}
Diffstat (limited to 'llvm/lib/MC/WasmObjectWriter.cpp')
-rw-r--r-- | llvm/lib/MC/WasmObjectWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/WasmObjectWriter.cpp b/llvm/lib/MC/WasmObjectWriter.cpp index c123d80..63bce85 100644 --- a/llvm/lib/MC/WasmObjectWriter.cpp +++ b/llvm/lib/MC/WasmObjectWriter.cpp @@ -1062,7 +1062,7 @@ uint32_t WasmObjectWriter::writeCodeSection(const MCAssembler &Asm, for (const WasmFunction &Func : Functions) { auto *FuncSection = static_cast<MCSectionWasm *>(Func.Section); - int64_t Size = Layout.getSectionAddressSize(FuncSection); + int64_t Size = Asm.getSectionAddressSize(*FuncSection); encodeULEB128(Size, W->OS); FuncSection->setSectionOffset(W->OS.tell() - Section.ContentsOffset); Asm.writeSectionData(W->OS, FuncSection); |