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 | ce68f6093edddc96a3ba63ceb5963c8981235332 (patch) | |
| tree | 2fde1d72f0bb2d9911e7ac770314130c7054aa70 | |
| parent | 2f3d9e8264281cd0f1b2bce8af04504426c2e647 (diff) | |
| download | bcm5719-llvm-ce68f6093edddc96a3ba63ceb5963c8981235332.tar.gz bcm5719-llvm-ce68f6093edddc96a3ba63ceb5963c8981235332.zip | |
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.
llvm-svn: 107396
| -rw-r--r-- | llvm/include/llvm/Instructions.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/include/llvm/Instructions.h b/llvm/include/llvm/Instructions.h index 814329288d0..02cc9470253 100644 --- a/llvm/include/llvm/Instructions.h +++ b/llvm/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 { |

