diff options
author | Gabor Greif <ggreif@gmail.com> | 2010-07-01 15:16:35 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2010-07-01 15:16:35 +0000 |
commit | 0ca182b823b738cd5c8df3744fb245e11786ba63 (patch) | |
tree | aa5538b13f300c0dfa3abc67bd087e1b708306ac /include/llvm/Instructions.h | |
parent | 63b95a6f820d768797b28bbfd5c12fabf74b7f1d (diff) | |
download | llvm-0ca182b823b738cd5c8df3744fb245e11786ba63.tar.gz llvm-0ca182b823b738cd5c8df3744fb245e11786ba63.tar.bz2 llvm-0ca182b823b738cd5c8df3744fb245e11786ba63.tar.xz |
evil hack to coerce external users (projects)
to update their code to high-level interfaces
If you get compile errors in your project
please update your code according to the
comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107396 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Instructions.h')
-rw-r--r-- | include/llvm/Instructions.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h index 814329288d..02cc947025 100644 --- a/include/llvm/Instructions.h +++ b/include/llvm/Instructions.h @@ -948,6 +948,13 @@ public: Value *getArgOperand(unsigned i) const { return getOperand(i + ArgOffset); } void setArgOperand(unsigned i, Value *v) { setOperand(i + ArgOffset, v); } + /// 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 + /// + void getOperand(void*); // NO IMPL ---> use getCalledValue (or possibly getCalledFunction) instead + void setOperand(void*, Value*); // NO IMPL ---> use setCalledFunction instead + /// getCallingConv/setCallingConv - Get or set the calling convention of this /// function call. CallingConv::ID getCallingConv() const { |