aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2024-06-22 09:41:34 -0700
committerFangrui Song <i@maskray.me>2024-06-22 09:41:34 -0700
commit485d7eaefd93c4f6bc8c51c9a169ffb22ce3a898 (patch)
tree45bfcc8431e2f522ac7d79847ddfcf56e525d32c
parent0fccae9d8e64f3b0f415946000d6ca79ae1255db (diff)
downloadllvm-485d7eaefd93c4f6bc8c51c9a169ffb22ce3a898.zip
llvm-485d7eaefd93c4f6bc8c51c9a169ffb22ce3a898.tar.gz
llvm-485d7eaefd93c4f6bc8c51c9a169ffb22ce3a898.tar.bz2
[MC] Remove remnant code related to pending labels
-rw-r--r--llvm/include/llvm/MC/MCObjectStreamer.h8
-rw-r--r--llvm/lib/MC/MCObjectStreamer.cpp2
-rw-r--r--llvm/lib/MC/MCSection.cpp3
3 files changed, 0 insertions, 13 deletions
diff --git a/llvm/include/llvm/MC/MCObjectStreamer.h b/llvm/include/llvm/MC/MCObjectStreamer.h
index f4406b25..9f6e1aa9 100644
--- a/llvm/include/llvm/MC/MCObjectStreamer.h
+++ b/llvm/include/llvm/MC/MCObjectStreamer.h
@@ -43,8 +43,6 @@ class MCObjectStreamer : public MCStreamer {
std::unique_ptr<MCAssembler> Assembler;
bool EmitEHFrame;
bool EmitDebugFrame;
- SmallVector<MCSymbol *, 2> PendingLabels;
- SmallSetVector<MCSection *, 4> PendingLabelSections;
unsigned CurSubsectionIdx = 0;
struct PendingMCFixup {
const MCSymbol *Sym;
@@ -105,12 +103,6 @@ public:
protected:
bool changeSectionImpl(MCSection *Section, const MCExpr *Subsection);
- /// If any labels have been emitted but not assigned fragments in the current
- /// Section and Subsection, ensure that they get assigned to fragment F.
- /// Optionally, one can provide an offset \p FOffset as a symbol offset within
- /// the fragment.
- void flushPendingLabels(MCFragment *F, uint64_t FOffset = 0) {}
-
public:
void visitUsedSymbol(const MCSymbol &Sym) override;
diff --git a/llvm/lib/MC/MCObjectStreamer.cpp b/llvm/lib/MC/MCObjectStreamer.cpp
index f724973..7550651 100644
--- a/llvm/lib/MC/MCObjectStreamer.cpp
+++ b/llvm/lib/MC/MCObjectStreamer.cpp
@@ -128,8 +128,6 @@ void MCObjectStreamer::reset() {
}
EmitEHFrame = true;
EmitDebugFrame = false;
- PendingLabels.clear();
- PendingLabelSections.clear();
MCStreamer::reset();
}
diff --git a/llvm/lib/MC/MCSection.cpp b/llvm/lib/MC/MCSection.cpp
index 495826e..c209c97 100644
--- a/llvm/lib/MC/MCSection.cpp
+++ b/llvm/lib/MC/MCSection.cpp
@@ -79,9 +79,6 @@ void MCSection::switchSubsection(unsigned Subsection) {
StringRef MCSection::getVirtualSectionKind() const { return "virtual"; }
-void MCSection::addPendingLabel(MCSymbol *label, unsigned Subsection) {
-}
-
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
LLVM_DUMP_METHOD void MCSection::dump() const {
raw_ostream &OS = errs();