diff --git a/include/llvm/MC/MCSymbolizer.h b/include/llvm/MC/MCSymbolizer.h index 4f4ab79d462..95d29ec673a 100644 --- a/include/llvm/MC/MCSymbolizer.h +++ b/include/llvm/MC/MCSymbolizer.h @@ -46,7 +46,9 @@ protected: public: /// \brief Construct an MCSymbolizer, taking ownership of \p RelInfo. - MCSymbolizer(MCContext &Ctx, std::unique_ptr RelInfo); + MCSymbolizer(MCContext &Ctx, std::unique_ptr RelInfo) + : Ctx(Ctx), RelInfo(std::move(RelInfo)) {} + virtual ~MCSymbolizer(); /// \brief Try to add a symbolic operand instead of \p Value to the MCInst. diff --git a/lib/MC/MCSymbolizer.cpp b/lib/MC/MCSymbolizer.cpp index bb1a1c7c513..4080e40b3f1 100644 --- a/lib/MC/MCSymbolizer.cpp +++ b/lib/MC/MCSymbolizer.cpp @@ -8,13 +8,8 @@ //===----------------------------------------------------------------------===// #include "llvm/MC/MCSymbolizer.h" -#include "llvm/MC/MCRelocationInfo.h" using namespace llvm; -MCSymbolizer::MCSymbolizer(MCContext &Ctx, - std::unique_ptr RelInfo) - : Ctx(Ctx), RelInfo(std::move(RelInfo)) {} - MCSymbolizer::~MCSymbolizer() { }