projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed accidental use of reserved identifier in r214709.
[oota-llvm.git]
/
include
/
llvm
/
MC
/
MCSymbolizer.h
diff --git
a/include/llvm/MC/MCSymbolizer.h
b/include/llvm/MC/MCSymbolizer.h
index 954e9ce416309a335a5c6909e5349080385f57de..cbbb591f1b80cdb8084a7577043d63ab31602cce 100644
(file)
--- a/
include/llvm/MC/MCSymbolizer.h
+++ b/
include/llvm/MC/MCSymbolizer.h
@@
-19,6
+19,7
@@
#include "llvm/MC/MCRelocationInfo.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/DataTypes.h"
#include "llvm/MC/MCRelocationInfo.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/DataTypes.h"
+#include <cassert>
#include <memory>
namespace llvm {
#include <memory>
namespace llvm {
@@
-46,7
+47,10
@@
protected:
public:
/// \brief Construct an MCSymbolizer, taking ownership of \p RelInfo.
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.
virtual ~MCSymbolizer();
/// \brief Try to add a symbolic operand instead of \p Value to the MCInst.