summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorErik Pilkington <erik.pilkington@gmail.com>2017-02-23 21:08:08 +0000
committerErik Pilkington <erik.pilkington@gmail.com>2017-02-23 21:08:08 +0000
commit9c42a8d43e04084b4613c83469d6cdb70d789322 (patch)
tree2aea639e341cf69c90411e7913c6512b3ca72b01 /clang/lib/CodeGen/CodeGenFunction.h
parentee2d77f6d693b88a335f34d559d7f82fb6998859 (diff)
downloadbcm5719-llvm-9c42a8d43e04084b4613c83469d6cdb70d789322.tar.gz
bcm5719-llvm-9c42a8d43e04084b4613c83469d6cdb70d789322.zip
[ObjC][CodeGen] CodeGen support for @available.
CodeGens uses of @available into calls to the compiler-rt function __isOSVersionAtLeast. This commit is part of a feature that I proposed here: http://lists.llvm.org/pipermail/cfe-dev/2016-July/049851.html Differential revision: https://reviews.llvm.org/D27827 llvm-svn: 296015
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index 252561f4887..3bb80887a4d 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/lib/CodeGen/CodeGenFunction.h
@@ -3169,6 +3169,8 @@ private:
public:
llvm::Value *EmitMSVCBuiltinExpr(MSVCIntrin BuiltinID, const CallExpr *E);
+ llvm::Value *EmitBuiltinAvailable(ArrayRef<llvm::Value *> Args);
+
llvm::Value *EmitObjCProtocolExpr(const ObjCProtocolExpr *E);
llvm::Value *EmitObjCStringLiteral(const ObjCStringLiteral *E);
llvm::Value *EmitObjCBoxedExpr(const ObjCBoxedExpr *E);
OpenPOWER on IntegriCloud