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/MCAssembler.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/MCAssembler.cpp')
-rw-r--r-- | llvm/lib/MC/MCAssembler.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/MC/MCAssembler.cpp b/llvm/lib/MC/MCAssembler.cpp index 35fc132..b16df78a 100644 --- a/llvm/lib/MC/MCAssembler.cpp +++ b/llvm/lib/MC/MCAssembler.cpp @@ -603,9 +603,6 @@ uint64_t MCAssembler::getSectionAddressSize(const MCSection &Sec) const { const MCFragment &F = *Sec.curFragList()->Tail; return getFragmentOffset(F) + computeFragmentSize(F); } -uint64_t MCAsmLayout::getSectionAddressSize(const MCSection *Sec) const { - return Assembler.getSectionAddressSize(*Sec); -} uint64_t MCAssembler::getSectionFileSize(const MCSection &Sec) const { // Virtual sections have no file size. @@ -613,9 +610,6 @@ uint64_t MCAssembler::getSectionFileSize(const MCSection &Sec) const { return 0; return getSectionAddressSize(Sec); } -uint64_t MCAsmLayout::getSectionFileSize(const MCSection *Sec) const { - return Assembler.getSectionFileSize(*Sec); -} bool MCAssembler::registerSymbol(const MCSymbol &Symbol) { bool Changed = !Symbol.isRegistered(); |