evil hack to coerce external users (projects)
authorGabor Greif <ggreif@gmail.com>
Thu, 1 Jul 2010 15:16:35 +0000 (15:16 +0000)
committerGabor Greif <ggreif@gmail.com>
Thu, 1 Jul 2010 15:16:35 +0000 (15:16 +0000)
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

include/llvm/Instructions.h

index 814329288d03778c7be2c300d104a276999c79a5..02cc9470253f269274f139b6f9dbd411b8647454 100644 (file)
@@ -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 {