From 9831b843d2044818d7a01a4b0f78c12c1c28192a Mon Sep 17 00:00:00 2001 From: John McCall Date: Tue, 6 Feb 2018 18:52:44 +0000 Subject: Pass around function pointers as CGCallees, not bare llvm::Value*s. The intention here is to make it easy to write frontend-assisted CFI systems by propagating extra information in the CGCallee. llvm-svn: 324377 --- clang/lib/CodeGen/CGCall.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'clang/lib/CodeGen/CGCall.h') diff --git a/clang/lib/CodeGen/CGCall.h b/clang/lib/CodeGen/CGCall.h index 6b23a81fa97..495baf0f9a2 100644 --- a/clang/lib/CodeGen/CGCall.h +++ b/clang/lib/CodeGen/CGCall.h @@ -206,6 +206,10 @@ public: return cast( getFunctionPointer()->getType()->getPointerElementType()); } + + /// If this is a delayed callee computation of some sort, prepare + /// a concrete callee. + CGCallee prepareConcreteCallee(CodeGenFunction &CGF) const; }; struct CallArg { -- cgit v1.2.3