aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2024-06-22 23:23:47 -0700
committerFangrui Song <i@maskray.me>2024-06-22 23:23:47 -0700
commite7622ab4721141d9e6af6041fa7f9bbc1029e9aa (patch)
tree69e1116304f813ac7830a3ec22d424202f6c66b0 /llvm/lib/MC
parent6ec1ddfd72656cbf8e4185239175e52d50e0f4a3 (diff)
downloadllvm-e7622ab4721141d9e6af6041fa7f9bbc1029e9aa.zip
llvm-e7622ab4721141d9e6af6041fa7f9bbc1029e9aa.tar.gz
llvm-e7622ab4721141d9e6af6041fa7f9bbc1029e9aa.tar.bz2
[MC] Remove unused MCObjectStreamer::CurSubsectionIdx. NFC
Diffstat (limited to 'llvm/lib/MC')
-rw-r--r--llvm/lib/MC/MCObjectStreamer.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCObjectStreamer.cpp b/llvm/lib/MC/MCObjectStreamer.cpp
index 25c5768..5dc73c5 100644
--- a/llvm/lib/MC/MCObjectStreamer.cpp
+++ b/llvm/lib/MC/MCObjectStreamer.cpp
@@ -295,8 +295,7 @@ bool MCObjectStreamer::changeSectionImpl(MCSection *Section,
getContext().clearDwarfLocSeen();
bool Created = getAssembler().registerSection(*Section);
- CurSubsectionIdx = Subsection;
- Section->switchSubsection(CurSubsectionIdx);
+ Section->switchSubsection(Subsection);
return Created;
}