Generate objc_read_weak for __weak objc loads.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59553 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/CGObjCRuntime.h b/lib/CodeGen/CGObjCRuntime.h
index 435e148..37544e4 100644
--- a/lib/CodeGen/CGObjCRuntime.h
+++ b/lib/CodeGen/CGObjCRuntime.h
@@ -145,6 +145,8 @@
const ObjCAtThrowStmt &S) = 0;
virtual void EmitSynchronizedStmt(CodeGen::CodeGenFunction &CGF,
const ObjCAtSynchronizedStmt &S) = 0;
+ virtual llvm::Value * EmitObjCWeakCall(CodeGen::CodeGenFunction &CGF,
+ llvm::Value *AddrWeakObj) = 0;
};
/// Creates an instance of an Objective-C runtime class.