diff options
author | Gabor Greif <ggreif@gmail.com> | 2010-07-04 08:59:25 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2010-07-04 08:59:25 +0000 |
commit | 69439cb919e5f182009c445154cf28b6866e7ecb (patch) | |
tree | 71656e1c81228bb6d92a8cb67aa0f04d2fc1c287 /include/llvm/Instructions.h | |
parent | d9cb7ca388c400e3c7a509c00d4cf63031de0dde (diff) | |
download | llvm-69439cb919e5f182009c445154cf28b6866e7ecb.tar.gz llvm-69439cb919e5f182009c445154cf28b6866e7ecb.tar.bz2 llvm-69439cb919e5f182009c445154cf28b6866e7ecb.tar.xz |
back out r107580, I have seen what I wanted
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107582 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Instructions.h')
-rw-r--r-- | include/llvm/Instructions.h | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h index 883a1d739b..21cc2eac4e 100644 --- a/include/llvm/Instructions.h +++ b/include/llvm/Instructions.h @@ -940,24 +940,8 @@ public: unsigned(isTC)); } - /// @deprecated these "define hacks" will go away soon - /// @brief coerce out-of-tree code to abandon the low-level interfaces - /// @detail see below comments and update your code to high-level interfaces - /// in LLVM v2.8-only code - /// - getOperand(N+1) ---> getArgOperand(N) - /// - setOperand(N+1, V) ---> setArgOperand(N, V) - /// - getNumOperands() ---> getNumArgOperands()+1 // note the "+1"! - /// - /// in backward compatible code please consult llvm/Support/CallSite.h, - /// you should create a callsite using the CallInst pointer and call its methods - /// -# define public private -# define protected private /// Provide fast operand accessors DECLARE_TRANSPARENT_OPERAND_ACCESSORS(Value); -# undef public -# undef protected -public: enum { ArgOffset = 1 }; ///< temporary, do not use for new code! unsigned getNumArgOperands() const { return getNumOperands() - 1; } @@ -967,7 +951,7 @@ public: /// Provide compile-time errors for accessing operand 0 /// @deprecated these will go away soon /// @detail see below comments and update your code to high-level interfaces - /// - getOperand(0) ---> getCalledValue(), or possibly getCalledFunction() + /// - getOperand(0) ---> getCalledValue() /// - setOperand(0, V) ---> setCalledFunction(V) /// private: @@ -1123,10 +1107,6 @@ CallInst::CallInst(Value *Func, InputIterator ArgBegin, InputIterator ArgEnd, typename std::iterator_traits<InputIterator>::iterator_category()); } - -// Note: if you get compile errors about private methods then -// please update your code to use the high-level operand -// interfaces. See line 943 above. DEFINE_TRANSPARENT_OPERAND_ACCESSORS(CallInst, Value) //===----------------------------------------------------------------------===// |