[llvm-commits] [llvm] r107396 - /llvm/trunk/include/llvm/Instructions.h
Gabor Greif
ggreif at gmail.com
Thu Jul 1 08:16:35 PDT 2010
Author: ggreif
Date: Thu Jul 1 10:16:35 2010
New Revision: 107396
URL: http://llvm.org/viewvc/llvm-project?rev=107396&view=rev
Log:
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.
Modified:
llvm/trunk/include/llvm/Instructions.h
Modified: llvm/trunk/include/llvm/Instructions.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Instructions.h?rev=107396&r1=107395&r2=107396&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Instructions.h (original)
+++ llvm/trunk/include/llvm/Instructions.h Thu Jul 1 10:16:35 2010
@@ -948,6 +948,13 @@
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 {
More information about the llvm-commits
mailing list