summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.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/CodeGenModule.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/CodeGenModule.h')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h
index 465d0b4bb5e..8faebe1ea7e 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/lib/CodeGen/CodeGenModule.h
@@ -546,6 +546,10 @@ public:
return *ObjCData;
}
+ // Version checking function, used to implement ObjC's @available:
+ // i32 @__isOSVersionAtLeast(i32, i32, i32)
+ llvm::Constant *IsOSVersionAtLeastFn = nullptr;
+
InstrProfStats &getPGOStats() { return PGOStats; }
llvm::IndexedInstrProfReader *getPGOReader() const { return PGOReader.get(); }
OpenPOWER on IntegriCloud