diff options
author | John McCall <rjmccall@apple.com> | 2018-02-06 18:52:44 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2018-02-06 18:52:44 +0000 |
commit | 5203555364188d5c92fc0c0bf51a5e37f3719d87 (patch) | |
tree | 131deece0f9525cf7ebbc8b0d78fc0b0fb804d4f /lib/CodeGen/CGCall.h | |
parent | 58f3ace1dc85219736e96f2012bf9e8a052a55cd (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@324377 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGCall.h')
-rw-r--r-- | lib/CodeGen/CGCall.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/CGCall.h b/lib/CodeGen/CGCall.h index 6b23a81fa9..495baf0f9a 100644 --- a/lib/CodeGen/CGCall.h +++ b/lib/CodeGen/CGCall.h @@ -206,6 +206,10 @@ public: return cast<llvm::FunctionType>( getFunctionPointer()->getType()->getPointerElementType()); } + + /// If this is a delayed callee computation of some sort, prepare + /// a concrete callee. + CGCallee prepareConcreteCallee(CodeGenFunction &CGF) const; }; struct CallArg { |