diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/MC/MCExpr.h | 3 | ||||
-rw-r--r-- | include/llvm/MC/MCObjectStreamer.h | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/include/llvm/MC/MCExpr.h b/include/llvm/MC/MCExpr.h index ca5cecbef0..8552d9d6be 100644 --- a/include/llvm/MC/MCExpr.h +++ b/include/llvm/MC/MCExpr.h @@ -21,6 +21,7 @@ class MCAssembler; class MCContext; class MCSection; class MCSectionData; +class MCObjectStreamer; class MCSymbol; class MCValue; class raw_ostream; @@ -524,7 +525,7 @@ public: virtual void PrintImpl(raw_ostream &OS) const = 0; virtual bool EvaluateAsRelocatableImpl(MCValue &Res, const MCAsmLayout *Layout) const = 0; - virtual void AddValueSymbols(MCAssembler *) const = 0; + virtual void visitUsedExpr(MCObjectStreamer& Streamer) const = 0; virtual const MCSection *FindAssociatedSection() const = 0; virtual void fixELFSymbolsInTLSFixups(MCAssembler &) const = 0; diff --git a/include/llvm/MC/MCObjectStreamer.h b/include/llvm/MC/MCObjectStreamer.h index 1bd4cfad14..d4eb398a3d 100644 --- a/include/llvm/MC/MCObjectStreamer.h +++ b/include/llvm/MC/MCObjectStreamer.h @@ -78,9 +78,10 @@ protected: /// fragment is not a data fragment. MCDataFragment *getOrCreateDataFragment() const; - void AddValueSymbols(const MCExpr *Value); - public: + void visitUsedExpr(const MCExpr &Expr); + void visitUsedSymbol(const MCSymbol &Sym); + MCAssembler &getAssembler() { return *Assembler; } /// @name MCStreamer Interface |