aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/WasmObjectWriter.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2024-07-01 11:27:32 -0700
committerFangrui Song <i@maskray.me>2024-07-01 11:27:32 -0700
commita40ca78bb926d8c596036fc93b1c6ca7731c795b (patch)
tree2f74f5317cbefb8b990b364cc451a59a6ed647fc /llvm/lib/MC/WasmObjectWriter.cpp
parent71ff749d6b9aee70c6d26d9781b9f70bf6a8c445 (diff)
downloadllvm-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.cpp2
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);