summaryrefslogtreecommitdiff
path: root/include/llvm/IR/Use.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/IR/Use.h')
-rw-r--r--include/llvm/IR/Use.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/include/llvm/IR/Use.h b/include/llvm/IR/Use.h
index a738677f8e5b6..e62eab56b1f19 100644
--- a/include/llvm/IR/Use.h
+++ b/include/llvm/IR/Use.h
@@ -27,9 +27,7 @@
#include "llvm/ADT/PointerIntPair.h"
#include "llvm/Support/CBindingWrapping.h"
-#include "llvm/Support/Compiler.h"
#include <cstddef>
-#include <iterator>
namespace llvm {
@@ -101,14 +99,8 @@ public:
inline void set(Value *Val);
- Value *operator=(Value *RHS) {
- set(RHS);
- return RHS;
- }
- const Use &operator=(const Use &RHS) {
- set(RHS.Val);
- return *this;
- }
+ inline Value *operator=(Value *RHS);
+ inline const Use &operator=(const Use &RHS);
Value *operator->() { return Val; }
const Value *operator->() const { return Val; }