summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGCall.h
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2018-02-06 18:52:44 +0000
committerJohn McCall <rjmccall@apple.com>2018-02-06 18:52:44 +0000
commit9831b843d2044818d7a01a4b0f78c12c1c28192a (patch)
tree361bf6640141ecd2917d2803cf2e727e47b7ae38 /clang/lib/CodeGen/CGCall.h
parent1c570566c39a62fa620085bff03f715c965cfaee (diff)
downloadbcm5719-llvm-9831b843d2044818d7a01a4b0f78c12c1c28192a.tar.gz
bcm5719-llvm-9831b843d2044818d7a01a4b0f78c12c1c28192a.zip
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
Diffstat (limited to 'clang/lib/CodeGen/CGCall.h')
-rw-r--r--clang/lib/CodeGen/CGCall.h4
1 files changed, 4 insertions, 0 deletions
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<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 {
OpenPOWER on IntegriCloud