aboutsummaryrefslogtreecommitdiff
path: root/llvm
diff options
context:
space:
mode:
Diffstat (limited to 'llvm')
-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();