[opaque pointer type] Add textual IR support for explicit type parameter to the call...
[oota-llvm.git] / include / llvm / IR / Instructions.h
index e0a368a8d4d93702c4dad670a01b2130bab06e45..1f2ca301d24c2a71c478caca71346aa0626da7fc 100644 (file)
@@ -1337,6 +1337,10 @@ public:
 
   ~CallInst() override;
 
+  Type *getFunctionType() const {
+    return cast<PointerType>(getCalledValue()->getType())->getElementType();
+  }
+
   // Note that 'musttail' implies 'tail'.
   enum TailCallKind { TCK_None = 0, TCK_Tail = 1, TCK_MustTail = 2 };
   TailCallKind getTailCallKind() const {