Move MCSymbolizer's constructor into header. It's trivial - there's no need for

it to be out-of-line.

llvm-svn: 204892
This commit is contained in:
Lang Hames 2014-03-27 02:42:52 +00:00
parent 10cec1c28e
commit 6ff3ce2a59
2 changed files with 3 additions and 6 deletions

View File

@ -46,7 +46,9 @@ protected:
public:
/// \brief Construct an MCSymbolizer, taking ownership of \p RelInfo.
MCSymbolizer(MCContext &Ctx, std::unique_ptr<MCRelocationInfo> RelInfo);
MCSymbolizer(MCContext &Ctx, std::unique_ptr<MCRelocationInfo> RelInfo)
: Ctx(Ctx), RelInfo(std::move(RelInfo)) {}
virtual ~MCSymbolizer();
/// \brief Try to add a symbolic operand instead of \p Value to the MCInst.

View File

@ -8,13 +8,8 @@
//===----------------------------------------------------------------------===//
#include "llvm/MC/MCSymbolizer.h"
#include "llvm/MC/MCRelocationInfo.h"
using namespace llvm;
MCSymbolizer::MCSymbolizer(MCContext &Ctx,
std::unique_ptr<MCRelocationInfo> RelInfo)
: Ctx(Ctx), RelInfo(std::move(RelInfo)) {}
MCSymbolizer::~MCSymbolizer() {
}