[www-releases] r225843 - Add documentation for 3.5.1

Tom Stellard thomas.stellard at amd.com
Tue Jan 13 14:55:45 PST 2015


Added: www-releases/trunk/3.5.1/tools/clang/docs/doxygen/html/CGObjCMac_8cpp_source.html
URL: http://llvm.org/viewvc/llvm-project/www-releases/trunk/3.5.1/tools/clang/docs/doxygen/html/CGObjCMac_8cpp_source.html?rev=225843&view=auto
==============================================================================
--- www-releases/trunk/3.5.1/tools/clang/docs/doxygen/html/CGObjCMac_8cpp_source.html (added)
+++ www-releases/trunk/3.5.1/tools/clang/docs/doxygen/html/CGObjCMac_8cpp_source.html Tue Jan 13 16:55:20 2015
@@ -0,0 +1,7179 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html><head>
+<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
+<meta name="keywords" content="clang,LLVM,Low Level Virtual Machine,C,C++,doxygen,API,frontend,documentation"/>
+<meta name="description" content="C++ source code API documentation for clang."/>
+<title>clang: CGObjCMac.cpp Source File</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css"/>
+</head><body>
+<p class="title">clang API Documentation</p>
+<!-- Generated by Doxygen 1.8.3.1 -->
+<script type="text/javascript">
+var searchBox = new SearchBox("searchBox", "search",false,'Search');
+</script>
+  <div id="navrow1" class="tabs">
+    <ul class="tablist">
+      <li><a href="index.html"><span>Main Page</span></a></li>
+      <li><a href="pages.html"><span>Related Pages</span></a></li>
+      <li><a href="modules.html"><span>Modules</span></a></li>
+      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
+      <li><a href="annotated.html"><span>Classes</span></a></li>
+      <li class="current"><a href="files.html"><span>Files</span></a></li>
+      <li>
+        <div id="MSearchBox" class="MSearchBoxInactive">
+        <span class="left">
+          <img id="MSearchSelect" src="search/mag_sel.png"
+               onmouseover="return searchBox.OnSearchSelectShow()"
+               onmouseout="return searchBox.OnSearchSelectHide()"
+               alt=""/>
+          <input type="text" id="MSearchField" value="Search" accesskey="S"
+               onfocus="searchBox.OnSearchFieldFocus(true)" 
+               onblur="searchBox.OnSearchFieldFocus(false)" 
+               onkeyup="searchBox.OnSearchFieldChange(event)"/>
+          </span><span class="right">
+            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
+          </span>
+        </div>
+      </li>
+    </ul>
+  </div>
+  <div id="navrow2" class="tabs2">
+    <ul class="tablist">
+      <li><a href="files.html"><span>File List</span></a></li>
+      <li><a href="globals.html"><span>File Members</span></a></li>
+    </ul>
+  </div>
+<!-- window showing the filter options -->
+<div id="MSearchSelectWindow"
+     onmouseover="return searchBox.OnSearchSelectShow()"
+     onmouseout="return searchBox.OnSearchSelectHide()"
+     onkeydown="return searchBox.OnSearchSelectKey(event)">
+<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void
 (0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark"> </span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(11)"><span class="SelectionMark"> </span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(12)"><span class="SelectionMark"> </span>Pages</a></div>
+
+<!-- iframe showing the search results (closed by default) -->
+<div id="MSearchResultsWindow">
+<iframe src="javascript:void(0)" frameborder="0" 
+        name="MSearchResults" id="MSearchResults">
+</iframe>
+</div>
+
+<div id="nav-path" class="navpath">
+  <ul>
+<li class="navelem"><a class="el" href="dir_f65986501076cc710d4b9355ae3fe06d.html">clang</a></li><li class="navelem"><a class="el" href="dir_87e2a7550f83bd8cbfc92736891468fc.html">lib</a></li><li class="navelem"><a class="el" href="dir_373837989a1dc63be881832a195d38c3.html">CodeGen</a></li>  </ul>
+</div>
+</div><!-- top -->
+<div class="header">
+  <div class="headertitle">
+<div class="title">CGObjCMac.cpp</div>  </div>
+</div><!--header-->
+<div class="contents">
+<a href="CGObjCMac_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">//===------- CGObjCMac.cpp - Interface to Apple Objective-C Runtime -------===//</span></div>
+<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment">//</span></div>
+<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment">//                     The LLVM Compiler Infrastructure</span></div>
+<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment">//</span></div>
+<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment">// This file is distributed under the University of Illinois Open Source</span></div>
+<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment">// License. See LICENSE.TXT for details.</span></div>
+<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment">//</span></div>
+<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment">//===----------------------------------------------------------------------===//</span></div>
+<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment">//</span></div>
+<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment">// This provides Objective-C code generation targeting the Apple runtime.</span></div>
+<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment">//</span></div>
+<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment">//===----------------------------------------------------------------------===//</span></div>
+<div class="line"><a name="l00013"></a><span class="lineno">   13</span> </div>
+<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="preprocessor">#include "<a class="code" href="CGObjCRuntime_8h.html">CGObjCRuntime.h</a>"</span></div>
+<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="preprocessor">#include "<a class="code" href="CGBlocks_8h.html">CGBlocks.h</a>"</span></div>
+<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="preprocessor">#include "<a class="code" href="CGCleanup_8h.html">CGCleanup.h</a>"</span></div>
+<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="preprocessor">#include "<a class="code" href="CGRecordLayout_8h.html">CGRecordLayout.h</a>"</span></div>
+<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="preprocessor">#include "<a class="code" href="CodeGenFunction_8h.html">CodeGenFunction.h</a>"</span></div>
+<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="preprocessor">#include "<a class="code" href="CodeGenModule_8h.html">CodeGenModule.h</a>"</span></div>
+<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="preprocessor">#include "<a class="code" href="ASTContext_8h.html" title="Defines the clang::ASTContext interface.">clang/AST/ASTContext.h</a>"</span></div>
+<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="preprocessor">#include "<a class="code" href="Decl_8h.html">clang/AST/Decl.h</a>"</span></div>
+<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="preprocessor">#include "<a class="code" href="DeclObjC_8h.html">clang/AST/DeclObjC.h</a>"</span></div>
+<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="preprocessor">#include "<a class="code" href="RecordLayout_8h.html">clang/AST/RecordLayout.h</a>"</span></div>
+<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="preprocessor">#include "<a class="code" href="StmtObjC_8h.html" title="Defines the Objective-C statement AST node classes.">clang/AST/StmtObjC.h</a>"</span></div>
+<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="preprocessor">#include "<a class="code" href="LangOptions_8h.html" title="Defines the clang::LangOptions interface.">clang/Basic/LangOptions.h</a>"</span></div>
+<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="preprocessor">#include "<a class="code" href="CGFunctionInfo_8h.html">clang/CodeGen/CGFunctionInfo.h</a>"</span></div>
+<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="preprocessor">#include "<a class="code" href="CodeGenOptions_8h.html">clang/Frontend/CodeGenOptions.h</a>"</span></div>
+<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#include "llvm/ADT/DenseSet.h"</span></div>
+<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor">#include "llvm/ADT/SetVector.h"</span></div>
+<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor">#include "llvm/ADT/SmallPtrSet.h"</span></div>
+<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="preprocessor">#include "llvm/ADT/SmallString.h"</span></div>
+<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="preprocessor">#include "llvm/IR/DataLayout.h"</span></div>
+<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="preprocessor">#include "llvm/IR/InlineAsm.h"</span></div>
+<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="preprocessor">#include "llvm/IR/IntrinsicInst.h"</span></div>
+<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include "llvm/IR/LLVMContext.h"</span></div>
+<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="preprocessor">#include "llvm/IR/Module.h"</span></div>
+<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor">#include "llvm/Support/CallSite.h"</span></div>
+<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="preprocessor">#include "llvm/Support/raw_ostream.h"</span></div>
+<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="preprocessor">#include <cstdio></span></div>
+<div class="line"><a name="l00040"></a><span class="lineno">   40</span> </div>
+<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="keyword">using namespace </span>clang;</div>
+<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="keyword">using namespace </span>CodeGen;</div>
+<div class="line"><a name="l00043"></a><span class="lineno">   43</span> </div>
+<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="keyword">namespace </span>{</div>
+<div class="line"><a name="l00045"></a><span class="lineno">   45</span> </div>
+<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="comment">// FIXME: We should find a nicer way to make the labels for metadata, string</span></div>
+<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="comment">// concatenation is lame.</span></div>
+<div class="line"><a name="l00048"></a><span class="lineno">   48</span> </div>
+<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="keyword">class </span>ObjCCommonTypesHelper {</div>
+<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="keyword">protected</span>:</div>
+<div class="line"><a name="l00051"></a><span class="lineno">   51</span>   llvm::LLVMContext &VMContext;</div>
+<div class="line"><a name="l00052"></a><span class="lineno">   52</span> </div>
+<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="keyword">private</span>:</div>
+<div class="line"><a name="l00054"></a><span class="lineno">   54</span>   <span class="comment">// The types of these functions don't really matter because we</span></div>
+<div class="line"><a name="l00055"></a><span class="lineno">   55</span>   <span class="comment">// should always bitcast before calling them.</span></div>
+<div class="line"><a name="l00056"></a><span class="lineno">   56</span> <span class="comment"></span></div>
+<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="comment">  /// id objc_msgSend (id, SEL, ...)</span></div>
+<div class="line"><a name="l00058"></a><span class="lineno">   58</span> <span class="comment">  /// </span></div>
+<div class="line"><a name="l00059"></a><span class="lineno">   59</span> <span class="comment">  /// The default messenger, used for sends whose ABI is unchanged from</span></div>
+<div class="line"><a name="l00060"></a><span class="lineno">   60</span> <span class="comment">  /// the all-integer/pointer case.</span></div>
+<div class="line"><a name="l00061"></a><span class="lineno">   61</span> <span class="comment"></span>  llvm::Constant *getMessageSendFn()<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l00062"></a><span class="lineno">   62</span>     <span class="comment">// Add the non-lazy-bind attribute, since objc_msgSend is likely to</span></div>
+<div class="line"><a name="l00063"></a><span class="lineno">   63</span>     <span class="comment">// be called a lot.</span></div>
+<div class="line"><a name="l00064"></a><span class="lineno">   64</span>     llvm::Type *params[] = { ObjectPtrTy, SelectorPtrTy };</div>
+<div class="line"><a name="l00065"></a><span class="lineno">   65</span>     <span class="keywordflow">return</span></div>
+<div class="line"><a name="l00066"></a><span class="lineno">   66</span>       CGM.CreateRuntimeFunction(llvm::FunctionType::get(ObjectPtrTy,</div>
+<div class="line"><a name="l00067"></a><span class="lineno">   67</span>                                                         params, <span class="keyword">true</span>),</div>
+<div class="line"><a name="l00068"></a><span class="lineno">   68</span>                                 <span class="stringliteral">"objc_msgSend"</span>,</div>
+<div class="line"><a name="l00069"></a><span class="lineno">   69</span>                                 llvm::AttributeSet::get(CGM.getLLVMContext(),</div>
+<div class="line"><a name="l00070"></a><span class="lineno">   70</span>                                               llvm::AttributeSet::FunctionIndex,</div>
+<div class="line"><a name="l00071"></a><span class="lineno">   71</span>                                                  llvm::Attribute::NonLazyBind));</div>
+<div class="line"><a name="l00072"></a><span class="lineno">   72</span>   }</div>
+<div class="line"><a name="l00073"></a><span class="lineno">   73</span> <span class="comment"></span></div>
+<div class="line"><a name="l00074"></a><span class="lineno">   74</span> <span class="comment">  /// void objc_msgSend_stret (id, SEL, ...)</span></div>
+<div class="line"><a name="l00075"></a><span class="lineno">   75</span> <span class="comment">  ///</span></div>
+<div class="line"><a name="l00076"></a><span class="lineno">   76</span> <span class="comment">  /// The messenger used when the return value is an aggregate returned</span></div>
+<div class="line"><a name="l00077"></a><span class="lineno">   77</span> <span class="comment">  /// by indirect reference in the first argument, and therefore the</span></div>
+<div class="line"><a name="l00078"></a><span class="lineno">   78</span> <span class="comment">  /// self and selector parameters are shifted over by one.</span></div>
+<div class="line"><a name="l00079"></a><span class="lineno">   79</span> <span class="comment"></span>  llvm::Constant *getMessageSendStretFn()<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l00080"></a><span class="lineno">   80</span>     llvm::Type *params[] = { ObjectPtrTy, SelectorPtrTy };</div>
+<div class="line"><a name="l00081"></a><span class="lineno">   81</span>     <span class="keywordflow">return</span> CGM.CreateRuntimeFunction(llvm::FunctionType::get(CGM.VoidTy,</div>
+<div class="line"><a name="l00082"></a><span class="lineno">   82</span>                                                              params, <span class="keyword">true</span>),</div>
+<div class="line"><a name="l00083"></a><span class="lineno">   83</span>                                      <span class="stringliteral">"objc_msgSend_stret"</span>);</div>
+<div class="line"><a name="l00084"></a><span class="lineno">   84</span> </div>
+<div class="line"><a name="l00085"></a><span class="lineno">   85</span>   }</div>
+<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment"></span></div>
+<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment">  /// [double | long double] objc_msgSend_fpret(id self, SEL op, ...)</span></div>
+<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="comment">  ///</span></div>
+<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment">  /// The messenger used when the return value is returned on the x87</span></div>
+<div class="line"><a name="l00090"></a><span class="lineno">   90</span> <span class="comment">  /// floating-point stack; without a special entrypoint, the nil case</span></div>
+<div class="line"><a name="l00091"></a><span class="lineno">   91</span> <span class="comment">  /// would be unbalanced.</span></div>
+<div class="line"><a name="l00092"></a><span class="lineno">   92</span> <span class="comment"></span>  llvm::Constant *getMessageSendFpretFn()<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l00093"></a><span class="lineno">   93</span>     llvm::Type *params[] = { ObjectPtrTy, SelectorPtrTy };</div>
+<div class="line"><a name="l00094"></a><span class="lineno">   94</span>     <span class="keywordflow">return</span> CGM.CreateRuntimeFunction(llvm::FunctionType::get(CGM.DoubleTy,</div>
+<div class="line"><a name="l00095"></a><span class="lineno">   95</span>                                                              params, <span class="keyword">true</span>),</div>
+<div class="line"><a name="l00096"></a><span class="lineno">   96</span>                                      <span class="stringliteral">"objc_msgSend_fpret"</span>);</div>
+<div class="line"><a name="l00097"></a><span class="lineno">   97</span> </div>
+<div class="line"><a name="l00098"></a><span class="lineno">   98</span>   }</div>
+<div class="line"><a name="l00099"></a><span class="lineno">   99</span> <span class="comment"></span></div>
+<div class="line"><a name="l00100"></a><span class="lineno">  100</span> <span class="comment">  /// _Complex long double objc_msgSend_fp2ret(id self, SEL op, ...)</span></div>
+<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="comment">  ///</span></div>
+<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="comment">  /// The messenger used when the return value is returned in two values on the</span></div>
+<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="comment">  /// x87 floating point stack; without a special entrypoint, the nil case</span></div>
+<div class="line"><a name="l00104"></a><span class="lineno">  104</span> <span class="comment">  /// would be unbalanced. Only used on 64-bit X86.</span></div>
+<div class="line"><a name="l00105"></a><span class="lineno">  105</span> <span class="comment"></span>  llvm::Constant *getMessageSendFp2retFn()<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l00106"></a><span class="lineno">  106</span>     llvm::Type *params[] = { ObjectPtrTy, SelectorPtrTy };</div>
+<div class="line"><a name="l00107"></a><span class="lineno">  107</span>     llvm::Type *longDoubleType = llvm::Type::getX86_FP80Ty(VMContext);</div>
+<div class="line"><a name="l00108"></a><span class="lineno">  108</span>     llvm::Type *resultType = </div>
+<div class="line"><a name="l00109"></a><span class="lineno">  109</span>       llvm::StructType::get(longDoubleType, longDoubleType, <a class="code" href="stddef_8h.html#a070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>);</div>
+<div class="line"><a name="l00110"></a><span class="lineno">  110</span> </div>
+<div class="line"><a name="l00111"></a><span class="lineno">  111</span>     <span class="keywordflow">return</span> CGM.CreateRuntimeFunction(llvm::FunctionType::get(resultType,</div>
+<div class="line"><a name="l00112"></a><span class="lineno">  112</span>                                                              params, <span class="keyword">true</span>),</div>
+<div class="line"><a name="l00113"></a><span class="lineno">  113</span>                                      <span class="stringliteral">"objc_msgSend_fp2ret"</span>);</div>
+<div class="line"><a name="l00114"></a><span class="lineno">  114</span>   }</div>
+<div class="line"><a name="l00115"></a><span class="lineno">  115</span> <span class="comment"></span></div>
+<div class="line"><a name="l00116"></a><span class="lineno">  116</span> <span class="comment">  /// id objc_msgSendSuper(struct objc_super *super, SEL op, ...)</span></div>
+<div class="line"><a name="l00117"></a><span class="lineno">  117</span> <span class="comment">  ///</span></div>
+<div class="line"><a name="l00118"></a><span class="lineno">  118</span> <span class="comment">  /// The messenger used for super calls, which have different dispatch</span></div>
+<div class="line"><a name="l00119"></a><span class="lineno">  119</span> <span class="comment">  /// semantics.  The class passed is the superclass of the current</span></div>
+<div class="line"><a name="l00120"></a><span class="lineno">  120</span> <span class="comment">  /// class.</span></div>
+<div class="line"><a name="l00121"></a><span class="lineno">  121</span> <span class="comment"></span>  llvm::Constant *getMessageSendSuperFn()<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l00122"></a><span class="lineno">  122</span>     llvm::Type *params[] = { SuperPtrTy, SelectorPtrTy };</div>
+<div class="line"><a name="l00123"></a><span class="lineno">  123</span>     <span class="keywordflow">return</span> CGM.CreateRuntimeFunction(llvm::FunctionType::get(ObjectPtrTy,</div>
+<div class="line"><a name="l00124"></a><span class="lineno">  124</span>                                                              params, <span class="keyword">true</span>),</div>
+<div class="line"><a name="l00125"></a><span class="lineno">  125</span>                                      <span class="stringliteral">"objc_msgSendSuper"</span>);</div>
+<div class="line"><a name="l00126"></a><span class="lineno">  126</span>   }</div>
+<div class="line"><a name="l00127"></a><span class="lineno">  127</span> <span class="comment"></span></div>
+<div class="line"><a name="l00128"></a><span class="lineno">  128</span> <span class="comment">  /// id objc_msgSendSuper2(struct objc_super *super, SEL op, ...)</span></div>
+<div class="line"><a name="l00129"></a><span class="lineno">  129</span> <span class="comment">  ///</span></div>
+<div class="line"><a name="l00130"></a><span class="lineno">  130</span> <span class="comment">  /// A slightly different messenger used for super calls.  The class</span></div>
+<div class="line"><a name="l00131"></a><span class="lineno">  131</span> <span class="comment">  /// passed is the current class.</span></div>
+<div class="line"><a name="l00132"></a><span class="lineno">  132</span> <span class="comment"></span>  llvm::Constant *getMessageSendSuperFn2()<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l00133"></a><span class="lineno">  133</span>     llvm::Type *params[] = { SuperPtrTy, SelectorPtrTy };</div>
+<div class="line"><a name="l00134"></a><span class="lineno">  134</span>     <span class="keywordflow">return</span> CGM.CreateRuntimeFunction(llvm::FunctionType::get(ObjectPtrTy,</div>
+<div class="line"><a name="l00135"></a><span class="lineno">  135</span>                                                              params, <span class="keyword">true</span>),</div>
+<div class="line"><a name="l00136"></a><span class="lineno">  136</span>                                      <span class="stringliteral">"objc_msgSendSuper2"</span>);</div>
+<div class="line"><a name="l00137"></a><span class="lineno">  137</span>   }</div>
+<div class="line"><a name="l00138"></a><span class="lineno">  138</span> <span class="comment"></span></div>
+<div class="line"><a name="l00139"></a><span class="lineno">  139</span> <span class="comment">  /// void objc_msgSendSuper_stret(void *stretAddr, struct objc_super *super,</span></div>
+<div class="line"><a name="l00140"></a><span class="lineno">  140</span> <span class="comment">  ///                              SEL op, ...)</span></div>
+<div class="line"><a name="l00141"></a><span class="lineno">  141</span> <span class="comment">  ///</span></div>
+<div class="line"><a name="l00142"></a><span class="lineno">  142</span> <span class="comment">  /// The messenger used for super calls which return an aggregate indirectly.</span></div>
+<div class="line"><a name="l00143"></a><span class="lineno">  143</span> <span class="comment"></span>  llvm::Constant *getMessageSendSuperStretFn()<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l00144"></a><span class="lineno">  144</span>     llvm::Type *params[] = { Int8PtrTy, SuperPtrTy, SelectorPtrTy };</div>
+<div class="line"><a name="l00145"></a><span class="lineno">  145</span>     <span class="keywordflow">return</span> CGM.CreateRuntimeFunction(</div>
+<div class="line"><a name="l00146"></a><span class="lineno">  146</span>       llvm::FunctionType::get(CGM.VoidTy, params, <span class="keyword">true</span>),</div>
+<div class="line"><a name="l00147"></a><span class="lineno">  147</span>       <span class="stringliteral">"objc_msgSendSuper_stret"</span>);</div>
+<div class="line"><a name="l00148"></a><span class="lineno">  148</span>   }</div>
+<div class="line"><a name="l00149"></a><span class="lineno">  149</span> <span class="comment"></span></div>
+<div class="line"><a name="l00150"></a><span class="lineno">  150</span> <span class="comment">  /// void objc_msgSendSuper2_stret(void * stretAddr, struct objc_super *super,</span></div>
+<div class="line"><a name="l00151"></a><span class="lineno">  151</span> <span class="comment">  ///                               SEL op, ...)</span></div>
+<div class="line"><a name="l00152"></a><span class="lineno">  152</span> <span class="comment">  ///</span></div>
+<div class="line"><a name="l00153"></a><span class="lineno">  153</span> <span class="comment">  /// objc_msgSendSuper_stret with the super2 semantics.</span></div>
+<div class="line"><a name="l00154"></a><span class="lineno">  154</span> <span class="comment"></span>  llvm::Constant *getMessageSendSuperStretFn2()<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l00155"></a><span class="lineno">  155</span>     llvm::Type *params[] = { Int8PtrTy, SuperPtrTy, SelectorPtrTy };</div>
+<div class="line"><a name="l00156"></a><span class="lineno">  156</span>     <span class="keywordflow">return</span> CGM.CreateRuntimeFunction(</div>
+<div class="line"><a name="l00157"></a><span class="lineno">  157</span>       llvm::FunctionType::get(CGM.VoidTy, params, <span class="keyword">true</span>),</div>
+<div class="line"><a name="l00158"></a><span class="lineno">  158</span>       <span class="stringliteral">"objc_msgSendSuper2_stret"</span>);</div>
+<div class="line"><a name="l00159"></a><span class="lineno">  159</span>   }</div>
+<div class="line"><a name="l00160"></a><span class="lineno">  160</span> </div>
+<div class="line"><a name="l00161"></a><span class="lineno">  161</span>   llvm::Constant *getMessageSendSuperFpretFn()<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l00162"></a><span class="lineno">  162</span>     <span class="comment">// There is no objc_msgSendSuper_fpret? How can that work?</span></div>
+<div class="line"><a name="l00163"></a><span class="lineno">  163</span>     <span class="keywordflow">return</span> getMessageSendSuperFn();</div>
+<div class="line"><a name="l00164"></a><span class="lineno">  164</span>   }</div>
+<div class="line"><a name="l00165"></a><span class="lineno">  165</span> </div>
+<div class="line"><a name="l00166"></a><span class="lineno">  166</span>   llvm::Constant *getMessageSendSuperFpretFn2()<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l00167"></a><span class="lineno">  167</span>     <span class="comment">// There is no objc_msgSendSuper_fpret? How can that work?</span></div>
+<div class="line"><a name="l00168"></a><span class="lineno">  168</span>     <span class="keywordflow">return</span> getMessageSendSuperFn2();</div>
+<div class="line"><a name="l00169"></a><span class="lineno">  169</span>   }</div>
+<div class="line"><a name="l00170"></a><span class="lineno">  170</span> </div>
+<div class="line"><a name="l00171"></a><span class="lineno">  171</span> <span class="keyword">protected</span>:</div>
+<div class="line"><a name="l00172"></a><span class="lineno">  172</span>   <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html">CodeGen::CodeGenModule</a> &CGM;</div>
+<div class="line"><a name="l00173"></a><span class="lineno">  173</span> </div>
+<div class="line"><a name="l00174"></a><span class="lineno">  174</span> <span class="keyword">public</span>:</div>
+<div class="line"><a name="l00175"></a><span class="lineno">  175</span>   llvm::Type *ShortTy, *IntTy, *LongTy, *LongLongTy;</div>
+<div class="line"><a name="l00176"></a><span class="lineno">  176</span>   llvm::Type *Int8PtrTy, *Int8PtrPtrTy;</div>
+<div class="line"><a name="l00177"></a><span class="lineno">  177</span> <span class="comment"></span></div>
+<div class="line"><a name="l00178"></a><span class="lineno">  178</span> <span class="comment">  /// ObjectPtrTy - LLVM type for object handles (typeof(id))</span></div>
+<div class="line"><a name="l00179"></a><span class="lineno">  179</span> <span class="comment"></span>  llvm::Type *ObjectPtrTy;</div>
+<div class="line"><a name="l00180"></a><span class="lineno">  180</span> <span class="comment"></span></div>
+<div class="line"><a name="l00181"></a><span class="lineno">  181</span> <span class="comment">  /// PtrObjectPtrTy - LLVM type for id *</span></div>
+<div class="line"><a name="l00182"></a><span class="lineno">  182</span> <span class="comment"></span>  llvm::Type *PtrObjectPtrTy;</div>
+<div class="line"><a name="l00183"></a><span class="lineno">  183</span> <span class="comment"></span></div>
+<div class="line"><a name="l00184"></a><span class="lineno">  184</span> <span class="comment">  /// SelectorPtrTy - LLVM type for selector handles (typeof(SEL))</span></div>
+<div class="line"><a name="l00185"></a><span class="lineno">  185</span> <span class="comment"></span>  llvm::Type *SelectorPtrTy;</div>
+<div class="line"><a name="l00186"></a><span class="lineno">  186</span>   </div>
+<div class="line"><a name="l00187"></a><span class="lineno">  187</span> <span class="keyword">private</span>:<span class="comment"></span></div>
+<div class="line"><a name="l00188"></a><span class="lineno">  188</span> <span class="comment">  /// ProtocolPtrTy - LLVM type for external protocol handles</span></div>
+<div class="line"><a name="l00189"></a><span class="lineno">  189</span> <span class="comment">  /// (typeof(Protocol))</span></div>
+<div class="line"><a name="l00190"></a><span class="lineno">  190</span> <span class="comment"></span>  llvm::Type *ExternalProtocolPtrTy;</div>
+<div class="line"><a name="l00191"></a><span class="lineno">  191</span>   </div>
+<div class="line"><a name="l00192"></a><span class="lineno">  192</span> <span class="keyword">public</span>:</div>
+<div class="line"><a name="l00193"></a><span class="lineno">  193</span>   llvm::Type *getExternalProtocolPtrTy() {</div>
+<div class="line"><a name="l00194"></a><span class="lineno">  194</span>     <span class="keywordflow">if</span> (!ExternalProtocolPtrTy) {</div>
+<div class="line"><a name="l00195"></a><span class="lineno">  195</span>       <span class="comment">// FIXME: It would be nice to unify this with the opaque type, so that the</span></div>
+<div class="line"><a name="l00196"></a><span class="lineno">  196</span>       <span class="comment">// IR comes out a bit cleaner.</span></div>
+<div class="line"><a name="l00197"></a><span class="lineno">  197</span>       <a class="code" href="classclang_1_1CodeGen_1_1CodeGenTypes.html">CodeGen::CodeGenTypes</a> &Types = CGM.getTypes();</div>
+<div class="line"><a name="l00198"></a><span class="lineno">  198</span>       <a class="code" href="classclang_1_1ASTContext.html" title="Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...">ASTContext</a> &Ctx = CGM.getContext();</div>
+<div class="line"><a name="l00199"></a><span class="lineno">  199</span>       llvm::Type *T = Types.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenTypes.html#a1bd0fa41a59020e22706ac3f36f7c31f" title="ConvertType - Convert type T into a llvm::Type.">ConvertType</a>(Ctx.<a class="code" href="classclang_1_1ASTContext.html#ac4989acf84de3ec1803ff41c60b160f0" title="Retrieve the type of the Objective-C Protocol class.">getObjCProtoType</a>());</div>
+<div class="line"><a name="l00200"></a><span class="lineno">  200</span>       ExternalProtocolPtrTy = llvm::PointerType::getUnqual(T);</div>
+<div class="line"><a name="l00201"></a><span class="lineno">  201</span>     }</div>
+<div class="line"><a name="l00202"></a><span class="lineno">  202</span>     </div>
+<div class="line"><a name="l00203"></a><span class="lineno">  203</span>     <span class="keywordflow">return</span> ExternalProtocolPtrTy;</div>
+<div class="line"><a name="l00204"></a><span class="lineno">  204</span>   }</div>
+<div class="line"><a name="l00205"></a><span class="lineno">  205</span>   </div>
+<div class="line"><a name="l00206"></a><span class="lineno">  206</span>   <span class="comment">// SuperCTy - clang type for struct objc_super.</span></div>
+<div class="line"><a name="l00207"></a><span class="lineno">  207</span>   <a class="code" href="classclang_1_1QualType.html">QualType</a> SuperCTy;</div>
+<div class="line"><a name="l00208"></a><span class="lineno">  208</span>   <span class="comment">// SuperPtrCTy - clang type for struct objc_super *.</span></div>
+<div class="line"><a name="l00209"></a><span class="lineno">  209</span>   <a class="code" href="classclang_1_1QualType.html">QualType</a> SuperPtrCTy;</div>
+<div class="line"><a name="l00210"></a><span class="lineno">  210</span> <span class="comment"></span></div>
+<div class="line"><a name="l00211"></a><span class="lineno">  211</span> <span class="comment">  /// SuperTy - LLVM type for struct objc_super.</span></div>
+<div class="line"><a name="l00212"></a><span class="lineno">  212</span> <span class="comment"></span>  llvm::StructType *SuperTy;<span class="comment"></span></div>
+<div class="line"><a name="l00213"></a><span class="lineno">  213</span> <span class="comment">  /// SuperPtrTy - LLVM type for struct objc_super *.</span></div>
+<div class="line"><a name="l00214"></a><span class="lineno">  214</span> <span class="comment"></span>  llvm::Type *SuperPtrTy;</div>
+<div class="line"><a name="l00215"></a><span class="lineno">  215</span> <span class="comment"></span></div>
+<div class="line"><a name="l00216"></a><span class="lineno">  216</span> <span class="comment">  /// PropertyTy - LLVM type for struct objc_property (struct _prop_t</span></div>
+<div class="line"><a name="l00217"></a><span class="lineno">  217</span> <span class="comment">  /// in GCC parlance).</span></div>
+<div class="line"><a name="l00218"></a><span class="lineno">  218</span> <span class="comment"></span>  llvm::StructType *PropertyTy;</div>
+<div class="line"><a name="l00219"></a><span class="lineno">  219</span> <span class="comment"></span></div>
+<div class="line"><a name="l00220"></a><span class="lineno">  220</span> <span class="comment">  /// PropertyListTy - LLVM type for struct objc_property_list</span></div>
+<div class="line"><a name="l00221"></a><span class="lineno">  221</span> <span class="comment">  /// (_prop_list_t in GCC parlance).</span></div>
+<div class="line"><a name="l00222"></a><span class="lineno">  222</span> <span class="comment"></span>  llvm::StructType *PropertyListTy;<span class="comment"></span></div>
+<div class="line"><a name="l00223"></a><span class="lineno">  223</span> <span class="comment">  /// PropertyListPtrTy - LLVM type for struct objc_property_list*.</span></div>
+<div class="line"><a name="l00224"></a><span class="lineno">  224</span> <span class="comment"></span>  llvm::Type *PropertyListPtrTy;</div>
+<div class="line"><a name="l00225"></a><span class="lineno">  225</span> </div>
+<div class="line"><a name="l00226"></a><span class="lineno">  226</span>   <span class="comment">// MethodTy - LLVM type for struct objc_method.</span></div>
+<div class="line"><a name="l00227"></a><span class="lineno">  227</span>   llvm::StructType *MethodTy;</div>
+<div class="line"><a name="l00228"></a><span class="lineno">  228</span> <span class="comment"></span></div>
+<div class="line"><a name="l00229"></a><span class="lineno">  229</span> <span class="comment">  /// CacheTy - LLVM type for struct objc_cache.</span></div>
+<div class="line"><a name="l00230"></a><span class="lineno">  230</span> <span class="comment"></span>  llvm::Type *CacheTy;<span class="comment"></span></div>
+<div class="line"><a name="l00231"></a><span class="lineno">  231</span> <span class="comment">  /// CachePtrTy - LLVM type for struct objc_cache *.</span></div>
+<div class="line"><a name="l00232"></a><span class="lineno">  232</span> <span class="comment"></span>  llvm::Type *CachePtrTy;</div>
+<div class="line"><a name="l00233"></a><span class="lineno">  233</span>   </div>
+<div class="line"><a name="l00234"></a><span class="lineno">  234</span>   llvm::Constant *getGetPropertyFn() {</div>
+<div class="line"><a name="l00235"></a><span class="lineno">  235</span>     <a class="code" href="classclang_1_1CodeGen_1_1CodeGenTypes.html">CodeGen::CodeGenTypes</a> &Types = CGM.getTypes();</div>
+<div class="line"><a name="l00236"></a><span class="lineno">  236</span>     <a class="code" href="classclang_1_1ASTContext.html" title="Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...">ASTContext</a> &Ctx = CGM.getContext();</div>
+<div class="line"><a name="l00237"></a><span class="lineno">  237</span>     <span class="comment">// id objc_getProperty (id, SEL, ptrdiff_t, bool)</span></div>
+<div class="line"><a name="l00238"></a><span class="lineno">  238</span>     <a class="code" href="classllvm_1_1SmallVector.html">SmallVector<CanQualType,4></a> Params;</div>
+<div class="line"><a name="l00239"></a><span class="lineno">  239</span>     <a class="code" href="classclang_1_1CanQual.html">CanQualType</a> IdType = Ctx.<a class="code" href="classclang_1_1ASTContext.html#aebe1c0862e34693bddd4683b51558e35" title="Return the canonical parameter type corresponding to the specific potentially non-canonical one...">getCanonicalParamType</a>(Ctx.<a class="code" href="classclang_1_1ASTContext.html#a46cf0bb1b4e31396963afe4f98956273" title="Represents the Objective-CC id type.">getObjCIdType</a>());</div>
+<div class="line"><a name="l00240"></a><span class="lineno">  240</span>     <a class="code" href="classclang_1_1CanQual.html">CanQualType</a> SelType = Ctx.<a class="code" href="classclang_1_1ASTContext.html#aebe1c0862e34693bddd4683b51558e35" title="Return the canonical parameter type corresponding to the specific potentially non-canonical one...">getCanonicalParamType</a>(Ctx.<a class="code" href="classclang_1_1ASTContext.html#ab98cf62cc837911c586ce978e32d3b2f" title="Retrieve the type that corresponds to the predefined Objective-C 'SEL' type.">getObjCSelType</a>());</div>
+<div class="line"><a name="l00241"></a><span class="lineno">  241</span>     Params.push_back(IdType);</div>
+<div class="line"><a name="l00242"></a><span class="lineno">  242</span>     Params.push_back(SelType);</div>
+<div class="line"><a name="l00243"></a><span class="lineno">  243</span>     Params.push_back(Ctx.<a class="code" href="classclang_1_1ASTContext.html#abdf7588b14d9fa2a1ee40900a0253885" title="Return the unique type for "ptrdiff_t" (C99 7.17) defined in <stddef.h>. Pointer - pointer requires t...">getPointerDiffType</a>()-><a class="code" href="classclang_1_1Type.html#a860cd5d3ea88f4ce5a1acbbc42a38719">getCanonicalTypeUnqualified</a>());</div>
+<div class="line"><a name="l00244"></a><span class="lineno">  244</span>     Params.push_back(Ctx.<a class="code" href="classclang_1_1ASTContext.html#a699510ff594ec09506e02c3ec68e4ff5">BoolTy</a>);</div>
+<div class="line"><a name="l00245"></a><span class="lineno">  245</span>     llvm::FunctionType *FTy =</div>
+<div class="line"><a name="l00246"></a><span class="lineno">  246</span>       Types.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenTypes.html#a5e6c7473f14643c5a5b45ac9c0bb2ef8" title="GetFunctionType - Get the LLVM function type for.">GetFunctionType</a>(Types.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenTypes.html#ad50f56f1ab179aee5818314106a147f9">arrangeLLVMFunctionInfo</a>(IdType, Params,</div>
+<div class="line"><a name="l00247"></a><span class="lineno">  247</span>                                                     <a class="code" href="classclang_1_1FunctionType_1_1ExtInfo.html">FunctionType::ExtInfo</a>(),</div>
+<div class="line"><a name="l00248"></a><span class="lineno">  248</span>                                                           <a class="code" href="classclang_1_1CodeGen_1_1RequiredArgs.html#aa5f6271941257ae6b5f05b976a97e1bcac93f131e390095a56245147f25007607">RequiredArgs::All</a>));</div>
+<div class="line"><a name="l00249"></a><span class="lineno">  249</span>     <span class="keywordflow">return</span> CGM.CreateRuntimeFunction(FTy, <span class="stringliteral">"objc_getProperty"</span>);</div>
+<div class="line"><a name="l00250"></a><span class="lineno">  250</span>   }</div>
+<div class="line"><a name="l00251"></a><span class="lineno">  251</span> </div>
+<div class="line"><a name="l00252"></a><span class="lineno">  252</span>   llvm::Constant *getSetPropertyFn() {</div>
+<div class="line"><a name="l00253"></a><span class="lineno">  253</span>     <a class="code" href="classclang_1_1CodeGen_1_1CodeGenTypes.html">CodeGen::CodeGenTypes</a> &Types = CGM.getTypes();</div>
+<div class="line"><a name="l00254"></a><span class="lineno">  254</span>     <a class="code" href="classclang_1_1ASTContext.html" title="Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...">ASTContext</a> &Ctx = CGM.getContext();</div>
+<div class="line"><a name="l00255"></a><span class="lineno">  255</span>     <span class="comment">// void objc_setProperty (id, SEL, ptrdiff_t, id, bool, bool)</span></div>
+<div class="line"><a name="l00256"></a><span class="lineno">  256</span>     <a class="code" href="classllvm_1_1SmallVector.html">SmallVector<CanQualType,6></a> Params;</div>
+<div class="line"><a name="l00257"></a><span class="lineno">  257</span>     <a class="code" href="classclang_1_1CanQual.html">CanQualType</a> IdType = Ctx.<a class="code" href="classclang_1_1ASTContext.html#aebe1c0862e34693bddd4683b51558e35" title="Return the canonical parameter type corresponding to the specific potentially non-canonical one...">getCanonicalParamType</a>(Ctx.<a class="code" href="classclang_1_1ASTContext.html#a46cf0bb1b4e31396963afe4f98956273" title="Represents the Objective-CC id type.">getObjCIdType</a>());</div>
+<div class="line"><a name="l00258"></a><span class="lineno">  258</span>     <a class="code" href="classclang_1_1CanQual.html">CanQualType</a> SelType = Ctx.<a class="code" href="classclang_1_1ASTContext.html#aebe1c0862e34693bddd4683b51558e35" title="Return the canonical parameter type corresponding to the specific potentially non-canonical one...">getCanonicalParamType</a>(Ctx.<a class="code" href="classclang_1_1ASTContext.html#ab98cf62cc837911c586ce978e32d3b2f" title="Retrieve the type that corresponds to the predefined Objective-C 'SEL' type.">getObjCSelType</a>());</div>
+<div class="line"><a name="l00259"></a><span class="lineno">  259</span>     Params.push_back(IdType);</div>
+<div class="line"><a name="l00260"></a><span class="lineno">  260</span>     Params.push_back(SelType);</div>
+<div class="line"><a name="l00261"></a><span class="lineno">  261</span>     Params.push_back(Ctx.<a class="code" href="classclang_1_1ASTContext.html#abdf7588b14d9fa2a1ee40900a0253885" title="Return the unique type for "ptrdiff_t" (C99 7.17) defined in <stddef.h>. Pointer - pointer requires t...">getPointerDiffType</a>()-><a class="code" href="classclang_1_1Type.html#a860cd5d3ea88f4ce5a1acbbc42a38719">getCanonicalTypeUnqualified</a>());</div>
+<div class="line"><a name="l00262"></a><span class="lineno">  262</span>     Params.push_back(IdType);</div>
+<div class="line"><a name="l00263"></a><span class="lineno">  263</span>     Params.push_back(Ctx.<a class="code" href="classclang_1_1ASTContext.html#a699510ff594ec09506e02c3ec68e4ff5">BoolTy</a>);</div>
+<div class="line"><a name="l00264"></a><span class="lineno">  264</span>     Params.push_back(Ctx.<a class="code" href="classclang_1_1ASTContext.html#a699510ff594ec09506e02c3ec68e4ff5">BoolTy</a>);</div>
+<div class="line"><a name="l00265"></a><span class="lineno">  265</span>     llvm::FunctionType *FTy =</div>
+<div class="line"><a name="l00266"></a><span class="lineno">  266</span>       Types.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenTypes.html#a5e6c7473f14643c5a5b45ac9c0bb2ef8" title="GetFunctionType - Get the LLVM function type for.">GetFunctionType</a>(Types.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenTypes.html#ad50f56f1ab179aee5818314106a147f9">arrangeLLVMFunctionInfo</a>(Ctx.<a class="code" href="classclang_1_1ASTContext.html#aaa9dd0ebd4ff2e55c572f5718b7af508">VoidTy</a>, Params,</div>
+<div class="line"><a name="l00267"></a><span class="lineno">  267</span>                                                      <a class="code" href="classclang_1_1FunctionType_1_1ExtInfo.html">FunctionType::ExtInfo</a>(),</div>
+<div class="line"><a name="l00268"></a><span class="lineno">  268</span>                                                           <a class="code" href="classclang_1_1CodeGen_1_1RequiredArgs.html#aa5f6271941257ae6b5f05b976a97e1bcac93f131e390095a56245147f25007607">RequiredArgs::All</a>));</div>
+<div class="line"><a name="l00269"></a><span class="lineno">  269</span>     <span class="keywordflow">return</span> CGM.CreateRuntimeFunction(FTy, <span class="stringliteral">"objc_setProperty"</span>);</div>
+<div class="line"><a name="l00270"></a><span class="lineno">  270</span>   }</div>
+<div class="line"><a name="l00271"></a><span class="lineno">  271</span> </div>
+<div class="line"><a name="l00272"></a><span class="lineno">  272</span>   llvm::Constant *getOptimizedSetPropertyFn(<span class="keywordtype">bool</span> atomic, <span class="keywordtype">bool</span> copy) {</div>
+<div class="line"><a name="l00273"></a><span class="lineno">  273</span>     <a class="code" href="classclang_1_1CodeGen_1_1CodeGenTypes.html">CodeGen::CodeGenTypes</a> &Types = CGM.getTypes();</div>
+<div class="line"><a name="l00274"></a><span class="lineno">  274</span>     <a class="code" href="classclang_1_1ASTContext.html" title="Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...">ASTContext</a> &Ctx = CGM.getContext();</div>
+<div class="line"><a name="l00275"></a><span class="lineno">  275</span>     <span class="comment">// void objc_setProperty_atomic(id self, SEL _cmd, </span></div>
+<div class="line"><a name="l00276"></a><span class="lineno">  276</span>     <span class="comment">//                              id newValue, ptrdiff_t offset);</span></div>
+<div class="line"><a name="l00277"></a><span class="lineno">  277</span>     <span class="comment">// void objc_setProperty_nonatomic(id self, SEL _cmd, </span></div>
+<div class="line"><a name="l00278"></a><span class="lineno">  278</span>     <span class="comment">//                                 id newValue, ptrdiff_t offset);</span></div>
+<div class="line"><a name="l00279"></a><span class="lineno">  279</span>     <span class="comment">// void objc_setProperty_atomic_copy(id self, SEL _cmd, </span></div>
+<div class="line"><a name="l00280"></a><span class="lineno">  280</span>     <span class="comment">//                                   id newValue, ptrdiff_t offset);</span></div>
+<div class="line"><a name="l00281"></a><span class="lineno">  281</span>     <span class="comment">// void objc_setProperty_nonatomic_copy(id self, SEL _cmd, </span></div>
+<div class="line"><a name="l00282"></a><span class="lineno">  282</span>     <span class="comment">//                                      id newValue, ptrdiff_t offset);</span></div>
+<div class="line"><a name="l00283"></a><span class="lineno">  283</span>     </div>
+<div class="line"><a name="l00284"></a><span class="lineno">  284</span>     <a class="code" href="classllvm_1_1SmallVector.html">SmallVector<CanQualType,4></a> Params;</div>
+<div class="line"><a name="l00285"></a><span class="lineno">  285</span>     <a class="code" href="classclang_1_1CanQual.html">CanQualType</a> IdType = Ctx.<a class="code" href="classclang_1_1ASTContext.html#aebe1c0862e34693bddd4683b51558e35" title="Return the canonical parameter type corresponding to the specific potentially non-canonical one...">getCanonicalParamType</a>(Ctx.<a class="code" href="classclang_1_1ASTContext.html#a46cf0bb1b4e31396963afe4f98956273" title="Represents the Objective-CC id type.">getObjCIdType</a>());</div>
+<div class="line"><a name="l00286"></a><span class="lineno">  286</span>     <a class="code" href="classclang_1_1CanQual.html">CanQualType</a> SelType = Ctx.<a class="code" href="classclang_1_1ASTContext.html#aebe1c0862e34693bddd4683b51558e35" title="Return the canonical parameter type corresponding to the specific potentially non-canonical one...">getCanonicalParamType</a>(Ctx.<a class="code" href="classclang_1_1ASTContext.html#ab98cf62cc837911c586ce978e32d3b2f" title="Retrieve the type that corresponds to the predefined Objective-C 'SEL' type.">getObjCSelType</a>());</div>
+<div class="line"><a name="l00287"></a><span class="lineno">  287</span>     Params.push_back(IdType);</div>
+<div class="line"><a name="l00288"></a><span class="lineno">  288</span>     Params.push_back(SelType);</div>
+<div class="line"><a name="l00289"></a><span class="lineno">  289</span>     Params.push_back(IdType);</div>
+<div class="line"><a name="l00290"></a><span class="lineno">  290</span>     Params.push_back(Ctx.<a class="code" href="classclang_1_1ASTContext.html#abdf7588b14d9fa2a1ee40900a0253885" title="Return the unique type for "ptrdiff_t" (C99 7.17) defined in <stddef.h>. Pointer - pointer requires t...">getPointerDiffType</a>()-><a class="code" href="classclang_1_1Type.html#a860cd5d3ea88f4ce5a1acbbc42a38719">getCanonicalTypeUnqualified</a>());</div>
+<div class="line"><a name="l00291"></a><span class="lineno">  291</span>     llvm::FunctionType *FTy =</div>
+<div class="line"><a name="l00292"></a><span class="lineno">  292</span>     Types.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenTypes.html#a5e6c7473f14643c5a5b45ac9c0bb2ef8" title="GetFunctionType - Get the LLVM function type for.">GetFunctionType</a>(Types.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenTypes.html#ad50f56f1ab179aee5818314106a147f9">arrangeLLVMFunctionInfo</a>(Ctx.<a class="code" href="classclang_1_1ASTContext.html#aaa9dd0ebd4ff2e55c572f5718b7af508">VoidTy</a>, Params,</div>
+<div class="line"><a name="l00293"></a><span class="lineno">  293</span>                                                         <a class="code" href="classclang_1_1FunctionType_1_1ExtInfo.html">FunctionType::ExtInfo</a>(),</div>
+<div class="line"><a name="l00294"></a><span class="lineno">  294</span>                                                         <a class="code" href="classclang_1_1CodeGen_1_1RequiredArgs.html#aa5f6271941257ae6b5f05b976a97e1bcac93f131e390095a56245147f25007607">RequiredArgs::All</a>));</div>
+<div class="line"><a name="l00295"></a><span class="lineno">  295</span>     <span class="keyword">const</span> <span class="keywordtype">char</span> *name;</div>
+<div class="line"><a name="l00296"></a><span class="lineno">  296</span>     <span class="keywordflow">if</span> (atomic && copy)</div>
+<div class="line"><a name="l00297"></a><span class="lineno">  297</span>       name = <span class="stringliteral">"objc_setProperty_atomic_copy"</span>;</div>
+<div class="line"><a name="l00298"></a><span class="lineno">  298</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (atomic && !copy)</div>
+<div class="line"><a name="l00299"></a><span class="lineno">  299</span>       name = <span class="stringliteral">"objc_setProperty_atomic"</span>;</div>
+<div class="line"><a name="l00300"></a><span class="lineno">  300</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!atomic && copy)</div>
+<div class="line"><a name="l00301"></a><span class="lineno">  301</span>       name = <span class="stringliteral">"objc_setProperty_nonatomic_copy"</span>;</div>
+<div class="line"><a name="l00302"></a><span class="lineno">  302</span>     <span class="keywordflow">else</span></div>
+<div class="line"><a name="l00303"></a><span class="lineno">  303</span>       name = <span class="stringliteral">"objc_setProperty_nonatomic"</span>;</div>
+<div class="line"><a name="l00304"></a><span class="lineno">  304</span>       </div>
+<div class="line"><a name="l00305"></a><span class="lineno">  305</span>     <span class="keywordflow">return</span> CGM.CreateRuntimeFunction(FTy, name);</div>
+<div class="line"><a name="l00306"></a><span class="lineno">  306</span>   }</div>
+<div class="line"><a name="l00307"></a><span class="lineno">  307</span>   </div>
+<div class="line"><a name="l00308"></a><span class="lineno">  308</span>   llvm::Constant *getCopyStructFn() {</div>
+<div class="line"><a name="l00309"></a><span class="lineno">  309</span>     <a class="code" href="classclang_1_1CodeGen_1_1CodeGenTypes.html">CodeGen::CodeGenTypes</a> &Types = CGM.getTypes();</div>
+<div class="line"><a name="l00310"></a><span class="lineno">  310</span>     <a class="code" href="classclang_1_1ASTContext.html" title="Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...">ASTContext</a> &Ctx = CGM.getContext();</div>
+<div class="line"><a name="l00311"></a><span class="lineno">  311</span>     <span class="comment">// void objc_copyStruct (void *, const void *, size_t, bool, bool)</span></div>
+<div class="line"><a name="l00312"></a><span class="lineno">  312</span>     <a class="code" href="classllvm_1_1SmallVector.html">SmallVector<CanQualType,5></a> Params;</div>
+<div class="line"><a name="l00313"></a><span class="lineno">  313</span>     Params.push_back(Ctx.<a class="code" href="classclang_1_1ASTContext.html#a485732164c40553bb323c58f5e8bf7a7">VoidPtrTy</a>);</div>
+<div class="line"><a name="l00314"></a><span class="lineno">  314</span>     Params.push_back(Ctx.<a class="code" href="classclang_1_1ASTContext.html#a485732164c40553bb323c58f5e8bf7a7">VoidPtrTy</a>);</div>
+<div class="line"><a name="l00315"></a><span class="lineno">  315</span>     Params.push_back(Ctx.<a class="code" href="classclang_1_1ASTContext.html#a0ba7f01d5d975ce7f18b482b052f10fb">LongTy</a>);</div>
+<div class="line"><a name="l00316"></a><span class="lineno">  316</span>     Params.push_back(Ctx.<a class="code" href="classclang_1_1ASTContext.html#a699510ff594ec09506e02c3ec68e4ff5">BoolTy</a>);</div>
+<div class="line"><a name="l00317"></a><span class="lineno">  317</span>     Params.push_back(Ctx.<a class="code" href="classclang_1_1ASTContext.html#a699510ff594ec09506e02c3ec68e4ff5">BoolTy</a>);</div>
+<div class="line"><a name="l00318"></a><span class="lineno">  318</span>     llvm::FunctionType *FTy =</div>
+<div class="line"><a name="l00319"></a><span class="lineno">  319</span>       Types.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenTypes.html#a5e6c7473f14643c5a5b45ac9c0bb2ef8" title="GetFunctionType - Get the LLVM function type for.">GetFunctionType</a>(Types.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenTypes.html#ad50f56f1ab179aee5818314106a147f9">arrangeLLVMFunctionInfo</a>(Ctx.<a class="code" href="classclang_1_1ASTContext.html#aaa9dd0ebd4ff2e55c572f5718b7af508">VoidTy</a>, Params,</div>
+<div class="line"><a name="l00320"></a><span class="lineno">  320</span>                                                      <a class="code" href="classclang_1_1FunctionType_1_1ExtInfo.html">FunctionType::ExtInfo</a>(),</div>
+<div class="line"><a name="l00321"></a><span class="lineno">  321</span>                                                           <a class="code" href="classclang_1_1CodeGen_1_1RequiredArgs.html#aa5f6271941257ae6b5f05b976a97e1bcac93f131e390095a56245147f25007607">RequiredArgs::All</a>));</div>
+<div class="line"><a name="l00322"></a><span class="lineno">  322</span>     <span class="keywordflow">return</span> CGM.CreateRuntimeFunction(FTy, <span class="stringliteral">"objc_copyStruct"</span>);</div>
+<div class="line"><a name="l00323"></a><span class="lineno">  323</span>   }</div>
+<div class="line"><a name="l00324"></a><span class="lineno">  324</span>   <span class="comment"></span></div>
+<div class="line"><a name="l00325"></a><span class="lineno">  325</span> <span class="comment">  /// This routine declares and returns address of:</span></div>
+<div class="line"><a name="l00326"></a><span class="lineno">  326</span> <span class="comment">  /// void objc_copyCppObjectAtomic(</span></div>
+<div class="line"><a name="l00327"></a><span class="lineno">  327</span> <span class="comment">  ///         void *dest, const void *src, </span></div>
+<div class="line"><a name="l00328"></a><span class="lineno">  328</span> <span class="comment">  ///         void (*copyHelper) (void *dest, const void *source));</span></div>
+<div class="line"><a name="l00329"></a><span class="lineno">  329</span> <span class="comment"></span>  llvm::Constant *getCppAtomicObjectFunction() {</div>
+<div class="line"><a name="l00330"></a><span class="lineno">  330</span>     <a class="code" href="classclang_1_1CodeGen_1_1CodeGenTypes.html">CodeGen::CodeGenTypes</a> &Types = CGM.getTypes();</div>
+<div class="line"><a name="l00331"></a><span class="lineno">  331</span>     <a class="code" href="classclang_1_1ASTContext.html" title="Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...">ASTContext</a> &Ctx = CGM.getContext();<span class="comment"></span></div>
+<div class="line"><a name="l00332"></a><span class="lineno">  332</span> <span class="comment">    /// void objc_copyCppObjectAtomic(void *dest, const void *src, void *helper);</span></div>
+<div class="line"><a name="l00333"></a><span class="lineno">  333</span> <span class="comment"></span>    <a class="code" href="classllvm_1_1SmallVector.html">SmallVector<CanQualType,3></a> Params;</div>
+<div class="line"><a name="l00334"></a><span class="lineno">  334</span>     Params.push_back(Ctx.<a class="code" href="classclang_1_1ASTContext.html#a485732164c40553bb323c58f5e8bf7a7">VoidPtrTy</a>);</div>
+<div class="line"><a name="l00335"></a><span class="lineno">  335</span>     Params.push_back(Ctx.<a class="code" href="classclang_1_1ASTContext.html#a485732164c40553bb323c58f5e8bf7a7">VoidPtrTy</a>);</div>
+<div class="line"><a name="l00336"></a><span class="lineno">  336</span>     Params.push_back(Ctx.<a class="code" href="classclang_1_1ASTContext.html#a485732164c40553bb323c58f5e8bf7a7">VoidPtrTy</a>);</div>
+<div class="line"><a name="l00337"></a><span class="lineno">  337</span>     llvm::FunctionType *FTy =</div>
+<div class="line"><a name="l00338"></a><span class="lineno">  338</span>       Types.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenTypes.html#a5e6c7473f14643c5a5b45ac9c0bb2ef8" title="GetFunctionType - Get the LLVM function type for.">GetFunctionType</a>(Types.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenTypes.html#ad50f56f1ab179aee5818314106a147f9">arrangeLLVMFunctionInfo</a>(Ctx.<a class="code" href="classclang_1_1ASTContext.html#aaa9dd0ebd4ff2e55c572f5718b7af508">VoidTy</a>, Params,</div>
+<div class="line"><a name="l00339"></a><span class="lineno">  339</span>                                                      <a class="code" href="classclang_1_1FunctionType_1_1ExtInfo.html">FunctionType::ExtInfo</a>(),</div>
+<div class="line"><a name="l00340"></a><span class="lineno">  340</span>                                                           <a class="code" href="classclang_1_1CodeGen_1_1RequiredArgs.html#aa5f6271941257ae6b5f05b976a97e1bcac93f131e390095a56245147f25007607">RequiredArgs::All</a>));</div>
+<div class="line"><a name="l00341"></a><span class="lineno">  341</span>     <span class="keywordflow">return</span> CGM.CreateRuntimeFunction(FTy, <span class="stringliteral">"objc_copyCppObjectAtomic"</span>);</div>
+<div class="line"><a name="l00342"></a><span class="lineno">  342</span>   }</div>
+<div class="line"><a name="l00343"></a><span class="lineno">  343</span>   </div>
+<div class="line"><a name="l00344"></a><span class="lineno">  344</span>   llvm::Constant *getEnumerationMutationFn() {</div>
+<div class="line"><a name="l00345"></a><span class="lineno">  345</span>     <a class="code" href="classclang_1_1CodeGen_1_1CodeGenTypes.html">CodeGen::CodeGenTypes</a> &Types = CGM.getTypes();</div>
+<div class="line"><a name="l00346"></a><span class="lineno">  346</span>     <a class="code" href="classclang_1_1ASTContext.html" title="Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...">ASTContext</a> &Ctx = CGM.getContext();</div>
+<div class="line"><a name="l00347"></a><span class="lineno">  347</span>     <span class="comment">// void objc_enumerationMutation (id)</span></div>
+<div class="line"><a name="l00348"></a><span class="lineno">  348</span>     <a class="code" href="classllvm_1_1SmallVector.html">SmallVector<CanQualType,1></a> Params;</div>
+<div class="line"><a name="l00349"></a><span class="lineno">  349</span>     Params.push_back(Ctx.<a class="code" href="classclang_1_1ASTContext.html#aebe1c0862e34693bddd4683b51558e35" title="Return the canonical parameter type corresponding to the specific potentially non-canonical one...">getCanonicalParamType</a>(Ctx.<a class="code" href="classclang_1_1ASTContext.html#a46cf0bb1b4e31396963afe4f98956273" title="Represents the Objective-CC id type.">getObjCIdType</a>()));</div>
+<div class="line"><a name="l00350"></a><span class="lineno">  350</span>     llvm::FunctionType *FTy =</div>
+<div class="line"><a name="l00351"></a><span class="lineno">  351</span>       Types.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenTypes.html#a5e6c7473f14643c5a5b45ac9c0bb2ef8" title="GetFunctionType - Get the LLVM function type for.">GetFunctionType</a>(Types.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenTypes.html#ad50f56f1ab179aee5818314106a147f9">arrangeLLVMFunctionInfo</a>(Ctx.<a class="code" href="classclang_1_1ASTContext.html#aaa9dd0ebd4ff2e55c572f5718b7af508">VoidTy</a>, Params,</div>
+<div class="line"><a name="l00352"></a><span class="lineno">  352</span>                                                       <a class="code" href="classclang_1_1FunctionType_1_1ExtInfo.html">FunctionType::ExtInfo</a>(),</div>
+<div class="line"><a name="l00353"></a><span class="lineno">  353</span>                                                       <a class="code" href="classclang_1_1CodeGen_1_1RequiredArgs.html#aa5f6271941257ae6b5f05b976a97e1bcac93f131e390095a56245147f25007607">RequiredArgs::All</a>));</div>
+<div class="line"><a name="l00354"></a><span class="lineno">  354</span>     <span class="keywordflow">return</span> CGM.CreateRuntimeFunction(FTy, <span class="stringliteral">"objc_enumerationMutation"</span>);</div>
+<div class="line"><a name="l00355"></a><span class="lineno">  355</span>   }</div>
+<div class="line"><a name="l00356"></a><span class="lineno">  356</span> <span class="comment"></span></div>
+<div class="line"><a name="l00357"></a><span class="lineno">  357</span> <span class="comment">  /// GcReadWeakFn -- LLVM objc_read_weak (id *src) function.</span></div>
+<div class="line"><a name="l00358"></a><span class="lineno">  358</span> <span class="comment"></span>  llvm::Constant *getGcReadWeakFn() {</div>
+<div class="line"><a name="l00359"></a><span class="lineno">  359</span>     <span class="comment">// id objc_read_weak (id *)</span></div>
+<div class="line"><a name="l00360"></a><span class="lineno">  360</span>     llvm::Type *args[] = { ObjectPtrTy->getPointerTo() };</div>
+<div class="line"><a name="l00361"></a><span class="lineno">  361</span>     llvm::FunctionType *FTy =</div>
+<div class="line"><a name="l00362"></a><span class="lineno">  362</span>       llvm::FunctionType::get(ObjectPtrTy, args, <span class="keyword">false</span>);</div>
+<div class="line"><a name="l00363"></a><span class="lineno">  363</span>     <span class="keywordflow">return</span> CGM.CreateRuntimeFunction(FTy, <span class="stringliteral">"objc_read_weak"</span>);</div>
+<div class="line"><a name="l00364"></a><span class="lineno">  364</span>   }</div>
+<div class="line"><a name="l00365"></a><span class="lineno">  365</span> <span class="comment"></span></div>
+<div class="line"><a name="l00366"></a><span class="lineno">  366</span> <span class="comment">  /// GcAssignWeakFn -- LLVM objc_assign_weak function.</span></div>
+<div class="line"><a name="l00367"></a><span class="lineno">  367</span> <span class="comment"></span>  llvm::Constant *getGcAssignWeakFn() {</div>
+<div class="line"><a name="l00368"></a><span class="lineno">  368</span>     <span class="comment">// id objc_assign_weak (id, id *)</span></div>
+<div class="line"><a name="l00369"></a><span class="lineno">  369</span>     llvm::Type *args[] = { ObjectPtrTy, ObjectPtrTy->getPointerTo() };</div>
+<div class="line"><a name="l00370"></a><span class="lineno">  370</span>     llvm::FunctionType *FTy =</div>
+<div class="line"><a name="l00371"></a><span class="lineno">  371</span>       llvm::FunctionType::get(ObjectPtrTy, args, <span class="keyword">false</span>);</div>
+<div class="line"><a name="l00372"></a><span class="lineno">  372</span>     <span class="keywordflow">return</span> CGM.CreateRuntimeFunction(FTy, <span class="stringliteral">"objc_assign_weak"</span>);</div>
+<div class="line"><a name="l00373"></a><span class="lineno">  373</span>   }</div>
+<div class="line"><a name="l00374"></a><span class="lineno">  374</span> <span class="comment"></span></div>
+<div class="line"><a name="l00375"></a><span class="lineno">  375</span> <span class="comment">  /// GcAssignGlobalFn -- LLVM objc_assign_global function.</span></div>
+<div class="line"><a name="l00376"></a><span class="lineno">  376</span> <span class="comment"></span>  llvm::Constant *getGcAssignGlobalFn() {</div>
+<div class="line"><a name="l00377"></a><span class="lineno">  377</span>     <span class="comment">// id objc_assign_global(id, id *)</span></div>
+<div class="line"><a name="l00378"></a><span class="lineno">  378</span>     llvm::Type *args[] = { ObjectPtrTy, ObjectPtrTy->getPointerTo() };</div>
+<div class="line"><a name="l00379"></a><span class="lineno">  379</span>     llvm::FunctionType *FTy =</div>
+<div class="line"><a name="l00380"></a><span class="lineno">  380</span>       llvm::FunctionType::get(ObjectPtrTy, args, <span class="keyword">false</span>);</div>
+<div class="line"><a name="l00381"></a><span class="lineno">  381</span>     <span class="keywordflow">return</span> CGM.CreateRuntimeFunction(FTy, <span class="stringliteral">"objc_assign_global"</span>);</div>
+<div class="line"><a name="l00382"></a><span class="lineno">  382</span>   }</div>
+<div class="line"><a name="l00383"></a><span class="lineno">  383</span> <span class="comment"></span></div>
+<div class="line"><a name="l00384"></a><span class="lineno">  384</span> <span class="comment">  /// GcAssignThreadLocalFn -- LLVM objc_assign_threadlocal function.</span></div>
+<div class="line"><a name="l00385"></a><span class="lineno">  385</span> <span class="comment"></span>  llvm::Constant *getGcAssignThreadLocalFn() {</div>
+<div class="line"><a name="l00386"></a><span class="lineno">  386</span>     <span class="comment">// id objc_assign_threadlocal(id src, id * dest)</span></div>
+<div class="line"><a name="l00387"></a><span class="lineno">  387</span>     llvm::Type *args[] = { ObjectPtrTy, ObjectPtrTy->getPointerTo() };</div>
+<div class="line"><a name="l00388"></a><span class="lineno">  388</span>     llvm::FunctionType *FTy =</div>
+<div class="line"><a name="l00389"></a><span class="lineno">  389</span>       llvm::FunctionType::get(ObjectPtrTy, args, <span class="keyword">false</span>);</div>
+<div class="line"><a name="l00390"></a><span class="lineno">  390</span>     <span class="keywordflow">return</span> CGM.CreateRuntimeFunction(FTy, <span class="stringliteral">"objc_assign_threadlocal"</span>);</div>
+<div class="line"><a name="l00391"></a><span class="lineno">  391</span>   }</div>
+<div class="line"><a name="l00392"></a><span class="lineno">  392</span>   <span class="comment"></span></div>
+<div class="line"><a name="l00393"></a><span class="lineno">  393</span> <span class="comment">  /// GcAssignIvarFn -- LLVM objc_assign_ivar function.</span></div>
+<div class="line"><a name="l00394"></a><span class="lineno">  394</span> <span class="comment"></span>  llvm::Constant *getGcAssignIvarFn() {</div>
+<div class="line"><a name="l00395"></a><span class="lineno">  395</span>     <span class="comment">// id objc_assign_ivar(id, id *, ptrdiff_t)</span></div>
+<div class="line"><a name="l00396"></a><span class="lineno">  396</span>     llvm::Type *args[] = { ObjectPtrTy, ObjectPtrTy->getPointerTo(),</div>
+<div class="line"><a name="l00397"></a><span class="lineno">  397</span>                            CGM.PtrDiffTy };</div>
+<div class="line"><a name="l00398"></a><span class="lineno">  398</span>     llvm::FunctionType *FTy =</div>
+<div class="line"><a name="l00399"></a><span class="lineno">  399</span>       llvm::FunctionType::get(ObjectPtrTy, args, <span class="keyword">false</span>);</div>
+<div class="line"><a name="l00400"></a><span class="lineno">  400</span>     <span class="keywordflow">return</span> CGM.CreateRuntimeFunction(FTy, <span class="stringliteral">"objc_assign_ivar"</span>);</div>
+<div class="line"><a name="l00401"></a><span class="lineno">  401</span>   }</div>
+<div class="line"><a name="l00402"></a><span class="lineno">  402</span> <span class="comment"></span></div>
+<div class="line"><a name="l00403"></a><span class="lineno">  403</span> <span class="comment">  /// GcMemmoveCollectableFn -- LLVM objc_memmove_collectable function.</span></div>
+<div class="line"><a name="l00404"></a><span class="lineno">  404</span> <span class="comment"></span>  llvm::Constant *GcMemmoveCollectableFn() {</div>
+<div class="line"><a name="l00405"></a><span class="lineno">  405</span>     <span class="comment">// void *objc_memmove_collectable(void *dst, const void *src, size_t size)</span></div>
+<div class="line"><a name="l00406"></a><span class="lineno">  406</span>     llvm::Type *args[] = { Int8PtrTy, Int8PtrTy, LongTy };</div>
+<div class="line"><a name="l00407"></a><span class="lineno">  407</span>     llvm::FunctionType *FTy = llvm::FunctionType::get(Int8PtrTy, args, <span class="keyword">false</span>);</div>
+<div class="line"><a name="l00408"></a><span class="lineno">  408</span>     <span class="keywordflow">return</span> CGM.CreateRuntimeFunction(FTy, <span class="stringliteral">"objc_memmove_collectable"</span>);</div>
+<div class="line"><a name="l00409"></a><span class="lineno">  409</span>   }</div>
+<div class="line"><a name="l00410"></a><span class="lineno">  410</span> <span class="comment"></span></div>
+<div class="line"><a name="l00411"></a><span class="lineno">  411</span> <span class="comment">  /// GcAssignStrongCastFn -- LLVM objc_assign_strongCast function.</span></div>
+<div class="line"><a name="l00412"></a><span class="lineno">  412</span> <span class="comment"></span>  llvm::Constant *getGcAssignStrongCastFn() {</div>
+<div class="line"><a name="l00413"></a><span class="lineno">  413</span>     <span class="comment">// id objc_assign_strongCast(id, id *)</span></div>
+<div class="line"><a name="l00414"></a><span class="lineno">  414</span>     llvm::Type *args[] = { ObjectPtrTy, ObjectPtrTy->getPointerTo() };</div>
+<div class="line"><a name="l00415"></a><span class="lineno">  415</span>     llvm::FunctionType *FTy =</div>
+<div class="line"><a name="l00416"></a><span class="lineno">  416</span>       llvm::FunctionType::get(ObjectPtrTy, args, <span class="keyword">false</span>);</div>
+<div class="line"><a name="l00417"></a><span class="lineno">  417</span>     <span class="keywordflow">return</span> CGM.CreateRuntimeFunction(FTy, <span class="stringliteral">"objc_assign_strongCast"</span>);</div>
+<div class="line"><a name="l00418"></a><span class="lineno">  418</span>   }</div>
+<div class="line"><a name="l00419"></a><span class="lineno">  419</span> <span class="comment"></span></div>
+<div class="line"><a name="l00420"></a><span class="lineno">  420</span> <span class="comment">  /// ExceptionThrowFn - LLVM objc_exception_throw function.</span></div>
+<div class="line"><a name="l00421"></a><span class="lineno">  421</span> <span class="comment"></span>  llvm::Constant *getExceptionThrowFn() {</div>
+<div class="line"><a name="l00422"></a><span class="lineno">  422</span>     <span class="comment">// void objc_exception_throw(id)</span></div>
+<div class="line"><a name="l00423"></a><span class="lineno">  423</span>     llvm::Type *args[] = { ObjectPtrTy };</div>
+<div class="line"><a name="l00424"></a><span class="lineno">  424</span>     llvm::FunctionType *FTy =</div>
+<div class="line"><a name="l00425"></a><span class="lineno">  425</span>       llvm::FunctionType::get(CGM.VoidTy, args, <span class="keyword">false</span>);</div>
+<div class="line"><a name="l00426"></a><span class="lineno">  426</span>     <span class="keywordflow">return</span> CGM.CreateRuntimeFunction(FTy, <span class="stringliteral">"objc_exception_throw"</span>);</div>
+<div class="line"><a name="l00427"></a><span class="lineno">  427</span>   }</div>
+<div class="line"><a name="l00428"></a><span class="lineno">  428</span> <span class="comment"></span></div>
+<div class="line"><a name="l00429"></a><span class="lineno">  429</span> <span class="comment">  /// ExceptionRethrowFn - LLVM objc_exception_rethrow function.</span></div>
+<div class="line"><a name="l00430"></a><span class="lineno">  430</span> <span class="comment"></span>  llvm::Constant *getExceptionRethrowFn() {</div>
+<div class="line"><a name="l00431"></a><span class="lineno">  431</span>     <span class="comment">// void objc_exception_rethrow(void)</span></div>
+<div class="line"><a name="l00432"></a><span class="lineno">  432</span>     llvm::FunctionType *FTy = llvm::FunctionType::get(CGM.VoidTy, <span class="keyword">false</span>);</div>
+<div class="line"><a name="l00433"></a><span class="lineno">  433</span>     <span class="keywordflow">return</span> CGM.CreateRuntimeFunction(FTy, <span class="stringliteral">"objc_exception_rethrow"</span>);</div>
+<div class="line"><a name="l00434"></a><span class="lineno">  434</span>   }</div>
+<div class="line"><a name="l00435"></a><span class="lineno">  435</span>   <span class="comment"></span></div>
+<div class="line"><a name="l00436"></a><span class="lineno">  436</span> <span class="comment">  /// SyncEnterFn - LLVM object_sync_enter function.</span></div>
+<div class="line"><a name="l00437"></a><span class="lineno">  437</span> <span class="comment"></span>  llvm::Constant *getSyncEnterFn() {</div>
+<div class="line"><a name="l00438"></a><span class="lineno">  438</span>     <span class="comment">// int objc_sync_enter (id)</span></div>
+<div class="line"><a name="l00439"></a><span class="lineno">  439</span>     llvm::Type *args[] = { ObjectPtrTy };</div>
+<div class="line"><a name="l00440"></a><span class="lineno">  440</span>     llvm::FunctionType *FTy =</div>
+<div class="line"><a name="l00441"></a><span class="lineno">  441</span>       llvm::FunctionType::get(CGM.IntTy, args, <span class="keyword">false</span>);</div>
+<div class="line"><a name="l00442"></a><span class="lineno">  442</span>     <span class="keywordflow">return</span> CGM.CreateRuntimeFunction(FTy, <span class="stringliteral">"objc_sync_enter"</span>);</div>
+<div class="line"><a name="l00443"></a><span class="lineno">  443</span>   }</div>
+<div class="line"><a name="l00444"></a><span class="lineno">  444</span> <span class="comment"></span></div>
+<div class="line"><a name="l00445"></a><span class="lineno">  445</span> <span class="comment">  /// SyncExitFn - LLVM object_sync_exit function.</span></div>
+<div class="line"><a name="l00446"></a><span class="lineno">  446</span> <span class="comment"></span>  llvm::Constant *getSyncExitFn() {</div>
+<div class="line"><a name="l00447"></a><span class="lineno">  447</span>     <span class="comment">// int objc_sync_exit (id)</span></div>
+<div class="line"><a name="l00448"></a><span class="lineno">  448</span>     llvm::Type *args[] = { ObjectPtrTy };</div>
+<div class="line"><a name="l00449"></a><span class="lineno">  449</span>     llvm::FunctionType *FTy =</div>
+<div class="line"><a name="l00450"></a><span class="lineno">  450</span>       llvm::FunctionType::get(CGM.IntTy, args, <span class="keyword">false</span>);</div>
+<div class="line"><a name="l00451"></a><span class="lineno">  451</span>     <span class="keywordflow">return</span> CGM.CreateRuntimeFunction(FTy, <span class="stringliteral">"objc_sync_exit"</span>);</div>
+<div class="line"><a name="l00452"></a><span class="lineno">  452</span>   }</div>
+<div class="line"><a name="l00453"></a><span class="lineno">  453</span> </div>
+<div class="line"><a name="l00454"></a><span class="lineno">  454</span>   llvm::Constant *getSendFn(<span class="keywordtype">bool</span> IsSuper)<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l00455"></a><span class="lineno">  455</span>     <span class="keywordflow">return</span> IsSuper ? getMessageSendSuperFn() : getMessageSendFn();</div>
+<div class="line"><a name="l00456"></a><span class="lineno">  456</span>   }</div>
+<div class="line"><a name="l00457"></a><span class="lineno">  457</span> </div>
+<div class="line"><a name="l00458"></a><span class="lineno">  458</span>   llvm::Constant *getSendFn2(<span class="keywordtype">bool</span> IsSuper)<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l00459"></a><span class="lineno">  459</span>     <span class="keywordflow">return</span> IsSuper ? getMessageSendSuperFn2() : getMessageSendFn();</div>
+<div class="line"><a name="l00460"></a><span class="lineno">  460</span>   }</div>
+<div class="line"><a name="l00461"></a><span class="lineno">  461</span> </div>
+<div class="line"><a name="l00462"></a><span class="lineno">  462</span>   llvm::Constant *getSendStretFn(<span class="keywordtype">bool</span> IsSuper)<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l00463"></a><span class="lineno">  463</span>     <span class="keywordflow">return</span> IsSuper ? getMessageSendSuperStretFn() : getMessageSendStretFn();</div>
+<div class="line"><a name="l00464"></a><span class="lineno">  464</span>   }</div>
+<div class="line"><a name="l00465"></a><span class="lineno">  465</span> </div>
+<div class="line"><a name="l00466"></a><span class="lineno">  466</span>   llvm::Constant *getSendStretFn2(<span class="keywordtype">bool</span> IsSuper)<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l00467"></a><span class="lineno">  467</span>     <span class="keywordflow">return</span> IsSuper ? getMessageSendSuperStretFn2() : getMessageSendStretFn();</div>
+<div class="line"><a name="l00468"></a><span class="lineno">  468</span>   }</div>
+<div class="line"><a name="l00469"></a><span class="lineno">  469</span> </div>
+<div class="line"><a name="l00470"></a><span class="lineno">  470</span>   llvm::Constant *getSendFpretFn(<span class="keywordtype">bool</span> IsSuper)<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l00471"></a><span class="lineno">  471</span>     <span class="keywordflow">return</span> IsSuper ? getMessageSendSuperFpretFn() : getMessageSendFpretFn();</div>
+<div class="line"><a name="l00472"></a><span class="lineno">  472</span>   }</div>
+<div class="line"><a name="l00473"></a><span class="lineno">  473</span> </div>
+<div class="line"><a name="l00474"></a><span class="lineno">  474</span>   llvm::Constant *getSendFpretFn2(<span class="keywordtype">bool</span> IsSuper)<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l00475"></a><span class="lineno">  475</span>     <span class="keywordflow">return</span> IsSuper ? getMessageSendSuperFpretFn2() : getMessageSendFpretFn();</div>
+<div class="line"><a name="l00476"></a><span class="lineno">  476</span>   }</div>
+<div class="line"><a name="l00477"></a><span class="lineno">  477</span> </div>
+<div class="line"><a name="l00478"></a><span class="lineno">  478</span>   llvm::Constant *getSendFp2retFn(<span class="keywordtype">bool</span> IsSuper)<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l00479"></a><span class="lineno">  479</span>     <span class="keywordflow">return</span> IsSuper ? getMessageSendSuperFn() : getMessageSendFp2retFn();</div>
+<div class="line"><a name="l00480"></a><span class="lineno">  480</span>   }</div>
+<div class="line"><a name="l00481"></a><span class="lineno">  481</span> </div>
+<div class="line"><a name="l00482"></a><span class="lineno">  482</span>   llvm::Constant *getSendFp2RetFn2(<span class="keywordtype">bool</span> IsSuper)<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l00483"></a><span class="lineno">  483</span>     <span class="keywordflow">return</span> IsSuper ? getMessageSendSuperFn2() : getMessageSendFp2retFn();</div>
+<div class="line"><a name="l00484"></a><span class="lineno">  484</span>   }</div>
+<div class="line"><a name="l00485"></a><span class="lineno">  485</span> </div>
+<div class="line"><a name="l00486"></a><span class="lineno">  486</span>   ObjCCommonTypesHelper(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html">CodeGen::CodeGenModule</a> &cgm);</div>
+<div class="line"><a name="l00487"></a><span class="lineno">  487</span>   ~ObjCCommonTypesHelper(){}</div>
+<div class="line"><a name="l00488"></a><span class="lineno">  488</span> };</div>
+<div class="line"><a name="l00489"></a><span class="lineno">  489</span> <span class="comment"></span></div>
+<div class="line"><a name="l00490"></a><span class="lineno">  490</span> <span class="comment">/// ObjCTypesHelper - Helper class that encapsulates lazy</span></div>
+<div class="line"><a name="l00491"></a><span class="lineno">  491</span> <span class="comment">/// construction of varies types used during ObjC generation.</span></div>
+<div class="line"><a name="l00492"></a><span class="lineno">  492</span> <span class="comment"></span><span class="keyword">class </span>ObjCTypesHelper : <span class="keyword">public</span> ObjCCommonTypesHelper {</div>
+<div class="line"><a name="l00493"></a><span class="lineno">  493</span> <span class="keyword">public</span>:<span class="comment"></span></div>
+<div class="line"><a name="l00494"></a><span class="lineno">  494</span> <span class="comment">  /// SymtabTy - LLVM type for struct objc_symtab.</span></div>
+<div class="line"><a name="l00495"></a><span class="lineno">  495</span> <span class="comment"></span>  llvm::StructType *SymtabTy;<span class="comment"></span></div>
+<div class="line"><a name="l00496"></a><span class="lineno">  496</span> <span class="comment">  /// SymtabPtrTy - LLVM type for struct objc_symtab *.</span></div>
+<div class="line"><a name="l00497"></a><span class="lineno">  497</span> <span class="comment"></span>  llvm::Type *SymtabPtrTy;<span class="comment"></span></div>
+<div class="line"><a name="l00498"></a><span class="lineno">  498</span> <span class="comment">  /// ModuleTy - LLVM type for struct objc_module.</span></div>
+<div class="line"><a name="l00499"></a><span class="lineno">  499</span> <span class="comment"></span>  llvm::StructType *ModuleTy;</div>
+<div class="line"><a name="l00500"></a><span class="lineno">  500</span> <span class="comment"></span></div>
+<div class="line"><a name="l00501"></a><span class="lineno">  501</span> <span class="comment">  /// ProtocolTy - LLVM type for struct objc_protocol.</span></div>
+<div class="line"><a name="l00502"></a><span class="lineno">  502</span> <span class="comment"></span>  llvm::StructType *ProtocolTy;<span class="comment"></span></div>
+<div class="line"><a name="l00503"></a><span class="lineno">  503</span> <span class="comment">  /// ProtocolPtrTy - LLVM type for struct objc_protocol *.</span></div>
+<div class="line"><a name="l00504"></a><span class="lineno">  504</span> <span class="comment"></span>  llvm::Type *ProtocolPtrTy;<span class="comment"></span></div>
+<div class="line"><a name="l00505"></a><span class="lineno">  505</span> <span class="comment">  /// ProtocolExtensionTy - LLVM type for struct</span></div>
+<div class="line"><a name="l00506"></a><span class="lineno">  506</span> <span class="comment">  /// objc_protocol_extension.</span></div>
+<div class="line"><a name="l00507"></a><span class="lineno">  507</span> <span class="comment"></span>  llvm::StructType *ProtocolExtensionTy;<span class="comment"></span></div>
+<div class="line"><a name="l00508"></a><span class="lineno">  508</span> <span class="comment">  /// ProtocolExtensionTy - LLVM type for struct</span></div>
+<div class="line"><a name="l00509"></a><span class="lineno">  509</span> <span class="comment">  /// objc_protocol_extension *.</span></div>
+<div class="line"><a name="l00510"></a><span class="lineno">  510</span> <span class="comment"></span>  llvm::Type *ProtocolExtensionPtrTy;<span class="comment"></span></div>
+<div class="line"><a name="l00511"></a><span class="lineno">  511</span> <span class="comment">  /// MethodDescriptionTy - LLVM type for struct</span></div>
+<div class="line"><a name="l00512"></a><span class="lineno">  512</span> <span class="comment">  /// objc_method_description.</span></div>
+<div class="line"><a name="l00513"></a><span class="lineno">  513</span> <span class="comment"></span>  llvm::StructType *MethodDescriptionTy;<span class="comment"></span></div>
+<div class="line"><a name="l00514"></a><span class="lineno">  514</span> <span class="comment">  /// MethodDescriptionListTy - LLVM type for struct</span></div>
+<div class="line"><a name="l00515"></a><span class="lineno">  515</span> <span class="comment">  /// objc_method_description_list.</span></div>
+<div class="line"><a name="l00516"></a><span class="lineno">  516</span> <span class="comment"></span>  llvm::StructType *MethodDescriptionListTy;<span class="comment"></span></div>
+<div class="line"><a name="l00517"></a><span class="lineno">  517</span> <span class="comment">  /// MethodDescriptionListPtrTy - LLVM type for struct</span></div>
+<div class="line"><a name="l00518"></a><span class="lineno">  518</span> <span class="comment">  /// objc_method_description_list *.</span></div>
+<div class="line"><a name="l00519"></a><span class="lineno">  519</span> <span class="comment"></span>  llvm::Type *MethodDescriptionListPtrTy;<span class="comment"></span></div>
+<div class="line"><a name="l00520"></a><span class="lineno">  520</span> <span class="comment">  /// ProtocolListTy - LLVM type for struct objc_property_list.</span></div>
+<div class="line"><a name="l00521"></a><span class="lineno">  521</span> <span class="comment"></span>  llvm::StructType *ProtocolListTy;<span class="comment"></span></div>
+<div class="line"><a name="l00522"></a><span class="lineno">  522</span> <span class="comment">  /// ProtocolListPtrTy - LLVM type for struct objc_property_list*.</span></div>
+<div class="line"><a name="l00523"></a><span class="lineno">  523</span> <span class="comment"></span>  llvm::Type *ProtocolListPtrTy;<span class="comment"></span></div>
+<div class="line"><a name="l00524"></a><span class="lineno">  524</span> <span class="comment">  /// CategoryTy - LLVM type for struct objc_category.</span></div>
+<div class="line"><a name="l00525"></a><span class="lineno">  525</span> <span class="comment"></span>  llvm::StructType *CategoryTy;<span class="comment"></span></div>
+<div class="line"><a name="l00526"></a><span class="lineno">  526</span> <span class="comment">  /// ClassTy - LLVM type for struct objc_class.</span></div>
+<div class="line"><a name="l00527"></a><span class="lineno">  527</span> <span class="comment"></span>  llvm::StructType *ClassTy;<span class="comment"></span></div>
+<div class="line"><a name="l00528"></a><span class="lineno">  528</span> <span class="comment">  /// ClassPtrTy - LLVM type for struct objc_class *.</span></div>
+<div class="line"><a name="l00529"></a><span class="lineno">  529</span> <span class="comment"></span>  llvm::Type *ClassPtrTy;<span class="comment"></span></div>
+<div class="line"><a name="l00530"></a><span class="lineno">  530</span> <span class="comment">  /// ClassExtensionTy - LLVM type for struct objc_class_ext.</span></div>
+<div class="line"><a name="l00531"></a><span class="lineno">  531</span> <span class="comment"></span>  llvm::StructType *ClassExtensionTy;<span class="comment"></span></div>
+<div class="line"><a name="l00532"></a><span class="lineno">  532</span> <span class="comment">  /// ClassExtensionPtrTy - LLVM type for struct objc_class_ext *.</span></div>
+<div class="line"><a name="l00533"></a><span class="lineno">  533</span> <span class="comment"></span>  llvm::Type *ClassExtensionPtrTy;</div>
+<div class="line"><a name="l00534"></a><span class="lineno">  534</span>   <span class="comment">// IvarTy - LLVM type for struct objc_ivar.</span></div>
+<div class="line"><a name="l00535"></a><span class="lineno">  535</span>   llvm::StructType *IvarTy;<span class="comment"></span></div>
+<div class="line"><a name="l00536"></a><span class="lineno">  536</span> <span class="comment">  /// IvarListTy - LLVM type for struct objc_ivar_list.</span></div>
+<div class="line"><a name="l00537"></a><span class="lineno">  537</span> <span class="comment"></span>  llvm::Type *IvarListTy;<span class="comment"></span></div>
+<div class="line"><a name="l00538"></a><span class="lineno">  538</span> <span class="comment">  /// IvarListPtrTy - LLVM type for struct objc_ivar_list *.</span></div>
+<div class="line"><a name="l00539"></a><span class="lineno">  539</span> <span class="comment"></span>  llvm::Type *IvarListPtrTy;<span class="comment"></span></div>
+<div class="line"><a name="l00540"></a><span class="lineno">  540</span> <span class="comment">  /// MethodListTy - LLVM type for struct objc_method_list.</span></div>
+<div class="line"><a name="l00541"></a><span class="lineno">  541</span> <span class="comment"></span>  llvm::Type *MethodListTy;<span class="comment"></span></div>
+<div class="line"><a name="l00542"></a><span class="lineno">  542</span> <span class="comment">  /// MethodListPtrTy - LLVM type for struct objc_method_list *.</span></div>
+<div class="line"><a name="l00543"></a><span class="lineno">  543</span> <span class="comment"></span>  llvm::Type *MethodListPtrTy;</div>
+<div class="line"><a name="l00544"></a><span class="lineno">  544</span> <span class="comment"></span></div>
+<div class="line"><a name="l00545"></a><span class="lineno">  545</span> <span class="comment">  /// ExceptionDataTy - LLVM type for struct _objc_exception_data.</span></div>
+<div class="line"><a name="l00546"></a><span class="lineno">  546</span> <span class="comment"></span>  llvm::Type *ExceptionDataTy;</div>
+<div class="line"><a name="l00547"></a><span class="lineno">  547</span>   <span class="comment"></span></div>
+<div class="line"><a name="l00548"></a><span class="lineno">  548</span> <span class="comment">  /// ExceptionTryEnterFn - LLVM objc_exception_try_enter function.</span></div>
+<div class="line"><a name="l00549"></a><span class="lineno">  549</span> <span class="comment"></span>  llvm::Constant *getExceptionTryEnterFn() {</div>
+<div class="line"><a name="l00550"></a><span class="lineno">  550</span>     llvm::Type *params[] = { ExceptionDataTy->getPointerTo() };</div>
+<div class="line"><a name="l00551"></a><span class="lineno">  551</span>     <span class="keywordflow">return</span> CGM.CreateRuntimeFunction(</div>
+<div class="line"><a name="l00552"></a><span class="lineno">  552</span>       llvm::FunctionType::get(CGM.VoidTy, params, <span class="keyword">false</span>),</div>
+<div class="line"><a name="l00553"></a><span class="lineno">  553</span>       <span class="stringliteral">"objc_exception_try_enter"</span>);</div>
+<div class="line"><a name="l00554"></a><span class="lineno">  554</span>   }</div>
+<div class="line"><a name="l00555"></a><span class="lineno">  555</span> <span class="comment"></span></div>
+<div class="line"><a name="l00556"></a><span class="lineno">  556</span> <span class="comment">  /// ExceptionTryExitFn - LLVM objc_exception_try_exit function.</span></div>
+<div class="line"><a name="l00557"></a><span class="lineno">  557</span> <span class="comment"></span>  llvm::Constant *getExceptionTryExitFn() {</div>
+<div class="line"><a name="l00558"></a><span class="lineno">  558</span>     llvm::Type *params[] = { ExceptionDataTy->getPointerTo() };</div>
+<div class="line"><a name="l00559"></a><span class="lineno">  559</span>     <span class="keywordflow">return</span> CGM.CreateRuntimeFunction(</div>
+<div class="line"><a name="l00560"></a><span class="lineno">  560</span>       llvm::FunctionType::get(CGM.VoidTy, params, <span class="keyword">false</span>),</div>
+<div class="line"><a name="l00561"></a><span class="lineno">  561</span>       <span class="stringliteral">"objc_exception_try_exit"</span>);</div>
+<div class="line"><a name="l00562"></a><span class="lineno">  562</span>   }</div>
+<div class="line"><a name="l00563"></a><span class="lineno">  563</span> <span class="comment"></span></div>
+<div class="line"><a name="l00564"></a><span class="lineno">  564</span> <span class="comment">  /// ExceptionExtractFn - LLVM objc_exception_extract function.</span></div>
+<div class="line"><a name="l00565"></a><span class="lineno">  565</span> <span class="comment"></span>  llvm::Constant *getExceptionExtractFn() {</div>
+<div class="line"><a name="l00566"></a><span class="lineno">  566</span>     llvm::Type *params[] = { ExceptionDataTy->getPointerTo() };</div>
+<div class="line"><a name="l00567"></a><span class="lineno">  567</span>     <span class="keywordflow">return</span> CGM.CreateRuntimeFunction(llvm::FunctionType::get(ObjectPtrTy,</div>
+<div class="line"><a name="l00568"></a><span class="lineno">  568</span>                                                              params, <span class="keyword">false</span>),</div>
+<div class="line"><a name="l00569"></a><span class="lineno">  569</span>                                      <span class="stringliteral">"objc_exception_extract"</span>);</div>
+<div class="line"><a name="l00570"></a><span class="lineno">  570</span>   }</div>
+<div class="line"><a name="l00571"></a><span class="lineno">  571</span> <span class="comment"></span></div>
+<div class="line"><a name="l00572"></a><span class="lineno">  572</span> <span class="comment">  /// ExceptionMatchFn - LLVM objc_exception_match function.</span></div>
+<div class="line"><a name="l00573"></a><span class="lineno">  573</span> <span class="comment"></span>  llvm::Constant *getExceptionMatchFn() {</div>
+<div class="line"><a name="l00574"></a><span class="lineno">  574</span>     llvm::Type *params[] = { ClassPtrTy, ObjectPtrTy };</div>
+<div class="line"><a name="l00575"></a><span class="lineno">  575</span>     <span class="keywordflow">return</span> CGM.CreateRuntimeFunction(</div>
+<div class="line"><a name="l00576"></a><span class="lineno">  576</span>       llvm::FunctionType::get(CGM.Int32Ty, params, <span class="keyword">false</span>),</div>
+<div class="line"><a name="l00577"></a><span class="lineno">  577</span>       <span class="stringliteral">"objc_exception_match"</span>);</div>
+<div class="line"><a name="l00578"></a><span class="lineno">  578</span> </div>
+<div class="line"><a name="l00579"></a><span class="lineno">  579</span>   }</div>
+<div class="line"><a name="l00580"></a><span class="lineno">  580</span> <span class="comment"></span></div>
+<div class="line"><a name="l00581"></a><span class="lineno">  581</span> <span class="comment">  /// SetJmpFn - LLVM _setjmp function.</span></div>
+<div class="line"><a name="l00582"></a><span class="lineno">  582</span> <span class="comment"></span>  llvm::Constant *getSetJmpFn() {</div>
+<div class="line"><a name="l00583"></a><span class="lineno">  583</span>     <span class="comment">// This is specifically the prototype for x86.</span></div>
+<div class="line"><a name="l00584"></a><span class="lineno">  584</span>     llvm::Type *params[] = { CGM.Int32Ty->getPointerTo() };</div>
+<div class="line"><a name="l00585"></a><span class="lineno">  585</span>     <span class="keywordflow">return</span></div>
+<div class="line"><a name="l00586"></a><span class="lineno">  586</span>       CGM.CreateRuntimeFunction(llvm::FunctionType::get(CGM.Int32Ty,</div>
+<div class="line"><a name="l00587"></a><span class="lineno">  587</span>                                                         params, <span class="keyword">false</span>),</div>
+<div class="line"><a name="l00588"></a><span class="lineno">  588</span>                                 <span class="stringliteral">"_setjmp"</span>,</div>
+<div class="line"><a name="l00589"></a><span class="lineno">  589</span>                                 llvm::AttributeSet::get(CGM.getLLVMContext(),</div>
+<div class="line"><a name="l00590"></a><span class="lineno">  590</span>                                               llvm::AttributeSet::FunctionIndex,</div>
+<div class="line"><a name="l00591"></a><span class="lineno">  591</span>                                                  llvm::Attribute::NonLazyBind));</div>
+<div class="line"><a name="l00592"></a><span class="lineno">  592</span>   }</div>
+<div class="line"><a name="l00593"></a><span class="lineno">  593</span> </div>
+<div class="line"><a name="l00594"></a><span class="lineno">  594</span> <span class="keyword">public</span>:</div>
+<div class="line"><a name="l00595"></a><span class="lineno">  595</span>   ObjCTypesHelper(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html">CodeGen::CodeGenModule</a> &cgm);</div>
+<div class="line"><a name="l00596"></a><span class="lineno">  596</span>   ~ObjCTypesHelper() {}</div>
+<div class="line"><a name="l00597"></a><span class="lineno">  597</span> };</div>
+<div class="line"><a name="l00598"></a><span class="lineno">  598</span> <span class="comment"></span></div>
+<div class="line"><a name="l00599"></a><span class="lineno">  599</span> <span class="comment">/// ObjCNonFragileABITypesHelper - will have all types needed by objective-c's</span></div>
+<div class="line"><a name="l00600"></a><span class="lineno">  600</span> <span class="comment">/// modern abi</span></div>
+<div class="line"><a name="l00601"></a><span class="lineno">  601</span> <span class="comment"></span><span class="keyword">class </span>ObjCNonFragileABITypesHelper : <span class="keyword">public</span> ObjCCommonTypesHelper {</div>
+<div class="line"><a name="l00602"></a><span class="lineno">  602</span> <span class="keyword">public</span>:</div>
+<div class="line"><a name="l00603"></a><span class="lineno">  603</span> </div>
+<div class="line"><a name="l00604"></a><span class="lineno">  604</span>   <span class="comment">// MethodListnfABITy - LLVM for struct _method_list_t</span></div>
+<div class="line"><a name="l00605"></a><span class="lineno">  605</span>   llvm::StructType *MethodListnfABITy;</div>
+<div class="line"><a name="l00606"></a><span class="lineno">  606</span> </div>
+<div class="line"><a name="l00607"></a><span class="lineno">  607</span>   <span class="comment">// MethodListnfABIPtrTy - LLVM for struct _method_list_t*</span></div>
+<div class="line"><a name="l00608"></a><span class="lineno">  608</span>   llvm::Type *MethodListnfABIPtrTy;</div>
+<div class="line"><a name="l00609"></a><span class="lineno">  609</span> </div>
+<div class="line"><a name="l00610"></a><span class="lineno">  610</span>   <span class="comment">// ProtocolnfABITy = LLVM for struct _protocol_t</span></div>
+<div class="line"><a name="l00611"></a><span class="lineno">  611</span>   llvm::StructType *ProtocolnfABITy;</div>
+<div class="line"><a name="l00612"></a><span class="lineno">  612</span> </div>
+<div class="line"><a name="l00613"></a><span class="lineno">  613</span>   <span class="comment">// ProtocolnfABIPtrTy = LLVM for struct _protocol_t*</span></div>
+<div class="line"><a name="l00614"></a><span class="lineno">  614</span>   llvm::Type *ProtocolnfABIPtrTy;</div>
+<div class="line"><a name="l00615"></a><span class="lineno">  615</span> </div>
+<div class="line"><a name="l00616"></a><span class="lineno">  616</span>   <span class="comment">// ProtocolListnfABITy - LLVM for struct _objc_protocol_list</span></div>
+<div class="line"><a name="l00617"></a><span class="lineno">  617</span>   llvm::StructType *ProtocolListnfABITy;</div>
+<div class="line"><a name="l00618"></a><span class="lineno">  618</span> </div>
+<div class="line"><a name="l00619"></a><span class="lineno">  619</span>   <span class="comment">// ProtocolListnfABIPtrTy - LLVM for struct _objc_protocol_list*</span></div>
+<div class="line"><a name="l00620"></a><span class="lineno">  620</span>   llvm::Type *ProtocolListnfABIPtrTy;</div>
+<div class="line"><a name="l00621"></a><span class="lineno">  621</span> </div>
+<div class="line"><a name="l00622"></a><span class="lineno">  622</span>   <span class="comment">// ClassnfABITy - LLVM for struct _class_t</span></div>
+<div class="line"><a name="l00623"></a><span class="lineno">  623</span>   llvm::StructType *ClassnfABITy;</div>
+<div class="line"><a name="l00624"></a><span class="lineno">  624</span> </div>
+<div class="line"><a name="l00625"></a><span class="lineno">  625</span>   <span class="comment">// ClassnfABIPtrTy - LLVM for struct _class_t*</span></div>
+<div class="line"><a name="l00626"></a><span class="lineno">  626</span>   llvm::Type *ClassnfABIPtrTy;</div>
+<div class="line"><a name="l00627"></a><span class="lineno">  627</span> </div>
+<div class="line"><a name="l00628"></a><span class="lineno">  628</span>   <span class="comment">// IvarnfABITy - LLVM for struct _ivar_t</span></div>
+<div class="line"><a name="l00629"></a><span class="lineno">  629</span>   llvm::StructType *IvarnfABITy;</div>
+<div class="line"><a name="l00630"></a><span class="lineno">  630</span> </div>
+<div class="line"><a name="l00631"></a><span class="lineno">  631</span>   <span class="comment">// IvarListnfABITy - LLVM for struct _ivar_list_t</span></div>
+<div class="line"><a name="l00632"></a><span class="lineno">  632</span>   llvm::StructType *IvarListnfABITy;</div>
+<div class="line"><a name="l00633"></a><span class="lineno">  633</span> </div>
+<div class="line"><a name="l00634"></a><span class="lineno">  634</span>   <span class="comment">// IvarListnfABIPtrTy = LLVM for struct _ivar_list_t*</span></div>
+<div class="line"><a name="l00635"></a><span class="lineno">  635</span>   llvm::Type *IvarListnfABIPtrTy;</div>
+<div class="line"><a name="l00636"></a><span class="lineno">  636</span> </div>
+<div class="line"><a name="l00637"></a><span class="lineno">  637</span>   <span class="comment">// ClassRonfABITy - LLVM for struct _class_ro_t</span></div>
+<div class="line"><a name="l00638"></a><span class="lineno">  638</span>   llvm::StructType *ClassRonfABITy;</div>
+<div class="line"><a name="l00639"></a><span class="lineno">  639</span> </div>
+<div class="line"><a name="l00640"></a><span class="lineno">  640</span>   <span class="comment">// ImpnfABITy - LLVM for id (*)(id, SEL, ...)</span></div>
+<div class="line"><a name="l00641"></a><span class="lineno">  641</span>   llvm::Type *ImpnfABITy;</div>
+<div class="line"><a name="l00642"></a><span class="lineno">  642</span> </div>
+<div class="line"><a name="l00643"></a><span class="lineno">  643</span>   <span class="comment">// CategorynfABITy - LLVM for struct _category_t</span></div>
+<div class="line"><a name="l00644"></a><span class="lineno">  644</span>   llvm::StructType *CategorynfABITy;</div>
+<div class="line"><a name="l00645"></a><span class="lineno">  645</span> </div>
+<div class="line"><a name="l00646"></a><span class="lineno">  646</span>   <span class="comment">// New types for nonfragile abi messaging.</span></div>
+<div class="line"><a name="l00647"></a><span class="lineno">  647</span> </div>
+<div class="line"><a name="l00648"></a><span class="lineno">  648</span>   <span class="comment">// MessageRefTy - LLVM for:</span></div>
+<div class="line"><a name="l00649"></a><span class="lineno">  649</span>   <span class="comment">// struct _message_ref_t {</span></div>
+<div class="line"><a name="l00650"></a><span class="lineno">  650</span>   <span class="comment">//   IMP messenger;</span></div>
+<div class="line"><a name="l00651"></a><span class="lineno">  651</span>   <span class="comment">//   SEL name;</span></div>
+<div class="line"><a name="l00652"></a><span class="lineno">  652</span>   <span class="comment">// };</span></div>
+<div class="line"><a name="l00653"></a><span class="lineno">  653</span>   llvm::StructType *MessageRefTy;</div>
+<div class="line"><a name="l00654"></a><span class="lineno">  654</span>   <span class="comment">// MessageRefCTy - clang type for struct _message_ref_t</span></div>
+<div class="line"><a name="l00655"></a><span class="lineno">  655</span>   <a class="code" href="classclang_1_1QualType.html">QualType</a> MessageRefCTy;</div>
+<div class="line"><a name="l00656"></a><span class="lineno">  656</span> </div>
+<div class="line"><a name="l00657"></a><span class="lineno">  657</span>   <span class="comment">// MessageRefPtrTy - LLVM for struct _message_ref_t*</span></div>
+<div class="line"><a name="l00658"></a><span class="lineno">  658</span>   llvm::Type *MessageRefPtrTy;</div>
+<div class="line"><a name="l00659"></a><span class="lineno">  659</span>   <span class="comment">// MessageRefCPtrTy - clang type for struct _message_ref_t*</span></div>
+<div class="line"><a name="l00660"></a><span class="lineno">  660</span>   <a class="code" href="classclang_1_1QualType.html">QualType</a> MessageRefCPtrTy;</div>
+<div class="line"><a name="l00661"></a><span class="lineno">  661</span> </div>
+<div class="line"><a name="l00662"></a><span class="lineno">  662</span>   <span class="comment">// MessengerTy - Type of the messenger (shown as IMP above)</span></div>
+<div class="line"><a name="l00663"></a><span class="lineno">  663</span>   llvm::FunctionType *MessengerTy;</div>
+<div class="line"><a name="l00664"></a><span class="lineno">  664</span> </div>
+<div class="line"><a name="l00665"></a><span class="lineno">  665</span>   <span class="comment">// SuperMessageRefTy - LLVM for:</span></div>
+<div class="line"><a name="l00666"></a><span class="lineno">  666</span>   <span class="comment">// struct _super_message_ref_t {</span></div>
+<div class="line"><a name="l00667"></a><span class="lineno">  667</span>   <span class="comment">//   SUPER_IMP messenger;</span></div>
+<div class="line"><a name="l00668"></a><span class="lineno">  668</span>   <span class="comment">//   SEL name;</span></div>
+<div class="line"><a name="l00669"></a><span class="lineno">  669</span>   <span class="comment">// };</span></div>
+<div class="line"><a name="l00670"></a><span class="lineno">  670</span>   llvm::StructType *SuperMessageRefTy;</div>
+<div class="line"><a name="l00671"></a><span class="lineno">  671</span> </div>
+<div class="line"><a name="l00672"></a><span class="lineno">  672</span>   <span class="comment">// SuperMessageRefPtrTy - LLVM for struct _super_message_ref_t*</span></div>
+<div class="line"><a name="l00673"></a><span class="lineno">  673</span>   llvm::Type *SuperMessageRefPtrTy;</div>
+<div class="line"><a name="l00674"></a><span class="lineno">  674</span> </div>
+<div class="line"><a name="l00675"></a><span class="lineno">  675</span>   llvm::Constant *getMessageSendFixupFn() {</div>
+<div class="line"><a name="l00676"></a><span class="lineno">  676</span>     <span class="comment">// id objc_msgSend_fixup(id, struct message_ref_t*, ...)</span></div>
+<div class="line"><a name="l00677"></a><span class="lineno">  677</span>     llvm::Type *params[] = { ObjectPtrTy, MessageRefPtrTy };</div>
+<div class="line"><a name="l00678"></a><span class="lineno">  678</span>     <span class="keywordflow">return</span> CGM.CreateRuntimeFunction(llvm::FunctionType::get(ObjectPtrTy,</div>
+<div class="line"><a name="l00679"></a><span class="lineno">  679</span>                                                              params, <span class="keyword">true</span>),</div>
+<div class="line"><a name="l00680"></a><span class="lineno">  680</span>                                      <span class="stringliteral">"objc_msgSend_fixup"</span>);</div>
+<div class="line"><a name="l00681"></a><span class="lineno">  681</span>   }</div>
+<div class="line"><a name="l00682"></a><span class="lineno">  682</span> </div>
+<div class="line"><a name="l00683"></a><span class="lineno">  683</span>   llvm::Constant *getMessageSendFpretFixupFn() {</div>
+<div class="line"><a name="l00684"></a><span class="lineno">  684</span>     <span class="comment">// id objc_msgSend_fpret_fixup(id, struct message_ref_t*, ...)</span></div>
+<div class="line"><a name="l00685"></a><span class="lineno">  685</span>     llvm::Type *params[] = { ObjectPtrTy, MessageRefPtrTy };</div>
+<div class="line"><a name="l00686"></a><span class="lineno">  686</span>     <span class="keywordflow">return</span> CGM.CreateRuntimeFunction(llvm::FunctionType::get(ObjectPtrTy,</div>
+<div class="line"><a name="l00687"></a><span class="lineno">  687</span>                                                              params, <span class="keyword">true</span>),</div>
+<div class="line"><a name="l00688"></a><span class="lineno">  688</span>                                      <span class="stringliteral">"objc_msgSend_fpret_fixup"</span>);</div>
+<div class="line"><a name="l00689"></a><span class="lineno">  689</span>   }</div>
+<div class="line"><a name="l00690"></a><span class="lineno">  690</span> </div>
+<div class="line"><a name="l00691"></a><span class="lineno">  691</span>   llvm::Constant *getMessageSendStretFixupFn() {</div>
+<div class="line"><a name="l00692"></a><span class="lineno">  692</span>     <span class="comment">// id objc_msgSend_stret_fixup(id, struct message_ref_t*, ...)</span></div>
+<div class="line"><a name="l00693"></a><span class="lineno">  693</span>     llvm::Type *params[] = { ObjectPtrTy, MessageRefPtrTy };</div>
+<div class="line"><a name="l00694"></a><span class="lineno">  694</span>     <span class="keywordflow">return</span> CGM.CreateRuntimeFunction(llvm::FunctionType::get(ObjectPtrTy,</div>
+<div class="line"><a name="l00695"></a><span class="lineno">  695</span>                                                              params, <span class="keyword">true</span>),</div>
+<div class="line"><a name="l00696"></a><span class="lineno">  696</span>                                      <span class="stringliteral">"objc_msgSend_stret_fixup"</span>);</div>
+<div class="line"><a name="l00697"></a><span class="lineno">  697</span>   }</div>
+<div class="line"><a name="l00698"></a><span class="lineno">  698</span> </div>
+<div class="line"><a name="l00699"></a><span class="lineno">  699</span>   llvm::Constant *getMessageSendSuper2FixupFn() {</div>
+<div class="line"><a name="l00700"></a><span class="lineno">  700</span>     <span class="comment">// id objc_msgSendSuper2_fixup (struct objc_super *,</span></div>
+<div class="line"><a name="l00701"></a><span class="lineno">  701</span>     <span class="comment">//                              struct _super_message_ref_t*, ...)</span></div>
+<div class="line"><a name="l00702"></a><span class="lineno">  702</span>     llvm::Type *params[] = { SuperPtrTy, SuperMessageRefPtrTy };</div>
+<div class="line"><a name="l00703"></a><span class="lineno">  703</span>     <span class="keywordflow">return</span>  CGM.CreateRuntimeFunction(llvm::FunctionType::get(ObjectPtrTy,</div>
+<div class="line"><a name="l00704"></a><span class="lineno">  704</span>                                                               params, <span class="keyword">true</span>),</div>
+<div class="line"><a name="l00705"></a><span class="lineno">  705</span>                                       <span class="stringliteral">"objc_msgSendSuper2_fixup"</span>);</div>
+<div class="line"><a name="l00706"></a><span class="lineno">  706</span>   }</div>
+<div class="line"><a name="l00707"></a><span class="lineno">  707</span> </div>
+<div class="line"><a name="l00708"></a><span class="lineno">  708</span>   llvm::Constant *getMessageSendSuper2StretFixupFn() {</div>
+<div class="line"><a name="l00709"></a><span class="lineno">  709</span>     <span class="comment">// id objc_msgSendSuper2_stret_fixup(struct objc_super *,</span></div>
+<div class="line"><a name="l00710"></a><span class="lineno">  710</span>     <span class="comment">//                                   struct _super_message_ref_t*, ...)</span></div>
+<div class="line"><a name="l00711"></a><span class="lineno">  711</span>     llvm::Type *params[] = { SuperPtrTy, SuperMessageRefPtrTy };</div>
+<div class="line"><a name="l00712"></a><span class="lineno">  712</span>     <span class="keywordflow">return</span>  CGM.CreateRuntimeFunction(llvm::FunctionType::get(ObjectPtrTy,</div>
+<div class="line"><a name="l00713"></a><span class="lineno">  713</span>                                                               params, <span class="keyword">true</span>),</div>
+<div class="line"><a name="l00714"></a><span class="lineno">  714</span>                                       <span class="stringliteral">"objc_msgSendSuper2_stret_fixup"</span>);</div>
+<div class="line"><a name="l00715"></a><span class="lineno">  715</span>   }</div>
+<div class="line"><a name="l00716"></a><span class="lineno">  716</span> </div>
+<div class="line"><a name="l00717"></a><span class="lineno">  717</span>   llvm::Constant *getObjCEndCatchFn() {</div>
+<div class="line"><a name="l00718"></a><span class="lineno">  718</span>     <span class="keywordflow">return</span> CGM.CreateRuntimeFunction(llvm::FunctionType::get(CGM.VoidTy, <span class="keyword">false</span>),</div>
+<div class="line"><a name="l00719"></a><span class="lineno">  719</span>                                      <span class="stringliteral">"objc_end_catch"</span>);</div>
+<div class="line"><a name="l00720"></a><span class="lineno">  720</span> </div>
+<div class="line"><a name="l00721"></a><span class="lineno">  721</span>   }</div>
+<div class="line"><a name="l00722"></a><span class="lineno">  722</span> </div>
+<div class="line"><a name="l00723"></a><span class="lineno">  723</span>   llvm::Constant *getObjCBeginCatchFn() {</div>
+<div class="line"><a name="l00724"></a><span class="lineno">  724</span>     llvm::Type *params[] = { Int8PtrTy };</div>
+<div class="line"><a name="l00725"></a><span class="lineno">  725</span>     <span class="keywordflow">return</span> CGM.CreateRuntimeFunction(llvm::FunctionType::get(Int8PtrTy,</div>
+<div class="line"><a name="l00726"></a><span class="lineno">  726</span>                                                              params, <span class="keyword">false</span>),</div>
+<div class="line"><a name="l00727"></a><span class="lineno">  727</span>                                      <span class="stringliteral">"objc_begin_catch"</span>);</div>
+<div class="line"><a name="l00728"></a><span class="lineno">  728</span>   }</div>
+<div class="line"><a name="l00729"></a><span class="lineno">  729</span> </div>
+<div class="line"><a name="l00730"></a><span class="lineno">  730</span>   llvm::StructType *EHTypeTy;</div>
+<div class="line"><a name="l00731"></a><span class="lineno">  731</span>   llvm::Type *EHTypePtrTy;</div>
+<div class="line"><a name="l00732"></a><span class="lineno">  732</span>   </div>
+<div class="line"><a name="l00733"></a><span class="lineno">  733</span>   ObjCNonFragileABITypesHelper(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html">CodeGen::CodeGenModule</a> &cgm);</div>
+<div class="line"><a name="l00734"></a><span class="lineno">  734</span>   ~ObjCNonFragileABITypesHelper(){}</div>
+<div class="line"><a name="l00735"></a><span class="lineno">  735</span> };</div>
+<div class="line"><a name="l00736"></a><span class="lineno">  736</span> </div>
+<div class="line"><a name="l00737"></a><span class="lineno">  737</span> <span class="keyword">class </span>CGObjCCommonMac : <span class="keyword">public</span> <a class="code" href="classclang_1_1CodeGen_1_1CGObjCRuntime.html" title="Implements runtime-specific code generation functions.">CodeGen::CGObjCRuntime</a> {</div>
+<div class="line"><a name="l00738"></a><span class="lineno">  738</span> <span class="keyword">public</span>:</div>
+<div class="line"><a name="l00739"></a><span class="lineno">  739</span>   <span class="comment">// FIXME - accessibility</span></div>
+<div class="line"><a name="l00740"></a><span class="lineno">  740</span>   <span class="keyword">class </span>GC_IVAR {</div>
+<div class="line"><a name="l00741"></a><span class="lineno">  741</span>   <span class="keyword">public</span>:</div>
+<div class="line"><a name="l00742"></a><span class="lineno">  742</span>     <span class="keywordtype">unsigned</span> ivar_bytepos;</div>
+<div class="line"><a name="l00743"></a><span class="lineno">  743</span>     <span class="keywordtype">unsigned</span> ivar_size;</div>
+<div class="line"><a name="l00744"></a><span class="lineno">  744</span>     GC_IVAR(<span class="keywordtype">unsigned</span> bytepos = 0, <span class="keywordtype">unsigned</span> size = 0)</div>
+<div class="line"><a name="l00745"></a><span class="lineno">  745</span>       : ivar_bytepos(bytepos), ivar_size(size) {}</div>
+<div class="line"><a name="l00746"></a><span class="lineno">  746</span> </div>
+<div class="line"><a name="l00747"></a><span class="lineno">  747</span>     <span class="comment">// Allow sorting based on byte pos.</span></div>
+<div class="line"><a name="l00748"></a><span class="lineno">  748</span>     <span class="keywordtype">bool</span> <a class="code" href="namespaceclang.html#a51e572049a11fe5cf42e8da840bf69af">operator<</a>(<span class="keyword">const</span> GC_IVAR &b)<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l00749"></a><span class="lineno">  749</span>       <span class="keywordflow">return</span> ivar_bytepos < b.ivar_bytepos;</div>
+<div class="line"><a name="l00750"></a><span class="lineno">  750</span>     }</div>
+<div class="line"><a name="l00751"></a><span class="lineno">  751</span>   };</div>
+<div class="line"><a name="l00752"></a><span class="lineno">  752</span> </div>
+<div class="line"><a name="l00753"></a><span class="lineno">  753</span>   <span class="keyword">class </span>SKIP_SCAN {</div>
+<div class="line"><a name="l00754"></a><span class="lineno">  754</span>   <span class="keyword">public</span>:</div>
+<div class="line"><a name="l00755"></a><span class="lineno">  755</span>     <span class="keywordtype">unsigned</span> skip;</div>
+<div class="line"><a name="l00756"></a><span class="lineno">  756</span>     <span class="keywordtype">unsigned</span> scan;</div>
+<div class="line"><a name="l00757"></a><span class="lineno">  757</span>     SKIP_SCAN(<span class="keywordtype">unsigned</span> _skip = 0, <span class="keywordtype">unsigned</span> _scan = 0)</div>
+<div class="line"><a name="l00758"></a><span class="lineno">  758</span>       : skip(_skip), scan(_scan) {}</div>
+<div class="line"><a name="l00759"></a><span class="lineno">  759</span>   };</div>
+<div class="line"><a name="l00760"></a><span class="lineno">  760</span> <span class="comment"></span></div>
+<div class="line"><a name="l00761"></a><span class="lineno">  761</span> <span class="comment">  /// opcode for captured block variables layout 'instructions'.</span></div>
+<div class="line"><a name="l00762"></a><span class="lineno">  762</span> <span class="comment">  /// In the following descriptions, 'I' is the value of the immediate field.</span></div>
+<div class="line"><a name="l00763"></a><span class="lineno">  763</span> <span class="comment">  /// (field following the opcode).</span></div>
+<div class="line"><a name="l00764"></a><span class="lineno">  764</span> <span class="comment">  ///</span></div>
+<div class="line"><a name="l00765"></a><span class="lineno">  765</span> <span class="comment"></span>  <span class="keyword">enum</span> BLOCK_LAYOUT_OPCODE {<span class="comment"></span></div>
+<div class="line"><a name="l00766"></a><span class="lineno">  766</span> <span class="comment">    /// An operator which affects how the following layout should be</span></div>
+<div class="line"><a name="l00767"></a><span class="lineno">  767</span> <span class="comment">    /// interpreted.</span></div>
+<div class="line"><a name="l00768"></a><span class="lineno">  768</span> <span class="comment">    ///   I == 0: Halt interpretation and treat everything else as</span></div>
+<div class="line"><a name="l00769"></a><span class="lineno">  769</span> <span class="comment">    ///           a non-pointer.  Note that this instruction is equal</span></div>
+<div class="line"><a name="l00770"></a><span class="lineno">  770</span> <span class="comment">    ///           to '\0'.</span></div>
+<div class="line"><a name="l00771"></a><span class="lineno">  771</span> <span class="comment">    ///   I != 0: Currently unused.</span></div>
+<div class="line"><a name="l00772"></a><span class="lineno">  772</span> <span class="comment"></span>    BLOCK_LAYOUT_OPERATOR            = 0,</div>
+<div class="line"><a name="l00773"></a><span class="lineno">  773</span>     <span class="comment"></span></div>
+<div class="line"><a name="l00774"></a><span class="lineno">  774</span> <span class="comment">    /// The next I+1 bytes do not contain a value of object pointer type.</span></div>
+<div class="line"><a name="l00775"></a><span class="lineno">  775</span> <span class="comment">    /// Note that this can leave the stream unaligned, meaning that</span></div>
+<div class="line"><a name="l00776"></a><span class="lineno">  776</span> <span class="comment">    /// subsequent word-size instructions do not begin at a multiple of</span></div>
+<div class="line"><a name="l00777"></a><span class="lineno">  777</span> <span class="comment">    /// the pointer size.</span></div>
+<div class="line"><a name="l00778"></a><span class="lineno">  778</span> <span class="comment"></span>    BLOCK_LAYOUT_NON_OBJECT_BYTES    = 1,</div>
+<div class="line"><a name="l00779"></a><span class="lineno">  779</span>     <span class="comment"></span></div>
+<div class="line"><a name="l00780"></a><span class="lineno">  780</span> <span class="comment">    /// The next I+1 words do not contain a value of object pointer type.</span></div>
+<div class="line"><a name="l00781"></a><span class="lineno">  781</span> <span class="comment">    /// This is simply an optimized version of BLOCK_LAYOUT_BYTES for</span></div>
+<div class="line"><a name="l00782"></a><span class="lineno">  782</span> <span class="comment">    /// when the required skip quantity is a multiple of the pointer size.</span></div>
+<div class="line"><a name="l00783"></a><span class="lineno">  783</span> <span class="comment"></span>    BLOCK_LAYOUT_NON_OBJECT_WORDS    = 2,</div>
+<div class="line"><a name="l00784"></a><span class="lineno">  784</span>     <span class="comment"></span></div>
+<div class="line"><a name="l00785"></a><span class="lineno">  785</span> <span class="comment">    /// The next I+1 words are __strong pointers to Objective-C</span></div>
+<div class="line"><a name="l00786"></a><span class="lineno">  786</span> <span class="comment">    /// objects or blocks.</span></div>
+<div class="line"><a name="l00787"></a><span class="lineno">  787</span> <span class="comment"></span>    BLOCK_LAYOUT_STRONG              = 3,</div>
+<div class="line"><a name="l00788"></a><span class="lineno">  788</span>     <span class="comment"></span></div>
+<div class="line"><a name="l00789"></a><span class="lineno">  789</span> <span class="comment">    /// The next I+1 words are pointers to __block variables.</span></div>
+<div class="line"><a name="l00790"></a><span class="lineno">  790</span> <span class="comment"></span>    BLOCK_LAYOUT_BYREF               = 4,</div>
+<div class="line"><a name="l00791"></a><span class="lineno">  791</span>     <span class="comment"></span></div>
+<div class="line"><a name="l00792"></a><span class="lineno">  792</span> <span class="comment">    /// The next I+1 words are __weak pointers to Objective-C</span></div>
+<div class="line"><a name="l00793"></a><span class="lineno">  793</span> <span class="comment">    /// objects or blocks.</span></div>
+<div class="line"><a name="l00794"></a><span class="lineno">  794</span> <span class="comment"></span>    BLOCK_LAYOUT_WEAK                = 5,</div>
+<div class="line"><a name="l00795"></a><span class="lineno">  795</span>     <span class="comment"></span></div>
+<div class="line"><a name="l00796"></a><span class="lineno">  796</span> <span class="comment">    /// The next I+1 words are __unsafe_unretained pointers to</span></div>
+<div class="line"><a name="l00797"></a><span class="lineno">  797</span> <span class="comment">    /// Objective-C objects or blocks.</span></div>
+<div class="line"><a name="l00798"></a><span class="lineno">  798</span> <span class="comment"></span>    BLOCK_LAYOUT_UNRETAINED          = 6</div>
+<div class="line"><a name="l00799"></a><span class="lineno">  799</span>     <span class="comment"></span></div>
+<div class="line"><a name="l00800"></a><span class="lineno">  800</span> <span class="comment">    /// The next I+1 words are block or object pointers with some</span></div>
+<div class="line"><a name="l00801"></a><span class="lineno">  801</span> <span class="comment">    /// as-yet-unspecified ownership semantics.  If we add more</span></div>
+<div class="line"><a name="l00802"></a><span class="lineno">  802</span> <span class="comment">    /// flavors of ownership semantics, values will be taken from</span></div>
+<div class="line"><a name="l00803"></a><span class="lineno">  803</span> <span class="comment">    /// this range.</span></div>
+<div class="line"><a name="l00804"></a><span class="lineno">  804</span> <span class="comment">    ///</span></div>
+<div class="line"><a name="l00805"></a><span class="lineno">  805</span> <span class="comment">    /// This is included so that older tools can at least continue</span></div>
+<div class="line"><a name="l00806"></a><span class="lineno">  806</span> <span class="comment">    /// processing the layout past such things.</span></div>
+<div class="line"><a name="l00807"></a><span class="lineno">  807</span> <span class="comment"></span>    <span class="comment">//BLOCK_LAYOUT_OWNERSHIP_UNKNOWN = 7..10,</span></div>
+<div class="line"><a name="l00808"></a><span class="lineno">  808</span>     <span class="comment"></span></div>
+<div class="line"><a name="l00809"></a><span class="lineno">  809</span> <span class="comment">    /// All other opcodes are reserved.  Halt interpretation and</span></div>
+<div class="line"><a name="l00810"></a><span class="lineno">  810</span> <span class="comment">    /// treat everything else as opaque.</span></div>
+<div class="line"><a name="l00811"></a><span class="lineno">  811</span> <span class="comment"></span>  };</div>
+<div class="line"><a name="l00812"></a><span class="lineno">  812</span>  </div>
+<div class="line"><a name="l00813"></a><span class="lineno">  813</span>   <span class="keyword">class </span>RUN_SKIP {</div>
+<div class="line"><a name="l00814"></a><span class="lineno">  814</span>   <span class="keyword">public</span>:</div>
+<div class="line"><a name="l00815"></a><span class="lineno">  815</span>     <span class="keyword">enum</span> BLOCK_LAYOUT_OPCODE opcode;</div>
+<div class="line"><a name="l00816"></a><span class="lineno">  816</span>     <a class="code" href="classclang_1_1CharUnits.html">CharUnits</a> block_var_bytepos;</div>
+<div class="line"><a name="l00817"></a><span class="lineno">  817</span>     <a class="code" href="classclang_1_1CharUnits.html">CharUnits</a> block_var_size;</div>
+<div class="line"><a name="l00818"></a><span class="lineno">  818</span>     RUN_SKIP(<span class="keyword">enum</span> BLOCK_LAYOUT_OPCODE Opcode = BLOCK_LAYOUT_OPERATOR,</div>
+<div class="line"><a name="l00819"></a><span class="lineno">  819</span>              <a class="code" href="classclang_1_1CharUnits.html">CharUnits</a> BytePos = <a class="code" href="classclang_1_1CharUnits.html#ae8fbc6063b513b85cd488904994ac8c2" title="Zero - Construct a CharUnits quantity of zero.">CharUnits::Zero</a>(),</div>
+<div class="line"><a name="l00820"></a><span class="lineno">  820</span>              <a class="code" href="classclang_1_1CharUnits.html">CharUnits</a> Size = <a class="code" href="classclang_1_1CharUnits.html#ae8fbc6063b513b85cd488904994ac8c2" title="Zero - Construct a CharUnits quantity of zero.">CharUnits::Zero</a>())</div>
+<div class="line"><a name="l00821"></a><span class="lineno">  821</span>     : opcode(Opcode), block_var_bytepos(BytePos),  block_var_size(Size) {}</div>
+<div class="line"><a name="l00822"></a><span class="lineno">  822</span>     </div>
+<div class="line"><a name="l00823"></a><span class="lineno">  823</span>     <span class="comment">// Allow sorting based on byte pos.</span></div>
+<div class="line"><a name="l00824"></a><span class="lineno">  824</span>     <span class="keywordtype">bool</span> <a class="code" href="namespaceclang.html#a51e572049a11fe5cf42e8da840bf69af">operator<</a>(<span class="keyword">const</span> RUN_SKIP &b)<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l00825"></a><span class="lineno">  825</span>       <span class="keywordflow">return</span> block_var_bytepos < b.block_var_bytepos;</div>
+<div class="line"><a name="l00826"></a><span class="lineno">  826</span>     }</div>
+<div class="line"><a name="l00827"></a><span class="lineno">  827</span>   };</div>
+<div class="line"><a name="l00828"></a><span class="lineno">  828</span>   </div>
+<div class="line"><a name="l00829"></a><span class="lineno">  829</span> <span class="keyword">protected</span>:</div>
+<div class="line"><a name="l00830"></a><span class="lineno">  830</span>   llvm::LLVMContext &VMContext;</div>
+<div class="line"><a name="l00831"></a><span class="lineno">  831</span>   <span class="comment">// FIXME! May not be needing this after all.</span></div>
+<div class="line"><a name="l00832"></a><span class="lineno">  832</span>   <span class="keywordtype">unsigned</span> ObjCABI;</div>
+<div class="line"><a name="l00833"></a><span class="lineno">  833</span> </div>
+<div class="line"><a name="l00834"></a><span class="lineno">  834</span>   <span class="comment">// gc ivar layout bitmap calculation helper caches.</span></div>
+<div class="line"><a name="l00835"></a><span class="lineno">  835</span>   <a class="code" href="classllvm_1_1SmallVector.html">SmallVector<GC_IVAR, 16></a> SkipIvars;</div>
+<div class="line"><a name="l00836"></a><span class="lineno">  836</span>   <a class="code" href="classllvm_1_1SmallVector.html">SmallVector<GC_IVAR, 16></a> IvarsInfo;</div>
+<div class="line"><a name="l00837"></a><span class="lineno">  837</span>   </div>
+<div class="line"><a name="l00838"></a><span class="lineno">  838</span>   <span class="comment">// arc/mrr layout of captured block literal variables.</span></div>
+<div class="line"><a name="l00839"></a><span class="lineno">  839</span>   <a class="code" href="classllvm_1_1SmallVector.html">SmallVector<RUN_SKIP, 16></a> RunSkipBlockVars;</div>
+<div class="line"><a name="l00840"></a><span class="lineno">  840</span> <span class="comment"></span></div>
+<div class="line"><a name="l00841"></a><span class="lineno">  841</span> <span class="comment">  /// LazySymbols - Symbols to generate a lazy reference for. See</span></div>
+<div class="line"><a name="l00842"></a><span class="lineno">  842</span> <span class="comment">  /// DefinedSymbols and FinishModule().</span></div>
+<div class="line"><a name="l00843"></a><span class="lineno">  843</span> <span class="comment"></span>  llvm::SetVector<IdentifierInfo*> LazySymbols;</div>
+<div class="line"><a name="l00844"></a><span class="lineno">  844</span> <span class="comment"></span></div>
+<div class="line"><a name="l00845"></a><span class="lineno">  845</span> <span class="comment">  /// DefinedSymbols - External symbols which are defined by this</span></div>
+<div class="line"><a name="l00846"></a><span class="lineno">  846</span> <span class="comment">  /// module. The symbols in this list and LazySymbols are used to add</span></div>
+<div class="line"><a name="l00847"></a><span class="lineno">  847</span> <span class="comment">  /// special linker symbols which ensure that Objective-C modules are</span></div>
+<div class="line"><a name="l00848"></a><span class="lineno">  848</span> <span class="comment">  /// linked properly.</span></div>
+<div class="line"><a name="l00849"></a><span class="lineno">  849</span> <span class="comment"></span>  llvm::SetVector<IdentifierInfo*> DefinedSymbols;</div>
+<div class="line"><a name="l00850"></a><span class="lineno">  850</span> <span class="comment"></span></div>
+<div class="line"><a name="l00851"></a><span class="lineno">  851</span> <span class="comment">  /// ClassNames - uniqued class names.</span></div>
+<div class="line"><a name="l00852"></a><span class="lineno">  852</span> <span class="comment"></span>  llvm::DenseMap<IdentifierInfo*, llvm::GlobalVariable*> ClassNames;</div>
+<div class="line"><a name="l00853"></a><span class="lineno">  853</span> <span class="comment"></span></div>
+<div class="line"><a name="l00854"></a><span class="lineno">  854</span> <span class="comment">  /// MethodVarNames - uniqued method variable names.</span></div>
+<div class="line"><a name="l00855"></a><span class="lineno">  855</span> <span class="comment"></span>  llvm::DenseMap<Selector, llvm::GlobalVariable*> MethodVarNames;</div>
+<div class="line"><a name="l00856"></a><span class="lineno">  856</span> <span class="comment"></span></div>
+<div class="line"><a name="l00857"></a><span class="lineno">  857</span> <span class="comment">  /// DefinedCategoryNames - list of category names in form Class_Category.</span></div>
+<div class="line"><a name="l00858"></a><span class="lineno">  858</span> <span class="comment"></span>  llvm::SetVector<std::string> DefinedCategoryNames;</div>
+<div class="line"><a name="l00859"></a><span class="lineno">  859</span> <span class="comment"></span></div>
+<div class="line"><a name="l00860"></a><span class="lineno">  860</span> <span class="comment">  /// MethodVarTypes - uniqued method type signatures. We have to use</span></div>
+<div class="line"><a name="l00861"></a><span class="lineno">  861</span> <span class="comment">  /// a StringMap here because have no other unique reference.</span></div>
+<div class="line"><a name="l00862"></a><span class="lineno">  862</span> <span class="comment"></span>  llvm::StringMap<llvm::GlobalVariable*> MethodVarTypes;</div>
+<div class="line"><a name="l00863"></a><span class="lineno">  863</span> <span class="comment"></span></div>
+<div class="line"><a name="l00864"></a><span class="lineno">  864</span> <span class="comment">  /// MethodDefinitions - map of methods which have been defined in</span></div>
+<div class="line"><a name="l00865"></a><span class="lineno">  865</span> <span class="comment">  /// this translation unit.</span></div>
+<div class="line"><a name="l00866"></a><span class="lineno">  866</span> <span class="comment"></span>  llvm::DenseMap<const ObjCMethodDecl*, llvm::Function*> MethodDefinitions;</div>
+<div class="line"><a name="l00867"></a><span class="lineno">  867</span> <span class="comment"></span></div>
+<div class="line"><a name="l00868"></a><span class="lineno">  868</span> <span class="comment">  /// PropertyNames - uniqued method variable names.</span></div>
+<div class="line"><a name="l00869"></a><span class="lineno">  869</span> <span class="comment"></span>  llvm::DenseMap<IdentifierInfo*, llvm::GlobalVariable*> PropertyNames;</div>
+<div class="line"><a name="l00870"></a><span class="lineno">  870</span> <span class="comment"></span></div>
+<div class="line"><a name="l00871"></a><span class="lineno">  871</span> <span class="comment">  /// ClassReferences - uniqued class references.</span></div>
+<div class="line"><a name="l00872"></a><span class="lineno">  872</span> <span class="comment"></span>  llvm::DenseMap<IdentifierInfo*, llvm::GlobalVariable*> ClassReferences;</div>
+<div class="line"><a name="l00873"></a><span class="lineno">  873</span> <span class="comment"></span></div>
+<div class="line"><a name="l00874"></a><span class="lineno">  874</span> <span class="comment">  /// SelectorReferences - uniqued selector references.</span></div>
+<div class="line"><a name="l00875"></a><span class="lineno">  875</span> <span class="comment"></span>  llvm::DenseMap<Selector, llvm::GlobalVariable*> SelectorReferences;</div>
+<div class="line"><a name="l00876"></a><span class="lineno">  876</span> <span class="comment"></span></div>
+<div class="line"><a name="l00877"></a><span class="lineno">  877</span> <span class="comment">  /// Protocols - Protocols for which an objc_protocol structure has</span></div>
+<div class="line"><a name="l00878"></a><span class="lineno">  878</span> <span class="comment">  /// been emitted. Forward declarations are handled by creating an</span></div>
+<div class="line"><a name="l00879"></a><span class="lineno">  879</span> <span class="comment">  /// empty structure whose initializer is filled in when/if defined.</span></div>
+<div class="line"><a name="l00880"></a><span class="lineno">  880</span> <span class="comment"></span>  llvm::DenseMap<IdentifierInfo*, llvm::GlobalVariable*> Protocols;</div>
+<div class="line"><a name="l00881"></a><span class="lineno">  881</span> <span class="comment"></span></div>
+<div class="line"><a name="l00882"></a><span class="lineno">  882</span> <span class="comment">  /// DefinedProtocols - Protocols which have actually been</span></div>
+<div class="line"><a name="l00883"></a><span class="lineno">  883</span> <span class="comment">  /// defined. We should not need this, see FIXME in GenerateProtocol.</span></div>
+<div class="line"><a name="l00884"></a><span class="lineno">  884</span> <span class="comment"></span>  <a class="code" href="classllvm_1_1DenseSet.html">llvm::DenseSet<IdentifierInfo*></a> DefinedProtocols;</div>
+<div class="line"><a name="l00885"></a><span class="lineno">  885</span> <span class="comment"></span></div>
+<div class="line"><a name="l00886"></a><span class="lineno">  886</span> <span class="comment">  /// DefinedClasses - List of defined classes.</span></div>
+<div class="line"><a name="l00887"></a><span class="lineno">  887</span> <span class="comment"></span>  <a class="code" href="classllvm_1_1SmallVector.html">SmallVector<llvm::GlobalValue*, 16></a> DefinedClasses;</div>
+<div class="line"><a name="l00888"></a><span class="lineno">  888</span> <span class="comment"></span></div>
+<div class="line"><a name="l00889"></a><span class="lineno">  889</span> <span class="comment">  /// DefinedNonLazyClasses - List of defined "non-lazy" classes.</span></div>
+<div class="line"><a name="l00890"></a><span class="lineno">  890</span> <span class="comment"></span>  <a class="code" href="classllvm_1_1SmallVector.html">SmallVector<llvm::GlobalValue*, 16></a> DefinedNonLazyClasses;</div>
+<div class="line"><a name="l00891"></a><span class="lineno">  891</span> <span class="comment"></span></div>
+<div class="line"><a name="l00892"></a><span class="lineno">  892</span> <span class="comment">  /// DefinedCategories - List of defined categories.</span></div>
+<div class="line"><a name="l00893"></a><span class="lineno">  893</span> <span class="comment"></span>  <a class="code" href="classllvm_1_1SmallVector.html">SmallVector<llvm::GlobalValue*, 16></a> DefinedCategories;</div>
+<div class="line"><a name="l00894"></a><span class="lineno">  894</span> <span class="comment"></span></div>
+<div class="line"><a name="l00895"></a><span class="lineno">  895</span> <span class="comment">  /// DefinedNonLazyCategories - List of defined "non-lazy" categories.</span></div>
+<div class="line"><a name="l00896"></a><span class="lineno">  896</span> <span class="comment"></span>  <a class="code" href="classllvm_1_1SmallVector.html">SmallVector<llvm::GlobalValue*, 16></a> DefinedNonLazyCategories;</div>
+<div class="line"><a name="l00897"></a><span class="lineno">  897</span> <span class="comment"></span></div>
+<div class="line"><a name="l00898"></a><span class="lineno">  898</span> <span class="comment">  /// GetNameForMethod - Return a name for the given method.</span></div>
+<div class="line"><a name="l00899"></a><span class="lineno">  899</span> <span class="comment">  /// \param[out] NameOut - The return value.</span></div>
+<div class="line"><a name="l00900"></a><span class="lineno">  900</span> <span class="comment"></span>  <span class="keywordtype">void</span> GetNameForMethod(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCMethodDecl.html">ObjCMethodDecl</a> *OMD,</div>
+<div class="line"><a name="l00901"></a><span class="lineno">  901</span>                         <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCContainerDecl.html">ObjCContainerDecl</a> *CD,</div>
+<div class="line"><a name="l00902"></a><span class="lineno">  902</span>                         <a class="code" href="classllvm_1_1SmallVectorImpl.html">SmallVectorImpl<char></a> &NameOut);</div>
+<div class="line"><a name="l00903"></a><span class="lineno">  903</span> <span class="comment"></span></div>
+<div class="line"><a name="l00904"></a><span class="lineno">  904</span> <span class="comment">  /// GetMethodVarName - Return a unique constant for the given</span></div>
+<div class="line"><a name="l00905"></a><span class="lineno">  905</span> <span class="comment">  /// selector's name. The return value has type char *.</span></div>
+<div class="line"><a name="l00906"></a><span class="lineno">  906</span> <span class="comment"></span>  llvm::Constant *GetMethodVarName(<a class="code" href="classclang_1_1Selector.html" title="Smart pointer class that efficiently represents Objective-C method names.">Selector</a> Sel);</div>
+<div class="line"><a name="l00907"></a><span class="lineno">  907</span>   llvm::Constant *GetMethodVarName(<a class="code" href="classclang_1_1IdentifierInfo.html">IdentifierInfo</a> *Ident);</div>
+<div class="line"><a name="l00908"></a><span class="lineno">  908</span> <span class="comment"></span></div>
+<div class="line"><a name="l00909"></a><span class="lineno">  909</span> <span class="comment">  /// GetMethodVarType - Return a unique constant for the given</span></div>
+<div class="line"><a name="l00910"></a><span class="lineno">  910</span> <span class="comment">  /// method's type encoding string. The return value has type char *.</span></div>
+<div class="line"><a name="l00911"></a><span class="lineno">  911</span> <span class="comment"></span></div>
+<div class="line"><a name="l00912"></a><span class="lineno">  912</span>   <span class="comment">// FIXME: This is a horrible name.</span></div>
+<div class="line"><a name="l00913"></a><span class="lineno">  913</span>   llvm::Constant *GetMethodVarType(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCMethodDecl.html">ObjCMethodDecl</a> *D,</div>
+<div class="line"><a name="l00914"></a><span class="lineno">  914</span>                                    <span class="keywordtype">bool</span> Extended = <span class="keyword">false</span>);</div>
+<div class="line"><a name="l00915"></a><span class="lineno">  915</span>   llvm::Constant *GetMethodVarType(<span class="keyword">const</span> <a class="code" href="classclang_1_1FieldDecl.html">FieldDecl</a> *D);</div>
+<div class="line"><a name="l00916"></a><span class="lineno">  916</span> <span class="comment"></span></div>
+<div class="line"><a name="l00917"></a><span class="lineno">  917</span> <span class="comment">  /// GetPropertyName - Return a unique constant for the given</span></div>
+<div class="line"><a name="l00918"></a><span class="lineno">  918</span> <span class="comment">  /// name. The return value has type char *.</span></div>
+<div class="line"><a name="l00919"></a><span class="lineno">  919</span> <span class="comment"></span>  llvm::Constant *GetPropertyName(<a class="code" href="classclang_1_1IdentifierInfo.html">IdentifierInfo</a> *Ident);</div>
+<div class="line"><a name="l00920"></a><span class="lineno">  920</span> </div>
+<div class="line"><a name="l00921"></a><span class="lineno">  921</span>   <span class="comment">// FIXME: This can be dropped once string functions are unified.</span></div>
+<div class="line"><a name="l00922"></a><span class="lineno">  922</span>   llvm::Constant *GetPropertyTypeString(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCPropertyDecl.html" title="Represents one property declaration in an Objective-C interface.">ObjCPropertyDecl</a> *PD,</div>
+<div class="line"><a name="l00923"></a><span class="lineno">  923</span>                                         <span class="keyword">const</span> <a class="code" href="classclang_1_1Decl.html">Decl</a> *Container);</div>
+<div class="line"><a name="l00924"></a><span class="lineno">  924</span> <span class="comment"></span></div>
+<div class="line"><a name="l00925"></a><span class="lineno">  925</span> <span class="comment">  /// GetClassName - Return a unique constant for the given selector's</span></div>
+<div class="line"><a name="l00926"></a><span class="lineno">  926</span> <span class="comment">  /// name. The return value has type char *.</span></div>
+<div class="line"><a name="l00927"></a><span class="lineno">  927</span> <span class="comment"></span>  llvm::Constant *GetClassName(<a class="code" href="classclang_1_1IdentifierInfo.html">IdentifierInfo</a> *Ident);</div>
+<div class="line"><a name="l00928"></a><span class="lineno">  928</span> </div>
+<div class="line"><a name="l00929"></a><span class="lineno">  929</span>   llvm::Function *GetMethodDefinition(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCMethodDecl.html">ObjCMethodDecl</a> *MD);</div>
+<div class="line"><a name="l00930"></a><span class="lineno">  930</span> <span class="comment"></span></div>
+<div class="line"><a name="l00931"></a><span class="lineno">  931</span> <span class="comment">  /// BuildIvarLayout - Builds ivar layout bitmap for the class</span></div>
+<div class="line"><a name="l00932"></a><span class="lineno">  932</span> <span class="comment">  /// implementation for the __strong or __weak case.</span></div>
+<div class="line"><a name="l00933"></a><span class="lineno">  933</span> <span class="comment">  ///</span></div>
+<div class="line"><a name="l00934"></a><span class="lineno">  934</span> <span class="comment"></span>  llvm::Constant *BuildIvarLayout(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCImplementationDecl.html">ObjCImplementationDecl</a> *OI,</div>
+<div class="line"><a name="l00935"></a><span class="lineno">  935</span>                                   <span class="keywordtype">bool</span> ForStrongLayout);</div>
+<div class="line"><a name="l00936"></a><span class="lineno">  936</span>   </div>
+<div class="line"><a name="l00937"></a><span class="lineno">  937</span>   llvm::Constant *BuildIvarLayoutBitmap(std::string &BitMap);</div>
+<div class="line"><a name="l00938"></a><span class="lineno">  938</span> </div>
+<div class="line"><a name="l00939"></a><span class="lineno">  939</span>   <span class="keywordtype">void</span> BuildAggrIvarRecordLayout(<span class="keyword">const</span> <a class="code" href="classclang_1_1RecordType.html">RecordType</a> *RT,</div>
+<div class="line"><a name="l00940"></a><span class="lineno">  940</span>                                  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> BytePos, <span class="keywordtype">bool</span> ForStrongLayout,</div>
+<div class="line"><a name="l00941"></a><span class="lineno">  941</span>                                  <span class="keywordtype">bool</span> &HasUnion);</div>
+<div class="line"><a name="l00942"></a><span class="lineno">  942</span>   <span class="keywordtype">void</span> BuildAggrIvarLayout(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCImplementationDecl.html">ObjCImplementationDecl</a> *OI,</div>
+<div class="line"><a name="l00943"></a><span class="lineno">  943</span>                            <span class="keyword">const</span> llvm::StructLayout *Layout,</div>
+<div class="line"><a name="l00944"></a><span class="lineno">  944</span>                            <span class="keyword">const</span> <a class="code" href="classclang_1_1RecordDecl.html">RecordDecl</a> *RD,</div>
+<div class="line"><a name="l00945"></a><span class="lineno">  945</span>                            <a class="code" href="classllvm_1_1ArrayRef.html">ArrayRef<const FieldDecl*></a> RecFields,</div>
+<div class="line"><a name="l00946"></a><span class="lineno">  946</span>                            <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> BytePos, <span class="keywordtype">bool</span> ForStrongLayout,</div>
+<div class="line"><a name="l00947"></a><span class="lineno">  947</span>                            <span class="keywordtype">bool</span> &HasUnion);</div>
+<div class="line"><a name="l00948"></a><span class="lineno">  948</span>   </div>
+<div class="line"><a name="l00949"></a><span class="lineno">  949</span>   <a class="code" href="classclang_1_1Qualifiers.html#a1280e3f4075ff54f856987cf002ba300">Qualifiers::ObjCLifetime</a> getBlockCaptureLifetime(<a class="code" href="classclang_1_1QualType.html">QualType</a> QT, <span class="keywordtype">bool</span> ByrefLayout);</div>
+<div class="line"><a name="l00950"></a><span class="lineno">  950</span>   </div>
+<div class="line"><a name="l00951"></a><span class="lineno">  951</span>   <span class="keywordtype">void</span> UpdateRunSkipBlockVars(<span class="keywordtype">bool</span> IsByref,</div>
+<div class="line"><a name="l00952"></a><span class="lineno">  952</span>                               <a class="code" href="classclang_1_1Qualifiers.html#a1280e3f4075ff54f856987cf002ba300">Qualifiers::ObjCLifetime</a> LifeTime,</div>
+<div class="line"><a name="l00953"></a><span class="lineno">  953</span>                               <a class="code" href="classclang_1_1CharUnits.html">CharUnits</a> FieldOffset,</div>
+<div class="line"><a name="l00954"></a><span class="lineno">  954</span>                               <a class="code" href="classclang_1_1CharUnits.html">CharUnits</a> FieldSize);</div>
+<div class="line"><a name="l00955"></a><span class="lineno">  955</span>   </div>
+<div class="line"><a name="l00956"></a><span class="lineno">  956</span>   <span class="keywordtype">void</span> BuildRCBlockVarRecordLayout(<span class="keyword">const</span> <a class="code" href="classclang_1_1RecordType.html">RecordType</a> *RT,</div>
+<div class="line"><a name="l00957"></a><span class="lineno">  957</span>                                    <a class="code" href="classclang_1_1CharUnits.html">CharUnits</a> BytePos, <span class="keywordtype">bool</span> &HasUnion,</div>
+<div class="line"><a name="l00958"></a><span class="lineno">  958</span>                                    <span class="keywordtype">bool</span> ByrefLayout=<span class="keyword">false</span>);</div>
+<div class="line"><a name="l00959"></a><span class="lineno">  959</span>   </div>
+<div class="line"><a name="l00960"></a><span class="lineno">  960</span>   <span class="keywordtype">void</span> BuildRCRecordLayout(<span class="keyword">const</span> llvm::StructLayout *RecLayout,</div>
+<div class="line"><a name="l00961"></a><span class="lineno">  961</span>                            <span class="keyword">const</span> <a class="code" href="classclang_1_1RecordDecl.html">RecordDecl</a> *RD,</div>
+<div class="line"><a name="l00962"></a><span class="lineno">  962</span>                            <a class="code" href="classllvm_1_1ArrayRef.html">ArrayRef<const FieldDecl*></a> RecFields,</div>
+<div class="line"><a name="l00963"></a><span class="lineno">  963</span>                            <a class="code" href="classclang_1_1CharUnits.html">CharUnits</a> BytePos, <span class="keywordtype">bool</span> &HasUnion,</div>
+<div class="line"><a name="l00964"></a><span class="lineno">  964</span>                            <span class="keywordtype">bool</span> ByrefLayout);</div>
+<div class="line"><a name="l00965"></a><span class="lineno">  965</span>   </div>
+<div class="line"><a name="l00966"></a><span class="lineno">  966</span>   uint64_t InlineLayoutInstruction(<a class="code" href="classllvm_1_1SmallVectorImpl.html">SmallVectorImpl<unsigned char></a> &Layout);</div>
+<div class="line"><a name="l00967"></a><span class="lineno">  967</span>   </div>
+<div class="line"><a name="l00968"></a><span class="lineno">  968</span>   llvm::Constant *getBitmapBlockLayout(<span class="keywordtype">bool</span> ComputeByrefLayout);</div>
+<div class="line"><a name="l00969"></a><span class="lineno">  969</span>   </div>
+<div class="line"><a name="l00970"></a><span class="lineno">  970</span> <span class="comment"></span></div>
+<div class="line"><a name="l00971"></a><span class="lineno">  971</span> <span class="comment">  /// GetIvarLayoutName - Returns a unique constant for the given</span></div>
+<div class="line"><a name="l00972"></a><span class="lineno">  972</span> <span class="comment">  /// ivar layout bitmap.</span></div>
+<div class="line"><a name="l00973"></a><span class="lineno">  973</span> <span class="comment"></span>  llvm::Constant *GetIvarLayoutName(<a class="code" href="classclang_1_1IdentifierInfo.html">IdentifierInfo</a> *Ident,</div>
+<div class="line"><a name="l00974"></a><span class="lineno">  974</span>                                     <span class="keyword">const</span> ObjCCommonTypesHelper &ObjCTypes);</div>
+<div class="line"><a name="l00975"></a><span class="lineno">  975</span> <span class="comment"></span></div>
+<div class="line"><a name="l00976"></a><span class="lineno">  976</span> <span class="comment">  /// EmitPropertyList - Emit the given property list. The return</span></div>
+<div class="line"><a name="l00977"></a><span class="lineno">  977</span> <span class="comment">  /// value has type PropertyListPtrTy.</span></div>
+<div class="line"><a name="l00978"></a><span class="lineno">  978</span> <span class="comment"></span>  llvm::Constant *EmitPropertyList(Twine Name,</div>
+<div class="line"><a name="l00979"></a><span class="lineno">  979</span>                                    <span class="keyword">const</span> <a class="code" href="classclang_1_1Decl.html">Decl</a> *Container,</div>
+<div class="line"><a name="l00980"></a><span class="lineno">  980</span>                                    <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCContainerDecl.html">ObjCContainerDecl</a> *OCD,</div>
+<div class="line"><a name="l00981"></a><span class="lineno">  981</span>                                    <span class="keyword">const</span> ObjCCommonTypesHelper &ObjCTypes);</div>
+<div class="line"><a name="l00982"></a><span class="lineno">  982</span> <span class="comment"></span></div>
+<div class="line"><a name="l00983"></a><span class="lineno">  983</span> <span class="comment">  /// EmitProtocolMethodTypes - Generate the array of extended method type </span></div>
+<div class="line"><a name="l00984"></a><span class="lineno">  984</span> <span class="comment">  /// strings. The return value has type Int8PtrPtrTy.</span></div>
+<div class="line"><a name="l00985"></a><span class="lineno">  985</span> <span class="comment"></span>  llvm::Constant *EmitProtocolMethodTypes(Twine Name, </div>
+<div class="line"><a name="l00986"></a><span class="lineno">  986</span>                                           <a class="code" href="classllvm_1_1ArrayRef.html">ArrayRef<llvm::Constant*></a> MethodTypes,</div>
+<div class="line"><a name="l00987"></a><span class="lineno">  987</span>                                        <span class="keyword">const</span> ObjCCommonTypesHelper &ObjCTypes);</div>
+<div class="line"><a name="l00988"></a><span class="lineno">  988</span> <span class="comment"></span></div>
+<div class="line"><a name="l00989"></a><span class="lineno">  989</span> <span class="comment">  /// PushProtocolProperties - Push protocol's property on the input stack.</span></div>
+<div class="line"><a name="l00990"></a><span class="lineno">  990</span> <span class="comment"></span>  <span class="keywordtype">void</span> PushProtocolProperties(</div>
+<div class="line"><a name="l00991"></a><span class="lineno">  991</span>     llvm::SmallPtrSet<const IdentifierInfo*, 16> &PropertySet,</div>
+<div class="line"><a name="l00992"></a><span class="lineno">  992</span>     <a class="code" href="classllvm_1_1SmallVectorImpl.html">SmallVectorImpl<llvm::Constant*></a> &Properties,</div>
+<div class="line"><a name="l00993"></a><span class="lineno">  993</span>     <span class="keyword">const</span> <a class="code" href="classclang_1_1Decl.html">Decl</a> *Container,</div>
+<div class="line"><a name="l00994"></a><span class="lineno">  994</span>     <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCProtocolDecl.html" title="Represents an Objective-C protocol declaration.">ObjCProtocolDecl</a> *PROTO,</div>
+<div class="line"><a name="l00995"></a><span class="lineno">  995</span>     <span class="keyword">const</span> ObjCCommonTypesHelper &ObjCTypes);</div>
+<div class="line"><a name="l00996"></a><span class="lineno">  996</span> <span class="comment"></span></div>
+<div class="line"><a name="l00997"></a><span class="lineno">  997</span> <span class="comment">  /// GetProtocolRef - Return a reference to the internal protocol</span></div>
+<div class="line"><a name="l00998"></a><span class="lineno">  998</span> <span class="comment">  /// description, creating an empty one if it has not been</span></div>
+<div class="line"><a name="l00999"></a><span class="lineno">  999</span> <span class="comment">  /// defined. The return value has type ProtocolPtrTy.</span></div>
+<div class="line"><a name="l01000"></a><span class="lineno"> 1000</span> <span class="comment"></span>  llvm::Constant *GetProtocolRef(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCProtocolDecl.html" title="Represents an Objective-C protocol declaration.">ObjCProtocolDecl</a> *PD);</div>
+<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span> <span class="comment"></span></div>
+<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span> <span class="comment">  /// CreateMetadataVar - Create a global variable with internal</span></div>
+<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span> <span class="comment">  /// linkage for use by the Objective-C runtime.</span></div>
+<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span> <span class="comment">  ///</span></div>
+<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span> <span class="comment">  /// This is a convenience wrapper which not only creates the</span></div>
+<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span> <span class="comment">  /// variable, but also sets the section and alignment and adds the</span></div>
+<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span> <span class="comment">  /// global to the "llvm.used" list.</span></div>
+<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span> <span class="comment">  ///</span></div>
+<div class="line"><a name="l01009"></a><span class="lineno"> 1009</span> <span class="comment">  /// \param Name - The variable name.</span></div>
+<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span> <span class="comment">  /// \param Init - The variable initializer; this is also used to</span></div>
+<div class="line"><a name="l01011"></a><span class="lineno"> 1011</span> <span class="comment">  /// define the type of the variable.</span></div>
+<div class="line"><a name="l01012"></a><span class="lineno"> 1012</span> <span class="comment">  /// \param Section - The section the variable should go into, or 0.</span></div>
+<div class="line"><a name="l01013"></a><span class="lineno"> 1013</span> <span class="comment">  /// \param Align - The alignment for the variable, or 0.</span></div>
+<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span> <span class="comment">  /// \param AddToUsed - Whether the variable should be added to</span></div>
+<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span> <span class="comment">  /// "llvm.used".</span></div>
+<div class="line"><a name="l01016"></a><span class="lineno"> 1016</span> <span class="comment"></span>  llvm::GlobalVariable *CreateMetadataVar(Twine Name,</div>
+<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span>                                           llvm::Constant *Init,</div>
+<div class="line"><a name="l01018"></a><span class="lineno"> 1018</span>                                           <span class="keyword">const</span> <span class="keywordtype">char</span> *Section,</div>
+<div class="line"><a name="l01019"></a><span class="lineno"> 1019</span>                                           <span class="keywordtype">unsigned</span> Align,</div>
+<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span>                                           <span class="keywordtype">bool</span> AddToUsed);</div>
+<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span> </div>
+<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span>   <a class="code" href="classclang_1_1CodeGen_1_1RValue.html">CodeGen::RValue</a> EmitMessageSend(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGen::CodeGenFunction</a> &CGF,</div>
+<div class="line"><a name="l01023"></a><span class="lineno"> 1023</span>                                   <a class="code" href="classclang_1_1CodeGen_1_1ReturnValueSlot.html">ReturnValueSlot</a> Return,</div>
+<div class="line"><a name="l01024"></a><span class="lineno"> 1024</span>                                   <a class="code" href="classclang_1_1QualType.html">QualType</a> ResultType,</div>
+<div class="line"><a name="l01025"></a><span class="lineno"> 1025</span>                                   <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *Sel,</div>
+<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span>                                   <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *Arg0,</div>
+<div class="line"><a name="l01027"></a><span class="lineno"> 1027</span>                                   <a class="code" href="classclang_1_1QualType.html">QualType</a> Arg0Ty,</div>
+<div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>                                   <span class="keywordtype">bool</span> IsSuper,</div>
+<div class="line"><a name="l01029"></a><span class="lineno"> 1029</span>                                   <span class="keyword">const</span> <a class="code" href="classclang_1_1CodeGen_1_1CallArgList.html">CallArgList</a> &CallArgs,</div>
+<div class="line"><a name="l01030"></a><span class="lineno"> 1030</span>                                   <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCMethodDecl.html">ObjCMethodDecl</a> *OMD,</div>
+<div class="line"><a name="l01031"></a><span class="lineno"> 1031</span>                                   <span class="keyword">const</span> ObjCCommonTypesHelper &ObjCTypes);</div>
+<div class="line"><a name="l01032"></a><span class="lineno"> 1032</span> <span class="comment"></span></div>
+<div class="line"><a name="l01033"></a><span class="lineno"> 1033</span> <span class="comment">  /// EmitImageInfo - Emit the image info marker used to encode some module</span></div>
+<div class="line"><a name="l01034"></a><span class="lineno"> 1034</span> <span class="comment">  /// level information.</span></div>
+<div class="line"><a name="l01035"></a><span class="lineno"> 1035</span> <span class="comment"></span>  <span class="keywordtype">void</span> EmitImageInfo();</div>
+<div class="line"><a name="l01036"></a><span class="lineno"> 1036</span> </div>
+<div class="line"><a name="l01037"></a><span class="lineno"> 1037</span> <span class="keyword">public</span>:</div>
+<div class="line"><a name="l01038"></a><span class="lineno"> 1038</span>   CGObjCCommonMac(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html">CodeGen::CodeGenModule</a> &cgm) :</div>
+<div class="line"><a name="l01039"></a><span class="lineno"> 1039</span>     <a class="code" href="classclang_1_1CodeGen_1_1CGObjCRuntime.html" title="Implements runtime-specific code generation functions.">CGObjCRuntime</a>(cgm), VMContext(cgm.getLLVMContext()) { }</div>
+<div class="line"><a name="l01040"></a><span class="lineno"> 1040</span> </div>
+<div class="line"><a name="l01041"></a><span class="lineno"> 1041</span>   <span class="keyword">virtual</span> llvm::Constant *GenerateConstantString(<span class="keyword">const</span> <a class="code" href="classclang_1_1StringLiteral.html">StringLiteral</a> *SL);</div>
+<div class="line"><a name="l01042"></a><span class="lineno"> 1042</span>   </div>
+<div class="line"><a name="l01043"></a><span class="lineno"> 1043</span>   <span class="keyword">virtual</span> llvm::Function *GenerateMethod(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCMethodDecl.html">ObjCMethodDecl</a> *OMD,</div>
+<div class="line"><a name="l01044"></a><span class="lineno"> 1044</span>                                          <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCContainerDecl.html">ObjCContainerDecl</a> *CD=0);</div>
+<div class="line"><a name="l01045"></a><span class="lineno"> 1045</span> </div>
+<div class="line"><a name="l01046"></a><span class="lineno"> 1046</span>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> GenerateProtocol(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCProtocolDecl.html" title="Represents an Objective-C protocol declaration.">ObjCProtocolDecl</a> *PD);</div>
+<div class="line"><a name="l01047"></a><span class="lineno"> 1047</span> <span class="comment"></span></div>
+<div class="line"><a name="l01048"></a><span class="lineno"> 1048</span> <span class="comment">  /// GetOrEmitProtocol - Get the protocol object for the given</span></div>
+<div class="line"><a name="l01049"></a><span class="lineno"> 1049</span> <span class="comment">  /// declaration, emitting it if necessary. The return value has type</span></div>
+<div class="line"><a name="l01050"></a><span class="lineno"> 1050</span> <span class="comment">  /// ProtocolPtrTy.</span></div>
+<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span> <span class="comment"></span>  <span class="keyword">virtual</span> llvm::Constant *GetOrEmitProtocol(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCProtocolDecl.html" title="Represents an Objective-C protocol declaration.">ObjCProtocolDecl</a> *PD)=0;</div>
+<div class="line"><a name="l01052"></a><span class="lineno"> 1052</span> <span class="comment"></span></div>
+<div class="line"><a name="l01053"></a><span class="lineno"> 1053</span> <span class="comment">  /// GetOrEmitProtocolRef - Get a forward reference to the protocol</span></div>
+<div class="line"><a name="l01054"></a><span class="lineno"> 1054</span> <span class="comment">  /// object for the given declaration, emitting it if needed. These</span></div>
+<div class="line"><a name="l01055"></a><span class="lineno"> 1055</span> <span class="comment">  /// forward references will be filled in with empty bodies if no</span></div>
+<div class="line"><a name="l01056"></a><span class="lineno"> 1056</span> <span class="comment">  /// definition is seen. The return value has type ProtocolPtrTy.</span></div>
+<div class="line"><a name="l01057"></a><span class="lineno"> 1057</span> <span class="comment"></span>  <span class="keyword">virtual</span> llvm::Constant *GetOrEmitProtocolRef(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCProtocolDecl.html" title="Represents an Objective-C protocol declaration.">ObjCProtocolDecl</a> *PD)=0;</div>
+<div class="line"><a name="l01058"></a><span class="lineno"> 1058</span>   <span class="keyword">virtual</span> llvm::Constant *BuildGCBlockLayout(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html">CodeGen::CodeGenModule</a> &CGM,</div>
+<div class="line"><a name="l01059"></a><span class="lineno"> 1059</span>                                              <span class="keyword">const</span> <a class="code" href="classclang_1_1CodeGen_1_1CGBlockInfo.html" title="CGBlockInfo - Information to generate a block literal.">CGBlockInfo</a> &blockInfo);</div>
+<div class="line"><a name="l01060"></a><span class="lineno"> 1060</span>   <span class="keyword">virtual</span> llvm::Constant *BuildRCBlockLayout(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html">CodeGen::CodeGenModule</a> &CGM,</div>
+<div class="line"><a name="l01061"></a><span class="lineno"> 1061</span>                                              <span class="keyword">const</span> <a class="code" href="classclang_1_1CodeGen_1_1CGBlockInfo.html" title="CGBlockInfo - Information to generate a block literal.">CGBlockInfo</a> &blockInfo);</div>
+<div class="line"><a name="l01062"></a><span class="lineno"> 1062</span>   </div>
+<div class="line"><a name="l01063"></a><span class="lineno"> 1063</span>   <span class="keyword">virtual</span> llvm::Constant *BuildByrefLayout(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html">CodeGen::CodeGenModule</a> &CGM,</div>
+<div class="line"><a name="l01064"></a><span class="lineno"> 1064</span>                                            <a class="code" href="classclang_1_1QualType.html">QualType</a> T);</div>
+<div class="line"><a name="l01065"></a><span class="lineno"> 1065</span> };</div>
+<div class="line"><a name="l01066"></a><span class="lineno"> 1066</span> </div>
+<div class="line"><a name="l01067"></a><span class="lineno"> 1067</span> <span class="keyword">class </span>CGObjCMac : <span class="keyword">public</span> CGObjCCommonMac {</div>
+<div class="line"><a name="l01068"></a><span class="lineno"> 1068</span> <span class="keyword">private</span>:</div>
+<div class="line"><a name="l01069"></a><span class="lineno"> 1069</span>   ObjCTypesHelper ObjCTypes;</div>
+<div class="line"><a name="l01070"></a><span class="lineno"> 1070</span> <span class="comment"></span></div>
+<div class="line"><a name="l01071"></a><span class="lineno"> 1071</span> <span class="comment">  /// EmitModuleInfo - Another marker encoding module level</span></div>
+<div class="line"><a name="l01072"></a><span class="lineno"> 1072</span> <span class="comment">  /// information.</span></div>
+<div class="line"><a name="l01073"></a><span class="lineno"> 1073</span> <span class="comment"></span>  <span class="keywordtype">void</span> EmitModuleInfo();</div>
+<div class="line"><a name="l01074"></a><span class="lineno"> 1074</span> <span class="comment"></span></div>
+<div class="line"><a name="l01075"></a><span class="lineno"> 1075</span> <span class="comment">  /// EmitModuleSymols - Emit module symbols, the list of defined</span></div>
+<div class="line"><a name="l01076"></a><span class="lineno"> 1076</span> <span class="comment">  /// classes and categories. The result has type SymtabPtrTy.</span></div>
+<div class="line"><a name="l01077"></a><span class="lineno"> 1077</span> <span class="comment"></span>  llvm::Constant *EmitModuleSymbols();</div>
+<div class="line"><a name="l01078"></a><span class="lineno"> 1078</span> <span class="comment"></span></div>
+<div class="line"><a name="l01079"></a><span class="lineno"> 1079</span> <span class="comment">  /// FinishModule - Write out global data structures at the end of</span></div>
+<div class="line"><a name="l01080"></a><span class="lineno"> 1080</span> <span class="comment">  /// processing a translation unit.</span></div>
+<div class="line"><a name="l01081"></a><span class="lineno"> 1081</span> <span class="comment"></span>  <span class="keywordtype">void</span> FinishModule();</div>
+<div class="line"><a name="l01082"></a><span class="lineno"> 1082</span> <span class="comment"></span></div>
+<div class="line"><a name="l01083"></a><span class="lineno"> 1083</span> <span class="comment">  /// EmitClassExtension - Generate the class extension structure used</span></div>
+<div class="line"><a name="l01084"></a><span class="lineno"> 1084</span> <span class="comment">  /// to store the weak ivar layout and properties. The return value</span></div>
+<div class="line"><a name="l01085"></a><span class="lineno"> 1085</span> <span class="comment">  /// has type ClassExtensionPtrTy.</span></div>
+<div class="line"><a name="l01086"></a><span class="lineno"> 1086</span> <span class="comment"></span>  llvm::Constant *EmitClassExtension(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCImplementationDecl.html">ObjCImplementationDecl</a> *<a class="code" href="namespaceclang_1_1LangAS.html#a78ee38b55acb7cc806cb61e6d2a9f960" title="Defines the set of possible language-specific address spaces.">ID</a>);</div>
+<div class="line"><a name="l01087"></a><span class="lineno"> 1087</span> <span class="comment"></span></div>
+<div class="line"><a name="l01088"></a><span class="lineno"> 1088</span> <span class="comment">  /// EmitClassRef - Return a Value*, of type ObjCTypes.ClassPtrTy,</span></div>
+<div class="line"><a name="l01089"></a><span class="lineno"> 1089</span> <span class="comment">  /// for the given class.</span></div>
+<div class="line"><a name="l01090"></a><span class="lineno"> 1090</span> <span class="comment"></span>  <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *EmitClassRef(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGenFunction</a> &CGF,</div>
+<div class="line"><a name="l01091"></a><span class="lineno"> 1091</span>                             <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCInterfaceDecl.html" title="Represents an ObjC class declaration.">ObjCInterfaceDecl</a> *<a class="code" href="namespaceclang_1_1LangAS.html#a78ee38b55acb7cc806cb61e6d2a9f960" title="Defines the set of possible language-specific address spaces.">ID</a>);</div>
+<div class="line"><a name="l01092"></a><span class="lineno"> 1092</span>   </div>
+<div class="line"><a name="l01093"></a><span class="lineno"> 1093</span>   <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *EmitClassRefFromId(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGenFunction</a> &CGF,</div>
+<div class="line"><a name="l01094"></a><span class="lineno"> 1094</span>                                   <a class="code" href="classclang_1_1IdentifierInfo.html">IdentifierInfo</a> *II);</div>
+<div class="line"><a name="l01095"></a><span class="lineno"> 1095</span>   </div>
+<div class="line"><a name="l01096"></a><span class="lineno"> 1096</span>   <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *EmitNSAutoreleasePoolClassRef(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGenFunction</a> &CGF);</div>
+<div class="line"><a name="l01097"></a><span class="lineno"> 1097</span>   <span class="comment"></span></div>
+<div class="line"><a name="l01098"></a><span class="lineno"> 1098</span> <span class="comment">  /// EmitSuperClassRef - Emits reference to class's main metadata class.</span></div>
+<div class="line"><a name="l01099"></a><span class="lineno"> 1099</span> <span class="comment"></span>  <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *EmitSuperClassRef(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCInterfaceDecl.html" title="Represents an ObjC class declaration.">ObjCInterfaceDecl</a> *<a class="code" href="namespaceclang_1_1LangAS.html#a78ee38b55acb7cc806cb61e6d2a9f960" title="Defines the set of possible language-specific address spaces.">ID</a>);</div>
+<div class="line"><a name="l01100"></a><span class="lineno"> 1100</span> <span class="comment"></span></div>
+<div class="line"><a name="l01101"></a><span class="lineno"> 1101</span> <span class="comment">  /// EmitIvarList - Emit the ivar list for the given</span></div>
+<div class="line"><a name="l01102"></a><span class="lineno"> 1102</span> <span class="comment">  /// implementation. If ForClass is true the list of class ivars</span></div>
+<div class="line"><a name="l01103"></a><span class="lineno"> 1103</span> <span class="comment">  /// (i.e. metaclass ivars) is emitted, otherwise the list of</span></div>
+<div class="line"><a name="l01104"></a><span class="lineno"> 1104</span> <span class="comment">  /// interface ivars will be emitted. The return value has type</span></div>
+<div class="line"><a name="l01105"></a><span class="lineno"> 1105</span> <span class="comment">  /// IvarListPtrTy.</span></div>
+<div class="line"><a name="l01106"></a><span class="lineno"> 1106</span> <span class="comment"></span>  llvm::Constant *EmitIvarList(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCImplementationDecl.html">ObjCImplementationDecl</a> *<a class="code" href="namespaceclang_1_1LangAS.html#a78ee38b55acb7cc806cb61e6d2a9f960" title="Defines the set of possible language-specific address spaces.">ID</a>,</div>
+<div class="line"><a name="l01107"></a><span class="lineno"> 1107</span>                                <span class="keywordtype">bool</span> ForClass);</div>
+<div class="line"><a name="l01108"></a><span class="lineno"> 1108</span> <span class="comment"></span></div>
+<div class="line"><a name="l01109"></a><span class="lineno"> 1109</span> <span class="comment">  /// EmitMetaClass - Emit a forward reference to the class structure</span></div>
+<div class="line"><a name="l01110"></a><span class="lineno"> 1110</span> <span class="comment">  /// for the metaclass of the given interface. The return value has</span></div>
+<div class="line"><a name="l01111"></a><span class="lineno"> 1111</span> <span class="comment">  /// type ClassPtrTy.</span></div>
+<div class="line"><a name="l01112"></a><span class="lineno"> 1112</span> <span class="comment"></span>  llvm::Constant *EmitMetaClassRef(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCInterfaceDecl.html" title="Represents an ObjC class declaration.">ObjCInterfaceDecl</a> *<a class="code" href="namespaceclang_1_1LangAS.html#a78ee38b55acb7cc806cb61e6d2a9f960" title="Defines the set of possible language-specific address spaces.">ID</a>);</div>
+<div class="line"><a name="l01113"></a><span class="lineno"> 1113</span> <span class="comment"></span></div>
+<div class="line"><a name="l01114"></a><span class="lineno"> 1114</span> <span class="comment">  /// EmitMetaClass - Emit a class structure for the metaclass of the</span></div>
+<div class="line"><a name="l01115"></a><span class="lineno"> 1115</span> <span class="comment">  /// given implementation. The return value has type ClassPtrTy.</span></div>
+<div class="line"><a name="l01116"></a><span class="lineno"> 1116</span> <span class="comment"></span>  llvm::Constant *EmitMetaClass(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCImplementationDecl.html">ObjCImplementationDecl</a> *<a class="code" href="namespaceclang_1_1LangAS.html#a78ee38b55acb7cc806cb61e6d2a9f960" title="Defines the set of possible language-specific address spaces.">ID</a>,</div>
+<div class="line"><a name="l01117"></a><span class="lineno"> 1117</span>                                 llvm::Constant *Protocols,</div>
+<div class="line"><a name="l01118"></a><span class="lineno"> 1118</span>                                 <a class="code" href="classllvm_1_1ArrayRef.html">ArrayRef<llvm::Constant*></a> Methods);</div>
+<div class="line"><a name="l01119"></a><span class="lineno"> 1119</span> </div>
+<div class="line"><a name="l01120"></a><span class="lineno"> 1120</span>   llvm::Constant *GetMethodConstant(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCMethodDecl.html">ObjCMethodDecl</a> *MD);</div>
+<div class="line"><a name="l01121"></a><span class="lineno"> 1121</span> </div>
+<div class="line"><a name="l01122"></a><span class="lineno"> 1122</span>   llvm::Constant *GetMethodDescriptionConstant(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCMethodDecl.html">ObjCMethodDecl</a> *MD);</div>
+<div class="line"><a name="l01123"></a><span class="lineno"> 1123</span> <span class="comment"></span></div>
+<div class="line"><a name="l01124"></a><span class="lineno"> 1124</span> <span class="comment">  /// EmitMethodList - Emit the method list for the given</span></div>
+<div class="line"><a name="l01125"></a><span class="lineno"> 1125</span> <span class="comment">  /// implementation. The return value has type MethodListPtrTy.</span></div>
+<div class="line"><a name="l01126"></a><span class="lineno"> 1126</span> <span class="comment"></span>  llvm::Constant *EmitMethodList(Twine Name,</div>
+<div class="line"><a name="l01127"></a><span class="lineno"> 1127</span>                                  <span class="keyword">const</span> <span class="keywordtype">char</span> *Section,</div>
+<div class="line"><a name="l01128"></a><span class="lineno"> 1128</span>                                  <a class="code" href="classllvm_1_1ArrayRef.html">ArrayRef<llvm::Constant*></a> Methods);</div>
+<div class="line"><a name="l01129"></a><span class="lineno"> 1129</span> <span class="comment"></span></div>
+<div class="line"><a name="l01130"></a><span class="lineno"> 1130</span> <span class="comment">  /// EmitMethodDescList - Emit a method description list for a list of</span></div>
+<div class="line"><a name="l01131"></a><span class="lineno"> 1131</span> <span class="comment">  /// method declarations.</span></div>
+<div class="line"><a name="l01132"></a><span class="lineno"> 1132</span> <span class="comment">  ///  - TypeName: The name for the type containing the methods.</span></div>
+<div class="line"><a name="l01133"></a><span class="lineno"> 1133</span> <span class="comment">  ///  - IsProtocol: True iff these methods are for a protocol.</span></div>
+<div class="line"><a name="l01134"></a><span class="lineno"> 1134</span> <span class="comment">  ///  - ClassMethds: True iff these are class methods.</span></div>
+<div class="line"><a name="l01135"></a><span class="lineno"> 1135</span> <span class="comment">  ///  - Required: When true, only "required" methods are</span></div>
+<div class="line"><a name="l01136"></a><span class="lineno"> 1136</span> <span class="comment">  ///    listed. Similarly, when false only "optional" methods are</span></div>
+<div class="line"><a name="l01137"></a><span class="lineno"> 1137</span> <span class="comment">  ///    listed. For classes this should always be true.</span></div>
+<div class="line"><a name="l01138"></a><span class="lineno"> 1138</span> <span class="comment">  ///  - begin, end: The method list to output.</span></div>
+<div class="line"><a name="l01139"></a><span class="lineno"> 1139</span> <span class="comment">  ///</span></div>
+<div class="line"><a name="l01140"></a><span class="lineno"> 1140</span> <span class="comment">  /// The return value has type MethodDescriptionListPtrTy.</span></div>
+<div class="line"><a name="l01141"></a><span class="lineno"> 1141</span> <span class="comment"></span>  llvm::Constant *EmitMethodDescList(Twine Name,</div>
+<div class="line"><a name="l01142"></a><span class="lineno"> 1142</span>                                      <span class="keyword">const</span> <span class="keywordtype">char</span> *Section,</div>
+<div class="line"><a name="l01143"></a><span class="lineno"> 1143</span>                                      <a class="code" href="classllvm_1_1ArrayRef.html">ArrayRef<llvm::Constant*></a> Methods);</div>
+<div class="line"><a name="l01144"></a><span class="lineno"> 1144</span> <span class="comment"></span></div>
+<div class="line"><a name="l01145"></a><span class="lineno"> 1145</span> <span class="comment">  /// GetOrEmitProtocol - Get the protocol object for the given</span></div>
+<div class="line"><a name="l01146"></a><span class="lineno"> 1146</span> <span class="comment">  /// declaration, emitting it if necessary. The return value has type</span></div>
+<div class="line"><a name="l01147"></a><span class="lineno"> 1147</span> <span class="comment">  /// ProtocolPtrTy.</span></div>
+<div class="line"><a name="l01148"></a><span class="lineno"> 1148</span> <span class="comment"></span>  <span class="keyword">virtual</span> llvm::Constant *GetOrEmitProtocol(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCProtocolDecl.html" title="Represents an Objective-C protocol declaration.">ObjCProtocolDecl</a> *PD);</div>
+<div class="line"><a name="l01149"></a><span class="lineno"> 1149</span> <span class="comment"></span></div>
+<div class="line"><a name="l01150"></a><span class="lineno"> 1150</span> <span class="comment">  /// GetOrEmitProtocolRef - Get a forward reference to the protocol</span></div>
+<div class="line"><a name="l01151"></a><span class="lineno"> 1151</span> <span class="comment">  /// object for the given declaration, emitting it if needed. These</span></div>
+<div class="line"><a name="l01152"></a><span class="lineno"> 1152</span> <span class="comment">  /// forward references will be filled in with empty bodies if no</span></div>
+<div class="line"><a name="l01153"></a><span class="lineno"> 1153</span> <span class="comment">  /// definition is seen. The return value has type ProtocolPtrTy.</span></div>
+<div class="line"><a name="l01154"></a><span class="lineno"> 1154</span> <span class="comment"></span>  <span class="keyword">virtual</span> llvm::Constant *GetOrEmitProtocolRef(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCProtocolDecl.html" title="Represents an Objective-C protocol declaration.">ObjCProtocolDecl</a> *PD);</div>
+<div class="line"><a name="l01155"></a><span class="lineno"> 1155</span> <span class="comment"></span></div>
+<div class="line"><a name="l01156"></a><span class="lineno"> 1156</span> <span class="comment">  /// EmitProtocolExtension - Generate the protocol extension</span></div>
+<div class="line"><a name="l01157"></a><span class="lineno"> 1157</span> <span class="comment">  /// structure used to store optional instance and class methods, and</span></div>
+<div class="line"><a name="l01158"></a><span class="lineno"> 1158</span> <span class="comment">  /// protocol properties. The return value has type</span></div>
+<div class="line"><a name="l01159"></a><span class="lineno"> 1159</span> <span class="comment">  /// ProtocolExtensionPtrTy.</span></div>
+<div class="line"><a name="l01160"></a><span class="lineno"> 1160</span> <span class="comment"></span>  llvm::Constant *</div>
+<div class="line"><a name="l01161"></a><span class="lineno"> 1161</span>   EmitProtocolExtension(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCProtocolDecl.html" title="Represents an Objective-C protocol declaration.">ObjCProtocolDecl</a> *PD,</div>
+<div class="line"><a name="l01162"></a><span class="lineno"> 1162</span>                         <a class="code" href="classllvm_1_1ArrayRef.html">ArrayRef<llvm::Constant*></a> OptInstanceMethods,</div>
+<div class="line"><a name="l01163"></a><span class="lineno"> 1163</span>                         <a class="code" href="classllvm_1_1ArrayRef.html">ArrayRef<llvm::Constant*></a> OptClassMethods,</div>
+<div class="line"><a name="l01164"></a><span class="lineno"> 1164</span>                         <a class="code" href="classllvm_1_1ArrayRef.html">ArrayRef<llvm::Constant*></a> MethodTypesExt);</div>
+<div class="line"><a name="l01165"></a><span class="lineno"> 1165</span> <span class="comment"></span></div>
+<div class="line"><a name="l01166"></a><span class="lineno"> 1166</span> <span class="comment">  /// EmitProtocolList - Generate the list of referenced</span></div>
+<div class="line"><a name="l01167"></a><span class="lineno"> 1167</span> <span class="comment">  /// protocols. The return value has type ProtocolListPtrTy.</span></div>
+<div class="line"><a name="l01168"></a><span class="lineno"> 1168</span> <span class="comment"></span>  llvm::Constant *EmitProtocolList(Twine Name,</div>
+<div class="line"><a name="l01169"></a><span class="lineno"> 1169</span>                                    <a class="code" href="classclang_1_1ObjCProtocolDecl.html#adbd4b44a478f573a24072123f93b2fe9">ObjCProtocolDecl::protocol_iterator</a> begin,</div>
+<div class="line"><a name="l01170"></a><span class="lineno"> 1170</span>                                    <a class="code" href="classclang_1_1ObjCProtocolDecl.html#adbd4b44a478f573a24072123f93b2fe9">ObjCProtocolDecl::protocol_iterator</a> end);</div>
+<div class="line"><a name="l01171"></a><span class="lineno"> 1171</span> <span class="comment"></span></div>
+<div class="line"><a name="l01172"></a><span class="lineno"> 1172</span> <span class="comment">  /// EmitSelector - Return a Value*, of type ObjCTypes.SelectorPtrTy,</span></div>
+<div class="line"><a name="l01173"></a><span class="lineno"> 1173</span> <span class="comment">  /// for the given selector.</span></div>
+<div class="line"><a name="l01174"></a><span class="lineno"> 1174</span> <span class="comment"></span>  <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *EmitSelector(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGenFunction</a> &CGF, <a class="code" href="classclang_1_1Selector.html" title="Smart pointer class that efficiently represents Objective-C method names.">Selector</a> Sel, </div>
+<div class="line"><a name="l01175"></a><span class="lineno"> 1175</span>                             <span class="keywordtype">bool</span> lval=<span class="keyword">false</span>);</div>
+<div class="line"><a name="l01176"></a><span class="lineno"> 1176</span> </div>
+<div class="line"><a name="l01177"></a><span class="lineno"> 1177</span> <span class="keyword">public</span>:</div>
+<div class="line"><a name="l01178"></a><span class="lineno"> 1178</span>   CGObjCMac(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html">CodeGen::CodeGenModule</a> &cgm);</div>
+<div class="line"><a name="l01179"></a><span class="lineno"> 1179</span> </div>
+<div class="line"><a name="l01180"></a><span class="lineno"> 1180</span>   <span class="keyword">virtual</span> llvm::Function *ModuleInitFunction();</div>
+<div class="line"><a name="l01181"></a><span class="lineno"> 1181</span> </div>
+<div class="line"><a name="l01182"></a><span class="lineno"> 1182</span>   <span class="keyword">virtual</span> <a class="code" href="classclang_1_1CodeGen_1_1RValue.html">CodeGen::RValue</a> GenerateMessageSend(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGen::CodeGenFunction</a> &CGF,</div>
+<div class="line"><a name="l01183"></a><span class="lineno"> 1183</span>                                               <a class="code" href="classclang_1_1CodeGen_1_1ReturnValueSlot.html">ReturnValueSlot</a> Return,</div>
+<div class="line"><a name="l01184"></a><span class="lineno"> 1184</span>                                               <a class="code" href="classclang_1_1QualType.html">QualType</a> ResultType,</div>
+<div class="line"><a name="l01185"></a><span class="lineno"> 1185</span>                                               <a class="code" href="classclang_1_1Selector.html" title="Smart pointer class that efficiently represents Objective-C method names.">Selector</a> Sel,</div>
+<div class="line"><a name="l01186"></a><span class="lineno"> 1186</span>                                               <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *Receiver,</div>
+<div class="line"><a name="l01187"></a><span class="lineno"> 1187</span>                                               <span class="keyword">const</span> <a class="code" href="classclang_1_1CodeGen_1_1CallArgList.html">CallArgList</a> &CallArgs,</div>
+<div class="line"><a name="l01188"></a><span class="lineno"> 1188</span>                                               <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCInterfaceDecl.html" title="Represents an ObjC class declaration.">ObjCInterfaceDecl</a> *Class,</div>
+<div class="line"><a name="l01189"></a><span class="lineno"> 1189</span>                                               <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCMethodDecl.html">ObjCMethodDecl</a> *Method);</div>
+<div class="line"><a name="l01190"></a><span class="lineno"> 1190</span> </div>
+<div class="line"><a name="l01191"></a><span class="lineno"> 1191</span>   <span class="keyword">virtual</span> <a class="code" href="classclang_1_1CodeGen_1_1RValue.html">CodeGen::RValue</a></div>
+<div class="line"><a name="l01192"></a><span class="lineno"> 1192</span>   GenerateMessageSendSuper(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGen::CodeGenFunction</a> &CGF,</div>
+<div class="line"><a name="l01193"></a><span class="lineno"> 1193</span>                            <a class="code" href="classclang_1_1CodeGen_1_1ReturnValueSlot.html">ReturnValueSlot</a> Return,</div>
+<div class="line"><a name="l01194"></a><span class="lineno"> 1194</span>                            <a class="code" href="classclang_1_1QualType.html">QualType</a> ResultType,</div>
+<div class="line"><a name="l01195"></a><span class="lineno"> 1195</span>                            <a class="code" href="classclang_1_1Selector.html" title="Smart pointer class that efficiently represents Objective-C method names.">Selector</a> Sel,</div>
+<div class="line"><a name="l01196"></a><span class="lineno"> 1196</span>                            <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCInterfaceDecl.html" title="Represents an ObjC class declaration.">ObjCInterfaceDecl</a> *Class,</div>
+<div class="line"><a name="l01197"></a><span class="lineno"> 1197</span>                            <span class="keywordtype">bool</span> isCategoryImpl,</div>
+<div class="line"><a name="l01198"></a><span class="lineno"> 1198</span>                            <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *Receiver,</div>
+<div class="line"><a name="l01199"></a><span class="lineno"> 1199</span>                            <span class="keywordtype">bool</span> IsClassMessage,</div>
+<div class="line"><a name="l01200"></a><span class="lineno"> 1200</span>                            <span class="keyword">const</span> <a class="code" href="classclang_1_1CodeGen_1_1CallArgList.html">CallArgList</a> &CallArgs,</div>
+<div class="line"><a name="l01201"></a><span class="lineno"> 1201</span>                            <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCMethodDecl.html">ObjCMethodDecl</a> *Method);</div>
+<div class="line"><a name="l01202"></a><span class="lineno"> 1202</span> </div>
+<div class="line"><a name="l01203"></a><span class="lineno"> 1203</span>   <span class="keyword">virtual</span> <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *GetClass(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGenFunction</a> &CGF,</div>
+<div class="line"><a name="l01204"></a><span class="lineno"> 1204</span>                                 <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCInterfaceDecl.html" title="Represents an ObjC class declaration.">ObjCInterfaceDecl</a> *<a class="code" href="namespaceclang_1_1LangAS.html#a78ee38b55acb7cc806cb61e6d2a9f960" title="Defines the set of possible language-specific address spaces.">ID</a>);</div>
+<div class="line"><a name="l01205"></a><span class="lineno"> 1205</span> </div>
+<div class="line"><a name="l01206"></a><span class="lineno"> 1206</span>   <span class="keyword">virtual</span> <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *GetSelector(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGenFunction</a> &CGF, <a class="code" href="classclang_1_1Selector.html" title="Smart pointer class that efficiently represents Objective-C method names.">Selector</a> Sel, </div>
+<div class="line"><a name="l01207"></a><span class="lineno"> 1207</span>                                    <span class="keywordtype">bool</span> lval = <span class="keyword">false</span>);</div>
+<div class="line"><a name="l01208"></a><span class="lineno"> 1208</span> <span class="comment"></span></div>
+<div class="line"><a name="l01209"></a><span class="lineno"> 1209</span> <span class="comment">  /// The NeXT/Apple runtimes do not support typed selectors; just emit an</span></div>
+<div class="line"><a name="l01210"></a><span class="lineno"> 1210</span> <span class="comment">  /// untyped one.</span></div>
+<div class="line"><a name="l01211"></a><span class="lineno"> 1211</span> <span class="comment"></span>  <span class="keyword">virtual</span> <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *GetSelector(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGenFunction</a> &CGF,</div>
+<div class="line"><a name="l01212"></a><span class="lineno"> 1212</span>                                    <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCMethodDecl.html">ObjCMethodDecl</a> *Method);</div>
+<div class="line"><a name="l01213"></a><span class="lineno"> 1213</span> </div>
+<div class="line"><a name="l01214"></a><span class="lineno"> 1214</span>   <span class="keyword">virtual</span> llvm::Constant *GetEHType(<a class="code" href="classclang_1_1QualType.html">QualType</a> T);</div>
+<div class="line"><a name="l01215"></a><span class="lineno"> 1215</span> </div>
+<div class="line"><a name="l01216"></a><span class="lineno"> 1216</span>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> GenerateCategory(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCCategoryImplDecl.html">ObjCCategoryImplDecl</a> *CMD);</div>
+<div class="line"><a name="l01217"></a><span class="lineno"> 1217</span> </div>
+<div class="line"><a name="l01218"></a><span class="lineno"> 1218</span>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> GenerateClass(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCImplementationDecl.html">ObjCImplementationDecl</a> *ClassDecl);</div>
+<div class="line"><a name="l01219"></a><span class="lineno"> 1219</span> </div>
+<div class="line"><a name="l01220"></a><span class="lineno"> 1220</span>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> RegisterAlias(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCCompatibleAliasDecl.html">ObjCCompatibleAliasDecl</a> *OAD) {}</div>
+<div class="line"><a name="l01221"></a><span class="lineno"> 1221</span> </div>
+<div class="line"><a name="l01222"></a><span class="lineno"> 1222</span>   <span class="keyword">virtual</span> <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *GenerateProtocolRef(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGenFunction</a> &CGF,</div>
+<div class="line"><a name="l01223"></a><span class="lineno"> 1223</span>                                            <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCProtocolDecl.html" title="Represents an Objective-C protocol declaration.">ObjCProtocolDecl</a> *PD);</div>
+<div class="line"><a name="l01224"></a><span class="lineno"> 1224</span> </div>
+<div class="line"><a name="l01225"></a><span class="lineno"> 1225</span>   <span class="keyword">virtual</span> llvm::Constant *GetPropertyGetFunction();</div>
+<div class="line"><a name="l01226"></a><span class="lineno"> 1226</span>   <span class="keyword">virtual</span> llvm::Constant *GetPropertySetFunction();</div>
+<div class="line"><a name="l01227"></a><span class="lineno"> 1227</span>   <span class="keyword">virtual</span> llvm::Constant *GetOptimizedPropertySetFunction(<span class="keywordtype">bool</span> atomic, </div>
+<div class="line"><a name="l01228"></a><span class="lineno"> 1228</span>                                                           <span class="keywordtype">bool</span> copy);</div>
+<div class="line"><a name="l01229"></a><span class="lineno"> 1229</span>   <span class="keyword">virtual</span> llvm::Constant *GetGetStructFunction();</div>
+<div class="line"><a name="l01230"></a><span class="lineno"> 1230</span>   <span class="keyword">virtual</span> llvm::Constant *GetSetStructFunction();</div>
+<div class="line"><a name="l01231"></a><span class="lineno"> 1231</span>   <span class="keyword">virtual</span> llvm::Constant *GetCppAtomicObjectGetFunction();</div>
+<div class="line"><a name="l01232"></a><span class="lineno"> 1232</span>   <span class="keyword">virtual</span> llvm::Constant *GetCppAtomicObjectSetFunction();</div>
+<div class="line"><a name="l01233"></a><span class="lineno"> 1233</span>   <span class="keyword">virtual</span> llvm::Constant *EnumerationMutationFunction();</div>
+<div class="line"><a name="l01234"></a><span class="lineno"> 1234</span> </div>
+<div class="line"><a name="l01235"></a><span class="lineno"> 1235</span>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> EmitTryStmt(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGen::CodeGenFunction</a> &CGF,</div>
+<div class="line"><a name="l01236"></a><span class="lineno"> 1236</span>                            <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCAtTryStmt.html" title="Represents Objective-C's @try ... @catch ... @finally statement.">ObjCAtTryStmt</a> &<a class="code" href="AnalysisBasedWarnings_8cpp.html#a33dc45a03958a0bf07b5da2dec4db648">S</a>);</div>
+<div class="line"><a name="l01237"></a><span class="lineno"> 1237</span>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> EmitSynchronizedStmt(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGen::CodeGenFunction</a> &CGF,</div>
+<div class="line"><a name="l01238"></a><span class="lineno"> 1238</span>                                     <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCAtSynchronizedStmt.html" title="Represents Objective-C's @synchronized statement.">ObjCAtSynchronizedStmt</a> &<a class="code" href="AnalysisBasedWarnings_8cpp.html#a33dc45a03958a0bf07b5da2dec4db648">S</a>);</div>
+<div class="line"><a name="l01239"></a><span class="lineno"> 1239</span>   <span class="keywordtype">void</span> EmitTryOrSynchronizedStmt(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGen::CodeGenFunction</a> &CGF, <span class="keyword">const</span> <a class="code" href="classclang_1_1Stmt.html">Stmt</a> &<a class="code" href="AnalysisBasedWarnings_8cpp.html#a33dc45a03958a0bf07b5da2dec4db648">S</a>);</div>
+<div class="line"><a name="l01240"></a><span class="lineno"> 1240</span>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> EmitThrowStmt(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGen::CodeGenFunction</a> &CGF,</div>
+<div class="line"><a name="l01241"></a><span class="lineno"> 1241</span>                              <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCAtThrowStmt.html" title="Represents Objective-C's @throw statement.">ObjCAtThrowStmt</a> &<a class="code" href="AnalysisBasedWarnings_8cpp.html#a33dc45a03958a0bf07b5da2dec4db648">S</a>,</div>
+<div class="line"><a name="l01242"></a><span class="lineno"> 1242</span>                              <span class="keywordtype">bool</span> ClearInsertionPoint=<span class="keyword">true</span>);</div>
+<div class="line"><a name="l01243"></a><span class="lineno"> 1243</span>   <span class="keyword">virtual</span> <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> * EmitObjCWeakRead(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGen::CodeGenFunction</a> &CGF,</div>
+<div class="line"><a name="l01244"></a><span class="lineno"> 1244</span>                                          <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *AddrWeakObj);</div>
+<div class="line"><a name="l01245"></a><span class="lineno"> 1245</span>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> EmitObjCWeakAssign(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGen::CodeGenFunction</a> &CGF,</div>
+<div class="line"><a name="l01246"></a><span class="lineno"> 1246</span>                                   <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *src, <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *dst);</div>
+<div class="line"><a name="l01247"></a><span class="lineno"> 1247</span>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> EmitObjCGlobalAssign(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGen::CodeGenFunction</a> &CGF,</div>
+<div class="line"><a name="l01248"></a><span class="lineno"> 1248</span>                                     <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *src, <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *dest,</div>
+<div class="line"><a name="l01249"></a><span class="lineno"> 1249</span>                                     <span class="keywordtype">bool</span> threadlocal = <span class="keyword">false</span>);</div>
+<div class="line"><a name="l01250"></a><span class="lineno"> 1250</span>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> EmitObjCIvarAssign(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGen::CodeGenFunction</a> &CGF,</div>
+<div class="line"><a name="l01251"></a><span class="lineno"> 1251</span>                                   <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *src, <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *dest,</div>
+<div class="line"><a name="l01252"></a><span class="lineno"> 1252</span>                                   <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *ivarOffset);</div>
+<div class="line"><a name="l01253"></a><span class="lineno"> 1253</span>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> EmitObjCStrongCastAssign(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGen::CodeGenFunction</a> &CGF,</div>
+<div class="line"><a name="l01254"></a><span class="lineno"> 1254</span>                                         <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *src, <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *dest);</div>
+<div class="line"><a name="l01255"></a><span class="lineno"> 1255</span>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> EmitGCMemmoveCollectable(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGen::CodeGenFunction</a> &CGF,</div>
+<div class="line"><a name="l01256"></a><span class="lineno"> 1256</span>                                         <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *dest, <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *src,</div>
+<div class="line"><a name="l01257"></a><span class="lineno"> 1257</span>                                         <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *size);</div>
+<div class="line"><a name="l01258"></a><span class="lineno"> 1258</span> </div>
+<div class="line"><a name="l01259"></a><span class="lineno"> 1259</span>   <span class="keyword">virtual</span> <a class="code" href="classclang_1_1CodeGen_1_1LValue.html">LValue</a> EmitObjCValueForIvar(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGen::CodeGenFunction</a> &CGF,</div>
+<div class="line"><a name="l01260"></a><span class="lineno"> 1260</span>                                       <a class="code" href="classclang_1_1QualType.html">QualType</a> ObjectTy,</div>
+<div class="line"><a name="l01261"></a><span class="lineno"> 1261</span>                                       <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *BaseValue,</div>
+<div class="line"><a name="l01262"></a><span class="lineno"> 1262</span>                                       <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCIvarDecl.html">ObjCIvarDecl</a> *Ivar,</div>
+<div class="line"><a name="l01263"></a><span class="lineno"> 1263</span>                                       <span class="keywordtype">unsigned</span> CVRQualifiers);</div>
+<div class="line"><a name="l01264"></a><span class="lineno"> 1264</span>   <span class="keyword">virtual</span> <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *EmitIvarOffset(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGen::CodeGenFunction</a> &CGF,</div>
+<div class="line"><a name="l01265"></a><span class="lineno"> 1265</span>                                       <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCInterfaceDecl.html" title="Represents an ObjC class declaration.">ObjCInterfaceDecl</a> *Interface,</div>
+<div class="line"><a name="l01266"></a><span class="lineno"> 1266</span>                                       <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCIvarDecl.html">ObjCIvarDecl</a> *Ivar);</div>
+<div class="line"><a name="l01267"></a><span class="lineno"> 1267</span>   <span class="comment"></span></div>
+<div class="line"><a name="l01268"></a><span class="lineno"> 1268</span> <span class="comment">  /// GetClassGlobal - Return the global variable for the Objective-C</span></div>
+<div class="line"><a name="l01269"></a><span class="lineno"> 1269</span> <span class="comment">  /// class of the given name.</span></div>
+<div class="line"><a name="l01270"></a><span class="lineno"> 1270</span> <span class="comment"></span>  <span class="keyword">virtual</span> llvm::GlobalVariable *GetClassGlobal(<span class="keyword">const</span> std::string &Name) {</div>
+<div class="line"><a name="l01271"></a><span class="lineno"> 1271</span>     llvm_unreachable(<span class="stringliteral">"CGObjCMac::GetClassGlobal"</span>);</div>
+<div class="line"><a name="l01272"></a><span class="lineno"> 1272</span>   }</div>
+<div class="line"><a name="l01273"></a><span class="lineno"> 1273</span> };</div>
+<div class="line"><a name="l01274"></a><span class="lineno"> 1274</span> </div>
+<div class="line"><a name="l01275"></a><span class="lineno"> 1275</span> <span class="keyword">class </span>CGObjCNonFragileABIMac : <span class="keyword">public</span> CGObjCCommonMac {</div>
+<div class="line"><a name="l01276"></a><span class="lineno"> 1276</span> <span class="keyword">private</span>:</div>
+<div class="line"><a name="l01277"></a><span class="lineno"> 1277</span>   ObjCNonFragileABITypesHelper ObjCTypes;</div>
+<div class="line"><a name="l01278"></a><span class="lineno"> 1278</span>   llvm::GlobalVariable* ObjCEmptyCacheVar;</div>
+<div class="line"><a name="l01279"></a><span class="lineno"> 1279</span>   llvm::GlobalVariable* ObjCEmptyVtableVar;</div>
+<div class="line"><a name="l01280"></a><span class="lineno"> 1280</span> <span class="comment"></span></div>
+<div class="line"><a name="l01281"></a><span class="lineno"> 1281</span> <span class="comment">  /// SuperClassReferences - uniqued super class references.</span></div>
+<div class="line"><a name="l01282"></a><span class="lineno"> 1282</span> <span class="comment"></span>  llvm::DenseMap<IdentifierInfo*, llvm::GlobalVariable*> SuperClassReferences;</div>
+<div class="line"><a name="l01283"></a><span class="lineno"> 1283</span> <span class="comment"></span></div>
+<div class="line"><a name="l01284"></a><span class="lineno"> 1284</span> <span class="comment">  /// MetaClassReferences - uniqued meta class references.</span></div>
+<div class="line"><a name="l01285"></a><span class="lineno"> 1285</span> <span class="comment"></span>  llvm::DenseMap<IdentifierInfo*, llvm::GlobalVariable*> MetaClassReferences;</div>
+<div class="line"><a name="l01286"></a><span class="lineno"> 1286</span> <span class="comment"></span></div>
+<div class="line"><a name="l01287"></a><span class="lineno"> 1287</span> <span class="comment">  /// EHTypeReferences - uniqued class ehtype references.</span></div>
+<div class="line"><a name="l01288"></a><span class="lineno"> 1288</span> <span class="comment"></span>  llvm::DenseMap<IdentifierInfo*, llvm::GlobalVariable*> EHTypeReferences;</div>
+<div class="line"><a name="l01289"></a><span class="lineno"> 1289</span> <span class="comment"></span></div>
+<div class="line"><a name="l01290"></a><span class="lineno"> 1290</span> <span class="comment">  /// VTableDispatchMethods - List of methods for which we generate</span></div>
+<div class="line"><a name="l01291"></a><span class="lineno"> 1291</span> <span class="comment">  /// vtable-based message dispatch.</span></div>
+<div class="line"><a name="l01292"></a><span class="lineno"> 1292</span> <span class="comment"></span>  <a class="code" href="classllvm_1_1DenseSet.html">llvm::DenseSet<Selector></a> VTableDispatchMethods;</div>
+<div class="line"><a name="l01293"></a><span class="lineno"> 1293</span> <span class="comment"></span></div>
+<div class="line"><a name="l01294"></a><span class="lineno"> 1294</span> <span class="comment">  /// DefinedMetaClasses - List of defined meta-classes.</span></div>
+<div class="line"><a name="l01295"></a><span class="lineno"> 1295</span> <span class="comment"></span>  std::vector<llvm::GlobalValue*> DefinedMetaClasses;</div>
+<div class="line"><a name="l01296"></a><span class="lineno"> 1296</span>   <span class="comment"></span></div>
+<div class="line"><a name="l01297"></a><span class="lineno"> 1297</span> <span class="comment">  /// isVTableDispatchedSelector - Returns true if SEL is a</span></div>
+<div class="line"><a name="l01298"></a><span class="lineno"> 1298</span> <span class="comment">  /// vtable-based selector.</span></div>
+<div class="line"><a name="l01299"></a><span class="lineno"> 1299</span> <span class="comment"></span>  <span class="keywordtype">bool</span> isVTableDispatchedSelector(<a class="code" href="classclang_1_1Selector.html" title="Smart pointer class that efficiently represents Objective-C method names.">Selector</a> Sel);</div>
+<div class="line"><a name="l01300"></a><span class="lineno"> 1300</span> <span class="comment"></span></div>
+<div class="line"><a name="l01301"></a><span class="lineno"> 1301</span> <span class="comment">  /// FinishNonFragileABIModule - Write out global data structures at the end of</span></div>
+<div class="line"><a name="l01302"></a><span class="lineno"> 1302</span> <span class="comment">  /// processing a translation unit.</span></div>
+<div class="line"><a name="l01303"></a><span class="lineno"> 1303</span> <span class="comment"></span>  <span class="keywordtype">void</span> FinishNonFragileABIModule();</div>
+<div class="line"><a name="l01304"></a><span class="lineno"> 1304</span> <span class="comment"></span></div>
+<div class="line"><a name="l01305"></a><span class="lineno"> 1305</span> <span class="comment">  /// AddModuleClassList - Add the given list of class pointers to the</span></div>
+<div class="line"><a name="l01306"></a><span class="lineno"> 1306</span> <span class="comment">  /// module with the provided symbol and section names.</span></div>
+<div class="line"><a name="l01307"></a><span class="lineno"> 1307</span> <span class="comment"></span>  <span class="keywordtype">void</span> AddModuleClassList(<a class="code" href="classllvm_1_1ArrayRef.html">ArrayRef<llvm::GlobalValue*></a> Container,</div>
+<div class="line"><a name="l01308"></a><span class="lineno"> 1308</span>                           <span class="keyword">const</span> <span class="keywordtype">char</span> *SymbolName,</div>
+<div class="line"><a name="l01309"></a><span class="lineno"> 1309</span>                           <span class="keyword">const</span> <span class="keywordtype">char</span> *SectionName);</div>
+<div class="line"><a name="l01310"></a><span class="lineno"> 1310</span> </div>
+<div class="line"><a name="l01311"></a><span class="lineno"> 1311</span>   llvm::GlobalVariable * BuildClassRoTInitializer(<span class="keywordtype">unsigned</span> flags,</div>
+<div class="line"><a name="l01312"></a><span class="lineno"> 1312</span>                                               <span class="keywordtype">unsigned</span> InstanceStart,</div>
+<div class="line"><a name="l01313"></a><span class="lineno"> 1313</span>                                               <span class="keywordtype">unsigned</span> InstanceSize,</div>
+<div class="line"><a name="l01314"></a><span class="lineno"> 1314</span>                                               <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCImplementationDecl.html">ObjCImplementationDecl</a> *<a class="code" href="namespaceclang_1_1LangAS.html#a78ee38b55acb7cc806cb61e6d2a9f960" title="Defines the set of possible language-specific address spaces.">ID</a>);</div>
+<div class="line"><a name="l01315"></a><span class="lineno"> 1315</span>   llvm::GlobalVariable * BuildClassMetaData(std::string &ClassName,</div>
+<div class="line"><a name="l01316"></a><span class="lineno"> 1316</span>                                             llvm::Constant *IsAGV,</div>
+<div class="line"><a name="l01317"></a><span class="lineno"> 1317</span>                                             llvm::Constant *SuperClassGV,</div>
+<div class="line"><a name="l01318"></a><span class="lineno"> 1318</span>                                             llvm::Constant *ClassRoGV,</div>
+<div class="line"><a name="l01319"></a><span class="lineno"> 1319</span>                                             <span class="keywordtype">bool</span> <a class="code" href="namespaceclang.html#afbab15cd4aa598c4e6d9192f7ac4f102a6dddfc0d585a6867a79d44a43ad55324">HiddenVisibility</a>);</div>
+<div class="line"><a name="l01320"></a><span class="lineno"> 1320</span> </div>
+<div class="line"><a name="l01321"></a><span class="lineno"> 1321</span>   llvm::Constant *GetMethodConstant(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCMethodDecl.html">ObjCMethodDecl</a> *MD);</div>
+<div class="line"><a name="l01322"></a><span class="lineno"> 1322</span> </div>
+<div class="line"><a name="l01323"></a><span class="lineno"> 1323</span>   llvm::Constant *GetMethodDescriptionConstant(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCMethodDecl.html">ObjCMethodDecl</a> *MD);</div>
+<div class="line"><a name="l01324"></a><span class="lineno"> 1324</span> <span class="comment"></span></div>
+<div class="line"><a name="l01325"></a><span class="lineno"> 1325</span> <span class="comment">  /// EmitMethodList - Emit the method list for the given</span></div>
+<div class="line"><a name="l01326"></a><span class="lineno"> 1326</span> <span class="comment">  /// implementation. The return value has type MethodListnfABITy.</span></div>
+<div class="line"><a name="l01327"></a><span class="lineno"> 1327</span> <span class="comment"></span>  llvm::Constant *EmitMethodList(Twine Name,</div>
+<div class="line"><a name="l01328"></a><span class="lineno"> 1328</span>                                  <span class="keyword">const</span> <span class="keywordtype">char</span> *Section,</div>
+<div class="line"><a name="l01329"></a><span class="lineno"> 1329</span>                                  <a class="code" href="classllvm_1_1ArrayRef.html">ArrayRef<llvm::Constant*></a> Methods);<span class="comment"></span></div>
+<div class="line"><a name="l01330"></a><span class="lineno"> 1330</span> <span class="comment">  /// EmitIvarList - Emit the ivar list for the given</span></div>
+<div class="line"><a name="l01331"></a><span class="lineno"> 1331</span> <span class="comment">  /// implementation. If ForClass is true the list of class ivars</span></div>
+<div class="line"><a name="l01332"></a><span class="lineno"> 1332</span> <span class="comment">  /// (i.e. metaclass ivars) is emitted, otherwise the list of</span></div>
+<div class="line"><a name="l01333"></a><span class="lineno"> 1333</span> <span class="comment">  /// interface ivars will be emitted. The return value has type</span></div>
+<div class="line"><a name="l01334"></a><span class="lineno"> 1334</span> <span class="comment">  /// IvarListnfABIPtrTy.</span></div>
+<div class="line"><a name="l01335"></a><span class="lineno"> 1335</span> <span class="comment"></span>  llvm::Constant *EmitIvarList(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCImplementationDecl.html">ObjCImplementationDecl</a> *<a class="code" href="namespaceclang_1_1LangAS.html#a78ee38b55acb7cc806cb61e6d2a9f960" title="Defines the set of possible language-specific address spaces.">ID</a>);</div>
+<div class="line"><a name="l01336"></a><span class="lineno"> 1336</span> </div>
+<div class="line"><a name="l01337"></a><span class="lineno"> 1337</span>   llvm::Constant *EmitIvarOffsetVar(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCInterfaceDecl.html" title="Represents an ObjC class declaration.">ObjCInterfaceDecl</a> *<a class="code" href="namespaceclang_1_1LangAS.html#a78ee38b55acb7cc806cb61e6d2a9f960" title="Defines the set of possible language-specific address spaces.">ID</a>,</div>
+<div class="line"><a name="l01338"></a><span class="lineno"> 1338</span>                                     <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCIvarDecl.html">ObjCIvarDecl</a> *Ivar,</div>
+<div class="line"><a name="l01339"></a><span class="lineno"> 1339</span>                                     <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <span class="keywordtype">int</span> offset);</div>
+<div class="line"><a name="l01340"></a><span class="lineno"> 1340</span> <span class="comment"></span></div>
+<div class="line"><a name="l01341"></a><span class="lineno"> 1341</span> <span class="comment">  /// GetOrEmitProtocol - Get the protocol object for the given</span></div>
+<div class="line"><a name="l01342"></a><span class="lineno"> 1342</span> <span class="comment">  /// declaration, emitting it if necessary. The return value has type</span></div>
+<div class="line"><a name="l01343"></a><span class="lineno"> 1343</span> <span class="comment">  /// ProtocolPtrTy.</span></div>
+<div class="line"><a name="l01344"></a><span class="lineno"> 1344</span> <span class="comment"></span>  <span class="keyword">virtual</span> llvm::Constant *GetOrEmitProtocol(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCProtocolDecl.html" title="Represents an Objective-C protocol declaration.">ObjCProtocolDecl</a> *PD);</div>
+<div class="line"><a name="l01345"></a><span class="lineno"> 1345</span> <span class="comment"></span></div>
+<div class="line"><a name="l01346"></a><span class="lineno"> 1346</span> <span class="comment">  /// GetOrEmitProtocolRef - Get a forward reference to the protocol</span></div>
+<div class="line"><a name="l01347"></a><span class="lineno"> 1347</span> <span class="comment">  /// object for the given declaration, emitting it if needed. These</span></div>
+<div class="line"><a name="l01348"></a><span class="lineno"> 1348</span> <span class="comment">  /// forward references will be filled in with empty bodies if no</span></div>
+<div class="line"><a name="l01349"></a><span class="lineno"> 1349</span> <span class="comment">  /// definition is seen. The return value has type ProtocolPtrTy.</span></div>
+<div class="line"><a name="l01350"></a><span class="lineno"> 1350</span> <span class="comment"></span>  <span class="keyword">virtual</span> llvm::Constant *GetOrEmitProtocolRef(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCProtocolDecl.html" title="Represents an Objective-C protocol declaration.">ObjCProtocolDecl</a> *PD);</div>
+<div class="line"><a name="l01351"></a><span class="lineno"> 1351</span> <span class="comment"></span></div>
+<div class="line"><a name="l01352"></a><span class="lineno"> 1352</span> <span class="comment">  /// EmitProtocolList - Generate the list of referenced</span></div>
+<div class="line"><a name="l01353"></a><span class="lineno"> 1353</span> <span class="comment">  /// protocols. The return value has type ProtocolListPtrTy.</span></div>
+<div class="line"><a name="l01354"></a><span class="lineno"> 1354</span> <span class="comment"></span>  llvm::Constant *EmitProtocolList(Twine Name,</div>
+<div class="line"><a name="l01355"></a><span class="lineno"> 1355</span>                                    <a class="code" href="classclang_1_1ObjCProtocolDecl.html#adbd4b44a478f573a24072123f93b2fe9">ObjCProtocolDecl::protocol_iterator</a> begin,</div>
+<div class="line"><a name="l01356"></a><span class="lineno"> 1356</span>                                    <a class="code" href="classclang_1_1ObjCProtocolDecl.html#adbd4b44a478f573a24072123f93b2fe9">ObjCProtocolDecl::protocol_iterator</a> end);</div>
+<div class="line"><a name="l01357"></a><span class="lineno"> 1357</span> </div>
+<div class="line"><a name="l01358"></a><span class="lineno"> 1358</span>   <a class="code" href="classclang_1_1CodeGen_1_1RValue.html">CodeGen::RValue</a> EmitVTableMessageSend(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGen::CodeGenFunction</a> &CGF,</div>
+<div class="line"><a name="l01359"></a><span class="lineno"> 1359</span>                                         <a class="code" href="classclang_1_1CodeGen_1_1ReturnValueSlot.html">ReturnValueSlot</a> Return,</div>
+<div class="line"><a name="l01360"></a><span class="lineno"> 1360</span>                                         <a class="code" href="classclang_1_1QualType.html">QualType</a> ResultType,</div>
+<div class="line"><a name="l01361"></a><span class="lineno"> 1361</span>                                         <a class="code" href="classclang_1_1Selector.html" title="Smart pointer class that efficiently represents Objective-C method names.">Selector</a> Sel,</div>
+<div class="line"><a name="l01362"></a><span class="lineno"> 1362</span>                                         <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *Receiver,</div>
+<div class="line"><a name="l01363"></a><span class="lineno"> 1363</span>                                         <a class="code" href="classclang_1_1QualType.html">QualType</a> Arg0Ty,</div>
+<div class="line"><a name="l01364"></a><span class="lineno"> 1364</span>                                         <span class="keywordtype">bool</span> IsSuper,</div>
+<div class="line"><a name="l01365"></a><span class="lineno"> 1365</span>                                         <span class="keyword">const</span> <a class="code" href="classclang_1_1CodeGen_1_1CallArgList.html">CallArgList</a> &CallArgs,</div>
+<div class="line"><a name="l01366"></a><span class="lineno"> 1366</span>                                         <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCMethodDecl.html">ObjCMethodDecl</a> *Method);</div>
+<div class="line"><a name="l01367"></a><span class="lineno"> 1367</span>   <span class="comment"></span></div>
+<div class="line"><a name="l01368"></a><span class="lineno"> 1368</span> <span class="comment">  /// GetClassGlobal - Return the global variable for the Objective-C</span></div>
+<div class="line"><a name="l01369"></a><span class="lineno"> 1369</span> <span class="comment">  /// class of the given name.</span></div>
+<div class="line"><a name="l01370"></a><span class="lineno"> 1370</span> <span class="comment"></span>  llvm::GlobalVariable *GetClassGlobal(<span class="keyword">const</span> std::string &Name);</div>
+<div class="line"><a name="l01371"></a><span class="lineno"> 1371</span>     <span class="comment"></span></div>
+<div class="line"><a name="l01372"></a><span class="lineno"> 1372</span> <span class="comment">  /// EmitClassRef - Return a Value*, of type ObjCTypes.ClassPtrTy,</span></div>
+<div class="line"><a name="l01373"></a><span class="lineno"> 1373</span> <span class="comment">  /// for the given class reference.</span></div>
+<div class="line"><a name="l01374"></a><span class="lineno"> 1374</span> <span class="comment"></span>  <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *EmitClassRef(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGenFunction</a> &CGF,</div>
+<div class="line"><a name="l01375"></a><span class="lineno"> 1375</span>                             <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCInterfaceDecl.html" title="Represents an ObjC class declaration.">ObjCInterfaceDecl</a> *<a class="code" href="namespaceclang_1_1LangAS.html#a78ee38b55acb7cc806cb61e6d2a9f960" title="Defines the set of possible language-specific address spaces.">ID</a>);</div>
+<div class="line"><a name="l01376"></a><span class="lineno"> 1376</span>   </div>
+<div class="line"><a name="l01377"></a><span class="lineno"> 1377</span>   <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *EmitClassRefFromId(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGenFunction</a> &CGF,</div>
+<div class="line"><a name="l01378"></a><span class="lineno"> 1378</span>                                   <a class="code" href="classclang_1_1IdentifierInfo.html">IdentifierInfo</a> *II);</div>
+<div class="line"><a name="l01379"></a><span class="lineno"> 1379</span>   </div>
+<div class="line"><a name="l01380"></a><span class="lineno"> 1380</span>   <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *EmitNSAutoreleasePoolClassRef(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGenFunction</a> &CGF);</div>
+<div class="line"><a name="l01381"></a><span class="lineno"> 1381</span> <span class="comment"></span></div>
+<div class="line"><a name="l01382"></a><span class="lineno"> 1382</span> <span class="comment">  /// EmitSuperClassRef - Return a Value*, of type ObjCTypes.ClassPtrTy,</span></div>
+<div class="line"><a name="l01383"></a><span class="lineno"> 1383</span> <span class="comment">  /// for the given super class reference.</span></div>
+<div class="line"><a name="l01384"></a><span class="lineno"> 1384</span> <span class="comment"></span>  <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *EmitSuperClassRef(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGenFunction</a> &CGF,</div>
+<div class="line"><a name="l01385"></a><span class="lineno"> 1385</span>                                  <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCInterfaceDecl.html" title="Represents an ObjC class declaration.">ObjCInterfaceDecl</a> *<a class="code" href="namespaceclang_1_1LangAS.html#a78ee38b55acb7cc806cb61e6d2a9f960" title="Defines the set of possible language-specific address spaces.">ID</a>);</div>
+<div class="line"><a name="l01386"></a><span class="lineno"> 1386</span> <span class="comment"></span></div>
+<div class="line"><a name="l01387"></a><span class="lineno"> 1387</span> <span class="comment">  /// EmitMetaClassRef - Return a Value * of the address of _class_t</span></div>
+<div class="line"><a name="l01388"></a><span class="lineno"> 1388</span> <span class="comment">  /// meta-data</span></div>
+<div class="line"><a name="l01389"></a><span class="lineno"> 1389</span> <span class="comment"></span>  <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *EmitMetaClassRef(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGenFunction</a> &CGF,</div>
+<div class="line"><a name="l01390"></a><span class="lineno"> 1390</span>                                 <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCInterfaceDecl.html" title="Represents an ObjC class declaration.">ObjCInterfaceDecl</a> *<a class="code" href="namespaceclang_1_1LangAS.html#a78ee38b55acb7cc806cb61e6d2a9f960" title="Defines the set of possible language-specific address spaces.">ID</a>);</div>
+<div class="line"><a name="l01391"></a><span class="lineno"> 1391</span> <span class="comment"></span></div>
+<div class="line"><a name="l01392"></a><span class="lineno"> 1392</span> <span class="comment">  /// ObjCIvarOffsetVariable - Returns the ivar offset variable for</span></div>
+<div class="line"><a name="l01393"></a><span class="lineno"> 1393</span> <span class="comment">  /// the given ivar.</span></div>
+<div class="line"><a name="l01394"></a><span class="lineno"> 1394</span> <span class="comment">  ///</span></div>
+<div class="line"><a name="l01395"></a><span class="lineno"> 1395</span> <span class="comment"></span>  llvm::GlobalVariable * ObjCIvarOffsetVariable(</div>
+<div class="line"><a name="l01396"></a><span class="lineno"> 1396</span>     <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCInterfaceDecl.html" title="Represents an ObjC class declaration.">ObjCInterfaceDecl</a> *<a class="code" href="namespaceclang_1_1LangAS.html#a78ee38b55acb7cc806cb61e6d2a9f960" title="Defines the set of possible language-specific address spaces.">ID</a>,</div>
+<div class="line"><a name="l01397"></a><span class="lineno"> 1397</span>     <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCIvarDecl.html">ObjCIvarDecl</a> *Ivar);</div>
+<div class="line"><a name="l01398"></a><span class="lineno"> 1398</span> <span class="comment"></span></div>
+<div class="line"><a name="l01399"></a><span class="lineno"> 1399</span> <span class="comment">  /// EmitSelector - Return a Value*, of type ObjCTypes.SelectorPtrTy,</span></div>
+<div class="line"><a name="l01400"></a><span class="lineno"> 1400</span> <span class="comment">  /// for the given selector.</span></div>
+<div class="line"><a name="l01401"></a><span class="lineno"> 1401</span> <span class="comment"></span>  <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *EmitSelector(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGenFunction</a> &CGF, <a class="code" href="classclang_1_1Selector.html" title="Smart pointer class that efficiently represents Objective-C method names.">Selector</a> Sel, </div>
+<div class="line"><a name="l01402"></a><span class="lineno"> 1402</span>                             <span class="keywordtype">bool</span> lval=<span class="keyword">false</span>);</div>
+<div class="line"><a name="l01403"></a><span class="lineno"> 1403</span> <span class="comment"></span></div>
+<div class="line"><a name="l01404"></a><span class="lineno"> 1404</span> <span class="comment">  /// GetInterfaceEHType - Get the cached ehtype for the given Objective-C</span></div>
+<div class="line"><a name="l01405"></a><span class="lineno"> 1405</span> <span class="comment">  /// interface. The return value has type EHTypePtrTy.</span></div>
+<div class="line"><a name="l01406"></a><span class="lineno"> 1406</span> <span class="comment"></span>  llvm::Constant *GetInterfaceEHType(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCInterfaceDecl.html" title="Represents an ObjC class declaration.">ObjCInterfaceDecl</a> *<a class="code" href="namespaceclang_1_1LangAS.html#a78ee38b55acb7cc806cb61e6d2a9f960" title="Defines the set of possible language-specific address spaces.">ID</a>,</div>
+<div class="line"><a name="l01407"></a><span class="lineno"> 1407</span>                                   <span class="keywordtype">bool</span> ForDefinition);</div>
+<div class="line"><a name="l01408"></a><span class="lineno"> 1408</span> </div>
+<div class="line"><a name="l01409"></a><span class="lineno"> 1409</span>   <span class="keyword">const</span> <span class="keywordtype">char</span> *getMetaclassSymbolPrefix()<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l01410"></a><span class="lineno"> 1410</span>     <span class="keywordflow">return</span> <span class="stringliteral">"OBJC_METACLASS_$_"</span>;</div>
+<div class="line"><a name="l01411"></a><span class="lineno"> 1411</span>   }</div>
+<div class="line"><a name="l01412"></a><span class="lineno"> 1412</span> </div>
+<div class="line"><a name="l01413"></a><span class="lineno"> 1413</span>   <span class="keyword">const</span> <span class="keywordtype">char</span> *getClassSymbolPrefix()<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l01414"></a><span class="lineno"> 1414</span>     <span class="keywordflow">return</span> <span class="stringliteral">"OBJC_CLASS_$_"</span>;</div>
+<div class="line"><a name="l01415"></a><span class="lineno"> 1415</span>   }</div>
+<div class="line"><a name="l01416"></a><span class="lineno"> 1416</span> </div>
+<div class="line"><a name="l01417"></a><span class="lineno"> 1417</span>   <span class="keywordtype">void</span> GetClassSizeInfo(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCImplementationDecl.html">ObjCImplementationDecl</a> *OID,</div>
+<div class="line"><a name="l01418"></a><span class="lineno"> 1418</span>                         uint32_t &InstanceStart,</div>
+<div class="line"><a name="l01419"></a><span class="lineno"> 1419</span>                         uint32_t &InstanceSize);</div>
+<div class="line"><a name="l01420"></a><span class="lineno"> 1420</span> </div>
+<div class="line"><a name="l01421"></a><span class="lineno"> 1421</span>   <span class="comment">// Shamelessly stolen from Analysis/CFRefCount.cpp</span></div>
+<div class="line"><a name="l01422"></a><span class="lineno"> 1422</span>   <a class="code" href="classclang_1_1Selector.html" title="Smart pointer class that efficiently represents Objective-C method names.">Selector</a> <a class="code" href="namespaceclang.html#a2a239358dba4d59740ad4a772f0b2c58" title="Utility function for constructing a nullary selector.">GetNullarySelector</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* name)<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l01423"></a><span class="lineno"> 1423</span>     <a class="code" href="classclang_1_1IdentifierInfo.html">IdentifierInfo</a>* II = &CGM.getContext().Idents.get(name);</div>
+<div class="line"><a name="l01424"></a><span class="lineno"> 1424</span>     <span class="keywordflow">return</span> CGM.getContext().Selectors.getSelector(0, &II);</div>
+<div class="line"><a name="l01425"></a><span class="lineno"> 1425</span>   }</div>
+<div class="line"><a name="l01426"></a><span class="lineno"> 1426</span> </div>
+<div class="line"><a name="l01427"></a><span class="lineno"> 1427</span>   <a class="code" href="classclang_1_1Selector.html" title="Smart pointer class that efficiently represents Objective-C method names.">Selector</a> <a class="code" href="namespaceclang.html#a76eb8ffd4176c64e1a1d28bab750b6dc" title="Utility function for constructing an unary selector.">GetUnarySelector</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* name)<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l01428"></a><span class="lineno"> 1428</span>     <a class="code" href="classclang_1_1IdentifierInfo.html">IdentifierInfo</a>* II = &CGM.getContext().Idents.get(name);</div>
+<div class="line"><a name="l01429"></a><span class="lineno"> 1429</span>     <span class="keywordflow">return</span> CGM.getContext().Selectors.getSelector(1, &II);</div>
+<div class="line"><a name="l01430"></a><span class="lineno"> 1430</span>   }</div>
+<div class="line"><a name="l01431"></a><span class="lineno"> 1431</span> <span class="comment"></span></div>
+<div class="line"><a name="l01432"></a><span class="lineno"> 1432</span> <span class="comment">  /// ImplementationIsNonLazy - Check whether the given category or</span></div>
+<div class="line"><a name="l01433"></a><span class="lineno"> 1433</span> <span class="comment">  /// class implementation is "non-lazy".</span></div>
+<div class="line"><a name="l01434"></a><span class="lineno"> 1434</span> <span class="comment"></span>  <span class="keywordtype">bool</span> ImplementationIsNonLazy(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCImplDecl.html">ObjCImplDecl</a> *OD) <span class="keyword">const</span>;</div>
+<div class="line"><a name="l01435"></a><span class="lineno"> 1435</span> </div>
+<div class="line"><a name="l01436"></a><span class="lineno"> 1436</span>   <span class="keywordtype">bool</span> IsIvarOffsetKnownIdempotent(<span class="keyword">const</span> <a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGen::CodeGenFunction</a> &CGF,</div>
+<div class="line"><a name="l01437"></a><span class="lineno"> 1437</span>                                    <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCInterfaceDecl.html" title="Represents an ObjC class declaration.">ObjCInterfaceDecl</a> *<a class="code" href="namespaceclang_1_1LangAS.html#a78ee38b55acb7cc806cb61e6d2a9f960" title="Defines the set of possible language-specific address spaces.">ID</a>,</div>
+<div class="line"><a name="l01438"></a><span class="lineno"> 1438</span>                                    <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCIvarDecl.html">ObjCIvarDecl</a> *IV) {</div>
+<div class="line"><a name="l01439"></a><span class="lineno"> 1439</span>     <span class="comment">// Annotate the load as an invariant load iff the object type is the type,</span></div>
+<div class="line"><a name="l01440"></a><span class="lineno"> 1440</span>     <span class="comment">// or a derived type, of the class containing the ivar within an ObjC</span></div>
+<div class="line"><a name="l01441"></a><span class="lineno"> 1441</span>     <span class="comment">// method.  This check is needed because the ivar offset is a lazily</span></div>
+<div class="line"><a name="l01442"></a><span class="lineno"> 1442</span>     <span class="comment">// initialised value that may depend on objc_msgSend to perform a fixup on</span></div>
+<div class="line"><a name="l01443"></a><span class="lineno"> 1443</span>     <span class="comment">// the first message dispatch.</span></div>
+<div class="line"><a name="l01444"></a><span class="lineno"> 1444</span>     <span class="comment">//</span></div>
+<div class="line"><a name="l01445"></a><span class="lineno"> 1445</span>     <span class="comment">// An additional opportunity to mark the load as invariant arises when the</span></div>
+<div class="line"><a name="l01446"></a><span class="lineno"> 1446</span>     <span class="comment">// base of the ivar access is a parameter to an Objective C method.</span></div>
+<div class="line"><a name="l01447"></a><span class="lineno"> 1447</span>     <span class="comment">// However, because the parameters are not available in the current</span></div>
+<div class="line"><a name="l01448"></a><span class="lineno"> 1448</span>     <span class="comment">// interface, we cannot perform this check.</span></div>
+<div class="line"><a name="l01449"></a><span class="lineno"> 1449</span>     <span class="keywordflow">if</span> (CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#aa90f4bdf700179645197d8d2b96e289f">CurFuncDecl</a> && isa<ObjCMethodDecl>(CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#aa90f4bdf700179645197d8d2b96e289f">CurFuncDecl</a>))</div>
+<div class="line"><a name="l01450"></a><span class="lineno"> 1450</span>       <span class="keywordflow">if</span> (IV-><a class="code" href="classclang_1_1ObjCIvarDecl.html#aa16c217c4e8952345ce46401db00e142" title="Return the class interface that this ivar is logically contained in; this is either the interface whe...">getContainingInterface</a>()-><a class="code" href="classclang_1_1ObjCInterfaceDecl.html#a475a3c7ebb9047da9464a1157789c1e1">isSuperClassOf</a>(ID))</div>
+<div class="line"><a name="l01451"></a><span class="lineno"> 1451</span>         <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01452"></a><span class="lineno"> 1452</span>     <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01453"></a><span class="lineno"> 1453</span>   }</div>
+<div class="line"><a name="l01454"></a><span class="lineno"> 1454</span> </div>
+<div class="line"><a name="l01455"></a><span class="lineno"> 1455</span> <span class="keyword">public</span>:</div>
+<div class="line"><a name="l01456"></a><span class="lineno"> 1456</span>   CGObjCNonFragileABIMac(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html">CodeGen::CodeGenModule</a> &cgm);</div>
+<div class="line"><a name="l01457"></a><span class="lineno"> 1457</span>   <span class="comment">// FIXME. All stubs for now!</span></div>
+<div class="line"><a name="l01458"></a><span class="lineno"> 1458</span>   <span class="keyword">virtual</span> llvm::Function *ModuleInitFunction();</div>
+<div class="line"><a name="l01459"></a><span class="lineno"> 1459</span> </div>
+<div class="line"><a name="l01460"></a><span class="lineno"> 1460</span>   <span class="keyword">virtual</span> <a class="code" href="classclang_1_1CodeGen_1_1RValue.html">CodeGen::RValue</a> GenerateMessageSend(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGen::CodeGenFunction</a> &CGF,</div>
+<div class="line"><a name="l01461"></a><span class="lineno"> 1461</span>                                               <a class="code" href="classclang_1_1CodeGen_1_1ReturnValueSlot.html">ReturnValueSlot</a> Return,</div>
+<div class="line"><a name="l01462"></a><span class="lineno"> 1462</span>                                               <a class="code" href="classclang_1_1QualType.html">QualType</a> ResultType,</div>
+<div class="line"><a name="l01463"></a><span class="lineno"> 1463</span>                                               <a class="code" href="classclang_1_1Selector.html" title="Smart pointer class that efficiently represents Objective-C method names.">Selector</a> Sel,</div>
+<div class="line"><a name="l01464"></a><span class="lineno"> 1464</span>                                               <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *Receiver,</div>
+<div class="line"><a name="l01465"></a><span class="lineno"> 1465</span>                                               <span class="keyword">const</span> <a class="code" href="classclang_1_1CodeGen_1_1CallArgList.html">CallArgList</a> &CallArgs,</div>
+<div class="line"><a name="l01466"></a><span class="lineno"> 1466</span>                                               <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCInterfaceDecl.html" title="Represents an ObjC class declaration.">ObjCInterfaceDecl</a> *Class,</div>
+<div class="line"><a name="l01467"></a><span class="lineno"> 1467</span>                                               <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCMethodDecl.html">ObjCMethodDecl</a> *Method);</div>
+<div class="line"><a name="l01468"></a><span class="lineno"> 1468</span> </div>
+<div class="line"><a name="l01469"></a><span class="lineno"> 1469</span>   <span class="keyword">virtual</span> <a class="code" href="classclang_1_1CodeGen_1_1RValue.html">CodeGen::RValue</a></div>
+<div class="line"><a name="l01470"></a><span class="lineno"> 1470</span>   GenerateMessageSendSuper(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGen::CodeGenFunction</a> &CGF,</div>
+<div class="line"><a name="l01471"></a><span class="lineno"> 1471</span>                            <a class="code" href="classclang_1_1CodeGen_1_1ReturnValueSlot.html">ReturnValueSlot</a> Return,</div>
+<div class="line"><a name="l01472"></a><span class="lineno"> 1472</span>                            <a class="code" href="classclang_1_1QualType.html">QualType</a> ResultType,</div>
+<div class="line"><a name="l01473"></a><span class="lineno"> 1473</span>                            <a class="code" href="classclang_1_1Selector.html" title="Smart pointer class that efficiently represents Objective-C method names.">Selector</a> Sel,</div>
+<div class="line"><a name="l01474"></a><span class="lineno"> 1474</span>                            <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCInterfaceDecl.html" title="Represents an ObjC class declaration.">ObjCInterfaceDecl</a> *Class,</div>
+<div class="line"><a name="l01475"></a><span class="lineno"> 1475</span>                            <span class="keywordtype">bool</span> isCategoryImpl,</div>
+<div class="line"><a name="l01476"></a><span class="lineno"> 1476</span>                            <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *Receiver,</div>
+<div class="line"><a name="l01477"></a><span class="lineno"> 1477</span>                            <span class="keywordtype">bool</span> IsClassMessage,</div>
+<div class="line"><a name="l01478"></a><span class="lineno"> 1478</span>                            <span class="keyword">const</span> <a class="code" href="classclang_1_1CodeGen_1_1CallArgList.html">CallArgList</a> &CallArgs,</div>
+<div class="line"><a name="l01479"></a><span class="lineno"> 1479</span>                            <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCMethodDecl.html">ObjCMethodDecl</a> *Method);</div>
+<div class="line"><a name="l01480"></a><span class="lineno"> 1480</span> </div>
+<div class="line"><a name="l01481"></a><span class="lineno"> 1481</span>   <span class="keyword">virtual</span> <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *GetClass(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGenFunction</a> &CGF,</div>
+<div class="line"><a name="l01482"></a><span class="lineno"> 1482</span>                                 <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCInterfaceDecl.html" title="Represents an ObjC class declaration.">ObjCInterfaceDecl</a> *ID);</div>
+<div class="line"><a name="l01483"></a><span class="lineno"> 1483</span> </div>
+<div class="line"><a name="l01484"></a><span class="lineno"> 1484</span>   <span class="keyword">virtual</span> <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *GetSelector(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGenFunction</a> &CGF, <a class="code" href="classclang_1_1Selector.html" title="Smart pointer class that efficiently represents Objective-C method names.">Selector</a> Sel,</div>
+<div class="line"><a name="l01485"></a><span class="lineno"> 1485</span>                                    <span class="keywordtype">bool</span> lvalue = <span class="keyword">false</span>)</div>
+<div class="line"><a name="l01486"></a><span class="lineno"> 1486</span>     { <span class="keywordflow">return</span> EmitSelector(CGF, Sel, lvalue); }</div>
+<div class="line"><a name="l01487"></a><span class="lineno"> 1487</span> <span class="comment"></span></div>
+<div class="line"><a name="l01488"></a><span class="lineno"> 1488</span> <span class="comment">  /// The NeXT/Apple runtimes do not support typed selectors; just emit an</span></div>
+<div class="line"><a name="l01489"></a><span class="lineno"> 1489</span> <span class="comment">  /// untyped one.</span></div>
+<div class="line"><a name="l01490"></a><span class="lineno"> 1490</span> <span class="comment"></span>  <span class="keyword">virtual</span> <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *GetSelector(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGenFunction</a> &CGF,</div>
+<div class="line"><a name="l01491"></a><span class="lineno"> 1491</span>                                    <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCMethodDecl.html">ObjCMethodDecl</a> *Method)</div>
+<div class="line"><a name="l01492"></a><span class="lineno"> 1492</span>     { <span class="keywordflow">return</span> EmitSelector(CGF, Method-><a class="code" href="classclang_1_1ObjCMethodDecl.html#aa91ae093f29f2781c87f725e42fddf98">getSelector</a>()); }</div>
+<div class="line"><a name="l01493"></a><span class="lineno"> 1493</span> </div>
+<div class="line"><a name="l01494"></a><span class="lineno"> 1494</span>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> GenerateCategory(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCCategoryImplDecl.html">ObjCCategoryImplDecl</a> *CMD);</div>
+<div class="line"><a name="l01495"></a><span class="lineno"> 1495</span> </div>
+<div class="line"><a name="l01496"></a><span class="lineno"> 1496</span>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> GenerateClass(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCImplementationDecl.html">ObjCImplementationDecl</a> *ClassDecl);</div>
+<div class="line"><a name="l01497"></a><span class="lineno"> 1497</span> </div>
+<div class="line"><a name="l01498"></a><span class="lineno"> 1498</span>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> RegisterAlias(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCCompatibleAliasDecl.html">ObjCCompatibleAliasDecl</a> *OAD) {}</div>
+<div class="line"><a name="l01499"></a><span class="lineno"> 1499</span> </div>
+<div class="line"><a name="l01500"></a><span class="lineno"> 1500</span>   <span class="keyword">virtual</span> <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *GenerateProtocolRef(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGenFunction</a> &CGF,</div>
+<div class="line"><a name="l01501"></a><span class="lineno"> 1501</span>                                            <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCProtocolDecl.html" title="Represents an Objective-C protocol declaration.">ObjCProtocolDecl</a> *PD);</div>
+<div class="line"><a name="l01502"></a><span class="lineno"> 1502</span> </div>
+<div class="line"><a name="l01503"></a><span class="lineno"> 1503</span>   <span class="keyword">virtual</span> llvm::Constant *GetEHType(<a class="code" href="classclang_1_1QualType.html">QualType</a> T);</div>
+<div class="line"><a name="l01504"></a><span class="lineno"> 1504</span> </div>
+<div class="line"><a name="l01505"></a><span class="lineno"> 1505</span>   <span class="keyword">virtual</span> llvm::Constant *GetPropertyGetFunction() {</div>
+<div class="line"><a name="l01506"></a><span class="lineno"> 1506</span>     <span class="keywordflow">return</span> ObjCTypes.getGetPropertyFn();</div>
+<div class="line"><a name="l01507"></a><span class="lineno"> 1507</span>   }</div>
+<div class="line"><a name="l01508"></a><span class="lineno"> 1508</span>   <span class="keyword">virtual</span> llvm::Constant *GetPropertySetFunction() {</div>
+<div class="line"><a name="l01509"></a><span class="lineno"> 1509</span>     <span class="keywordflow">return</span> ObjCTypes.getSetPropertyFn();</div>
+<div class="line"><a name="l01510"></a><span class="lineno"> 1510</span>   }</div>
+<div class="line"><a name="l01511"></a><span class="lineno"> 1511</span>   </div>
+<div class="line"><a name="l01512"></a><span class="lineno"> 1512</span>   <span class="keyword">virtual</span> llvm::Constant *GetOptimizedPropertySetFunction(<span class="keywordtype">bool</span> atomic, </div>
+<div class="line"><a name="l01513"></a><span class="lineno"> 1513</span>                                                           <span class="keywordtype">bool</span> copy) {</div>
+<div class="line"><a name="l01514"></a><span class="lineno"> 1514</span>     <span class="keywordflow">return</span> ObjCTypes.getOptimizedSetPropertyFn(atomic, copy);</div>
+<div class="line"><a name="l01515"></a><span class="lineno"> 1515</span>   }</div>
+<div class="line"><a name="l01516"></a><span class="lineno"> 1516</span>   </div>
+<div class="line"><a name="l01517"></a><span class="lineno"> 1517</span>   <span class="keyword">virtual</span> llvm::Constant *GetSetStructFunction() {</div>
+<div class="line"><a name="l01518"></a><span class="lineno"> 1518</span>     <span class="keywordflow">return</span> ObjCTypes.getCopyStructFn();</div>
+<div class="line"><a name="l01519"></a><span class="lineno"> 1519</span>   }</div>
+<div class="line"><a name="l01520"></a><span class="lineno"> 1520</span>   <span class="keyword">virtual</span> llvm::Constant *GetGetStructFunction() {</div>
+<div class="line"><a name="l01521"></a><span class="lineno"> 1521</span>     <span class="keywordflow">return</span> ObjCTypes.getCopyStructFn();</div>
+<div class="line"><a name="l01522"></a><span class="lineno"> 1522</span>   }</div>
+<div class="line"><a name="l01523"></a><span class="lineno"> 1523</span>   <span class="keyword">virtual</span> llvm::Constant *GetCppAtomicObjectSetFunction() {</div>
+<div class="line"><a name="l01524"></a><span class="lineno"> 1524</span>     <span class="keywordflow">return</span> ObjCTypes.getCppAtomicObjectFunction();</div>
+<div class="line"><a name="l01525"></a><span class="lineno"> 1525</span>   }</div>
+<div class="line"><a name="l01526"></a><span class="lineno"> 1526</span>   <span class="keyword">virtual</span> llvm::Constant *GetCppAtomicObjectGetFunction() {</div>
+<div class="line"><a name="l01527"></a><span class="lineno"> 1527</span>     <span class="keywordflow">return</span> ObjCTypes.getCppAtomicObjectFunction();</div>
+<div class="line"><a name="l01528"></a><span class="lineno"> 1528</span>   }</div>
+<div class="line"><a name="l01529"></a><span class="lineno"> 1529</span>   </div>
+<div class="line"><a name="l01530"></a><span class="lineno"> 1530</span>   <span class="keyword">virtual</span> llvm::Constant *EnumerationMutationFunction() {</div>
+<div class="line"><a name="l01531"></a><span class="lineno"> 1531</span>     <span class="keywordflow">return</span> ObjCTypes.getEnumerationMutationFn();</div>
+<div class="line"><a name="l01532"></a><span class="lineno"> 1532</span>   }</div>
+<div class="line"><a name="l01533"></a><span class="lineno"> 1533</span> </div>
+<div class="line"><a name="l01534"></a><span class="lineno"> 1534</span>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> EmitTryStmt(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGen::CodeGenFunction</a> &CGF,</div>
+<div class="line"><a name="l01535"></a><span class="lineno"> 1535</span>                            <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCAtTryStmt.html" title="Represents Objective-C's @try ... @catch ... @finally statement.">ObjCAtTryStmt</a> &<a class="code" href="AnalysisBasedWarnings_8cpp.html#a33dc45a03958a0bf07b5da2dec4db648">S</a>);</div>
+<div class="line"><a name="l01536"></a><span class="lineno"> 1536</span>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> EmitSynchronizedStmt(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGen::CodeGenFunction</a> &CGF,</div>
+<div class="line"><a name="l01537"></a><span class="lineno"> 1537</span>                                     <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCAtSynchronizedStmt.html" title="Represents Objective-C's @synchronized statement.">ObjCAtSynchronizedStmt</a> &<a class="code" href="AnalysisBasedWarnings_8cpp.html#a33dc45a03958a0bf07b5da2dec4db648">S</a>);</div>
+<div class="line"><a name="l01538"></a><span class="lineno"> 1538</span>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> EmitThrowStmt(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGen::CodeGenFunction</a> &CGF,</div>
+<div class="line"><a name="l01539"></a><span class="lineno"> 1539</span>                              <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCAtThrowStmt.html" title="Represents Objective-C's @throw statement.">ObjCAtThrowStmt</a> &<a class="code" href="AnalysisBasedWarnings_8cpp.html#a33dc45a03958a0bf07b5da2dec4db648">S</a>,</div>
+<div class="line"><a name="l01540"></a><span class="lineno"> 1540</span>                              <span class="keywordtype">bool</span> ClearInsertionPoint=<span class="keyword">true</span>);</div>
+<div class="line"><a name="l01541"></a><span class="lineno"> 1541</span>   <span class="keyword">virtual</span> <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> * EmitObjCWeakRead(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGen::CodeGenFunction</a> &CGF,</div>
+<div class="line"><a name="l01542"></a><span class="lineno"> 1542</span>                                          <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *AddrWeakObj);</div>
+<div class="line"><a name="l01543"></a><span class="lineno"> 1543</span>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> EmitObjCWeakAssign(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGen::CodeGenFunction</a> &CGF,</div>
+<div class="line"><a name="l01544"></a><span class="lineno"> 1544</span>                                   <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *src, <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *dst);</div>
+<div class="line"><a name="l01545"></a><span class="lineno"> 1545</span>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> EmitObjCGlobalAssign(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGen::CodeGenFunction</a> &CGF,</div>
+<div class="line"><a name="l01546"></a><span class="lineno"> 1546</span>                                     <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *src, <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *dest,</div>
+<div class="line"><a name="l01547"></a><span class="lineno"> 1547</span>                                     <span class="keywordtype">bool</span> threadlocal = <span class="keyword">false</span>);</div>
+<div class="line"><a name="l01548"></a><span class="lineno"> 1548</span>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> EmitObjCIvarAssign(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGen::CodeGenFunction</a> &CGF,</div>
+<div class="line"><a name="l01549"></a><span class="lineno"> 1549</span>                                   <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *src, <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *dest,</div>
+<div class="line"><a name="l01550"></a><span class="lineno"> 1550</span>                                   <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *ivarOffset);</div>
+<div class="line"><a name="l01551"></a><span class="lineno"> 1551</span>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> EmitObjCStrongCastAssign(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGen::CodeGenFunction</a> &CGF,</div>
+<div class="line"><a name="l01552"></a><span class="lineno"> 1552</span>                                         <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *src, <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *dest);</div>
+<div class="line"><a name="l01553"></a><span class="lineno"> 1553</span>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> EmitGCMemmoveCollectable(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGen::CodeGenFunction</a> &CGF,</div>
+<div class="line"><a name="l01554"></a><span class="lineno"> 1554</span>                                         <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *dest, <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *src,</div>
+<div class="line"><a name="l01555"></a><span class="lineno"> 1555</span>                                         <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *size);</div>
+<div class="line"><a name="l01556"></a><span class="lineno"> 1556</span>   <span class="keyword">virtual</span> <a class="code" href="classclang_1_1CodeGen_1_1LValue.html">LValue</a> EmitObjCValueForIvar(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGen::CodeGenFunction</a> &CGF,</div>
+<div class="line"><a name="l01557"></a><span class="lineno"> 1557</span>                                       <a class="code" href="classclang_1_1QualType.html">QualType</a> ObjectTy,</div>
+<div class="line"><a name="l01558"></a><span class="lineno"> 1558</span>                                       <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *BaseValue,</div>
+<div class="line"><a name="l01559"></a><span class="lineno"> 1559</span>                                       <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCIvarDecl.html">ObjCIvarDecl</a> *Ivar,</div>
+<div class="line"><a name="l01560"></a><span class="lineno"> 1560</span>                                       <span class="keywordtype">unsigned</span> CVRQualifiers);</div>
+<div class="line"><a name="l01561"></a><span class="lineno"> 1561</span>   <span class="keyword">virtual</span> <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *EmitIvarOffset(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGen::CodeGenFunction</a> &CGF,</div>
+<div class="line"><a name="l01562"></a><span class="lineno"> 1562</span>                                       <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCInterfaceDecl.html" title="Represents an ObjC class declaration.">ObjCInterfaceDecl</a> *Interface,</div>
+<div class="line"><a name="l01563"></a><span class="lineno"> 1563</span>                                       <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCIvarDecl.html">ObjCIvarDecl</a> *Ivar);</div>
+<div class="line"><a name="l01564"></a><span class="lineno"> 1564</span> };</div>
+<div class="line"><a name="l01565"></a><span class="lineno"> 1565</span> <span class="comment"></span></div>
+<div class="line"><a name="l01566"></a><span class="lineno"> 1566</span> <span class="comment">/// A helper class for performing the null-initialization of a return</span></div>
+<div class="line"><a name="l01567"></a><span class="lineno"> 1567</span> <span class="comment">/// value.</span></div>
+<div class="line"><a name="l01568"></a><span class="lineno"> 1568</span> <span class="comment"></span><span class="keyword">struct </span>NullReturnState {</div>
+<div class="line"><a name="l01569"></a><span class="lineno"> 1569</span>   llvm::BasicBlock *NullBB;</div>
+<div class="line"><a name="l01570"></a><span class="lineno"> 1570</span>   NullReturnState() : NullBB(0) {}</div>
+<div class="line"><a name="l01571"></a><span class="lineno"> 1571</span> <span class="comment"></span></div>
+<div class="line"><a name="l01572"></a><span class="lineno"> 1572</span> <span class="comment">  /// Perform a null-check of the given receiver.</span></div>
+<div class="line"><a name="l01573"></a><span class="lineno"> 1573</span> <span class="comment"></span>  <span class="keywordtype">void</span> init(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGenFunction</a> &CGF, <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *receiver) {</div>
+<div class="line"><a name="l01574"></a><span class="lineno"> 1574</span>     <span class="comment">// Make blocks for the null-receiver and call edges.</span></div>
+<div class="line"><a name="l01575"></a><span class="lineno"> 1575</span>     NullBB = CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a9d442ba1c516ff4a2fbf1e118359cb52" title="createBasicBlock - Create an LLVM basic block.">createBasicBlock</a>(<span class="stringliteral">"msgSend.null-receiver"</span>);</div>
+<div class="line"><a name="l01576"></a><span class="lineno"> 1576</span>     llvm::BasicBlock *callBB = CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a9d442ba1c516ff4a2fbf1e118359cb52" title="createBasicBlock - Create an LLVM basic block.">createBasicBlock</a>(<span class="stringliteral">"msgSend.call"</span>);</div>
+<div class="line"><a name="l01577"></a><span class="lineno"> 1577</span> </div>
+<div class="line"><a name="l01578"></a><span class="lineno"> 1578</span>     <span class="comment">// Check for a null receiver and, if there is one, jump to the</span></div>
+<div class="line"><a name="l01579"></a><span class="lineno"> 1579</span>     <span class="comment">// null-receiver block.  There's no point in trying to avoid it:</span></div>
+<div class="line"><a name="l01580"></a><span class="lineno"> 1580</span>     <span class="comment">// we're always going to put *something* there, because otherwise</span></div>
+<div class="line"><a name="l01581"></a><span class="lineno"> 1581</span>     <span class="comment">// we shouldn't have done this null-check in the first place.</span></div>
+<div class="line"><a name="l01582"></a><span class="lineno"> 1582</span>     <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *isNull = CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a982c1e3091df3de75723921687460d3d">Builder</a>.CreateIsNull(receiver);</div>
+<div class="line"><a name="l01583"></a><span class="lineno"> 1583</span>     CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a982c1e3091df3de75723921687460d3d">Builder</a>.CreateCondBr(isNull, NullBB, callBB);</div>
+<div class="line"><a name="l01584"></a><span class="lineno"> 1584</span> </div>
+<div class="line"><a name="l01585"></a><span class="lineno"> 1585</span>     <span class="comment">// Otherwise, start performing the call.</span></div>
+<div class="line"><a name="l01586"></a><span class="lineno"> 1586</span>     CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#afdec5412ab40bb1923c689fe093f8871">EmitBlock</a>(callBB);</div>
+<div class="line"><a name="l01587"></a><span class="lineno"> 1587</span>   }</div>
+<div class="line"><a name="l01588"></a><span class="lineno"> 1588</span> <span class="comment"></span></div>
+<div class="line"><a name="l01589"></a><span class="lineno"> 1589</span> <span class="comment">  /// Complete the null-return operation.  It is valid to call this</span></div>
+<div class="line"><a name="l01590"></a><span class="lineno"> 1590</span> <span class="comment">  /// regardless of whether 'init' has been called.</span></div>
+<div class="line"><a name="l01591"></a><span class="lineno"> 1591</span> <span class="comment"></span>  <a class="code" href="classclang_1_1CodeGen_1_1RValue.html">RValue</a> complete(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGenFunction</a> &CGF, <a class="code" href="classclang_1_1CodeGen_1_1RValue.html">RValue</a> result, <a class="code" href="classclang_1_1QualType.html">QualType</a> resultType,</div>
+<div class="line"><a name="l01592"></a><span class="lineno"> 1592</span>                   <span class="keyword">const</span> <a class="code" href="classclang_1_1CodeGen_1_1CallArgList.html">CallArgList</a> &CallArgs,</div>
+<div class="line"><a name="l01593"></a><span class="lineno"> 1593</span>                   <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCMethodDecl.html">ObjCMethodDecl</a> *Method) {</div>
+<div class="line"><a name="l01594"></a><span class="lineno"> 1594</span>     <span class="comment">// If we never had to do a null-check, just use the raw result.</span></div>
+<div class="line"><a name="l01595"></a><span class="lineno"> 1595</span>     <span class="keywordflow">if</span> (!NullBB) <span class="keywordflow">return</span> result;</div>
+<div class="line"><a name="l01596"></a><span class="lineno"> 1596</span> </div>
+<div class="line"><a name="l01597"></a><span class="lineno"> 1597</span>     <span class="comment">// The continuation block.  This will be left null if we don't have an</span></div>
+<div class="line"><a name="l01598"></a><span class="lineno"> 1598</span>     <span class="comment">// IP, which can happen if the method we're calling is marked noreturn.</span></div>
+<div class="line"><a name="l01599"></a><span class="lineno"> 1599</span>     llvm::BasicBlock *contBB = 0;</div>
+<div class="line"><a name="l01600"></a><span class="lineno"> 1600</span>     </div>
+<div class="line"><a name="l01601"></a><span class="lineno"> 1601</span>     <span class="comment">// Finish the call path.</span></div>
+<div class="line"><a name="l01602"></a><span class="lineno"> 1602</span>     llvm::BasicBlock *callBB = CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a982c1e3091df3de75723921687460d3d">Builder</a>.GetInsertBlock();</div>
+<div class="line"><a name="l01603"></a><span class="lineno"> 1603</span>     <span class="keywordflow">if</span> (callBB) {</div>
+<div class="line"><a name="l01604"></a><span class="lineno"> 1604</span>       contBB = CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a9d442ba1c516ff4a2fbf1e118359cb52" title="createBasicBlock - Create an LLVM basic block.">createBasicBlock</a>(<span class="stringliteral">"msgSend.cont"</span>);</div>
+<div class="line"><a name="l01605"></a><span class="lineno"> 1605</span>       CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a982c1e3091df3de75723921687460d3d">Builder</a>.CreateBr(contBB);</div>
+<div class="line"><a name="l01606"></a><span class="lineno"> 1606</span>     }</div>
+<div class="line"><a name="l01607"></a><span class="lineno"> 1607</span> </div>
+<div class="line"><a name="l01608"></a><span class="lineno"> 1608</span>     <span class="comment">// Okay, start emitting the null-receiver block.</span></div>
+<div class="line"><a name="l01609"></a><span class="lineno"> 1609</span>     CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#afdec5412ab40bb1923c689fe093f8871">EmitBlock</a>(NullBB);</div>
+<div class="line"><a name="l01610"></a><span class="lineno"> 1610</span>     </div>
+<div class="line"><a name="l01611"></a><span class="lineno"> 1611</span>     <span class="comment">// Release any consumed arguments we've got.</span></div>
+<div class="line"><a name="l01612"></a><span class="lineno"> 1612</span>     <span class="keywordflow">if</span> (Method) {</div>
+<div class="line"><a name="l01613"></a><span class="lineno"> 1613</span>       CallArgList::const_iterator I = CallArgs.begin();</div>
+<div class="line"><a name="l01614"></a><span class="lineno"> 1614</span>       <span class="keywordflow">for</span> (<a class="code" href="classclang_1_1ObjCMethodDecl.html#a841541ca3ef9960a3474a637e3c8829d">ObjCMethodDecl::param_const_iterator</a> i = Method-><a class="code" href="classclang_1_1ObjCMethodDecl.html#a6e3f1b5626a6e795168b51ff78888bf9">param_begin</a>(),</div>
+<div class="line"><a name="l01615"></a><span class="lineno"> 1615</span>            e = Method-><a class="code" href="classclang_1_1ObjCMethodDecl.html#a41c8a73187b3feac6defb5c1e7987b36">param_end</a>(); i != e; ++i, ++I) {</div>
+<div class="line"><a name="l01616"></a><span class="lineno"> 1616</span>         <span class="keyword">const</span> <a class="code" href="classclang_1_1ParmVarDecl.html" title="ParmVarDecl - Represents a parameter to a function.">ParmVarDecl</a> *ParamDecl = (*i);</div>
+<div class="line"><a name="l01617"></a><span class="lineno"> 1617</span>         <span class="keywordflow">if</span> (ParamDecl-><a class="code" href="classclang_1_1Decl.html#ac60cc8b34313e03a5c40277c5c5ad61b">hasAttr</a><<a class="code" href="classclang_1_1NSConsumedAttr.html">NSConsumedAttr</a>>()) {</div>
+<div class="line"><a name="l01618"></a><span class="lineno"> 1618</span>           <a class="code" href="classclang_1_1CodeGen_1_1RValue.html">RValue</a> RV = I->RV;</div>
+<div class="line"><a name="l01619"></a><span class="lineno"> 1619</span>           assert(RV.<a class="code" href="classclang_1_1CodeGen_1_1RValue.html#aeb42ff4f93c5721cf244b300ba864e3f">isScalar</a>() && </div>
+<div class="line"><a name="l01620"></a><span class="lineno"> 1620</span>                  <span class="stringliteral">"NullReturnState::complete - arg not on object"</span>);</div>
+<div class="line"><a name="l01621"></a><span class="lineno"> 1621</span>           CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a585a58940cba78b5edc132481e3af6ec">EmitARCRelease</a>(RV.<a class="code" href="classclang_1_1CodeGen_1_1RValue.html#a375d011820c192d736c37b316abf1cb9" title="getScalarVal() - Return the Value* of this scalar value.">getScalarVal</a>(), <a class="code" href="namespaceclang_1_1CodeGen.html#abd4c22c5bca7ad596b2a7bdcfe7dcea0a6ec820d64b2841f94059b9e637e82aa7">ARCImpreciseLifetime</a>);</div>
+<div class="line"><a name="l01622"></a><span class="lineno"> 1622</span>         }</div>
+<div class="line"><a name="l01623"></a><span class="lineno"> 1623</span>       }</div>
+<div class="line"><a name="l01624"></a><span class="lineno"> 1624</span>     }</div>
+<div class="line"><a name="l01625"></a><span class="lineno"> 1625</span> </div>
+<div class="line"><a name="l01626"></a><span class="lineno"> 1626</span>     <span class="comment">// The phi code below assumes that we haven't needed any control flow yet.</span></div>
+<div class="line"><a name="l01627"></a><span class="lineno"> 1627</span>     assert(CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a982c1e3091df3de75723921687460d3d">Builder</a>.GetInsertBlock() == NullBB);</div>
+<div class="line"><a name="l01628"></a><span class="lineno"> 1628</span> </div>
+<div class="line"><a name="l01629"></a><span class="lineno"> 1629</span>     <span class="comment">// If we've got a void return, just jump to the continuation block.</span></div>
+<div class="line"><a name="l01630"></a><span class="lineno"> 1630</span>     <span class="keywordflow">if</span> (result.<a class="code" href="classclang_1_1CodeGen_1_1RValue.html#aeb42ff4f93c5721cf244b300ba864e3f">isScalar</a>() && resultType-><a class="code" href="classclang_1_1Type.html#a0ee6d74a089fe24d755d9cfd8bceef3f">isVoidType</a>()) {</div>
+<div class="line"><a name="l01631"></a><span class="lineno"> 1631</span>       <span class="comment">// No jumps required if the message-send was noreturn.</span></div>
+<div class="line"><a name="l01632"></a><span class="lineno"> 1632</span>       <span class="keywordflow">if</span> (contBB) CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#afdec5412ab40bb1923c689fe093f8871">EmitBlock</a>(contBB);</div>
+<div class="line"><a name="l01633"></a><span class="lineno"> 1633</span>       <span class="keywordflow">return</span> result;</div>
+<div class="line"><a name="l01634"></a><span class="lineno"> 1634</span>     }</div>
+<div class="line"><a name="l01635"></a><span class="lineno"> 1635</span> </div>
+<div class="line"><a name="l01636"></a><span class="lineno"> 1636</span>     <span class="comment">// If we've got a scalar return, build a phi.</span></div>
+<div class="line"><a name="l01637"></a><span class="lineno"> 1637</span>     <span class="keywordflow">if</span> (result.<a class="code" href="classclang_1_1CodeGen_1_1RValue.html#aeb42ff4f93c5721cf244b300ba864e3f">isScalar</a>()) {</div>
+<div class="line"><a name="l01638"></a><span class="lineno"> 1638</span>       <span class="comment">// Derive the null-initialization value.</span></div>
+<div class="line"><a name="l01639"></a><span class="lineno"> 1639</span>       llvm::Constant *null = CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#ac90e716619f634d438c02ba73caaafeb">CGM</a>.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#adb80a01436354fb32cedf9a6d639d48c">EmitNullConstant</a>(resultType);</div>
+<div class="line"><a name="l01640"></a><span class="lineno"> 1640</span> </div>
+<div class="line"><a name="l01641"></a><span class="lineno"> 1641</span>       <span class="comment">// If no join is necessary, just flow out.</span></div>
+<div class="line"><a name="l01642"></a><span class="lineno"> 1642</span>       <span class="keywordflow">if</span> (!contBB) <span class="keywordflow">return</span> <a class="code" href="classclang_1_1CodeGen_1_1RValue.html#a1a8427ae63385ddc17ad8c68352d95b2">RValue::get</a>(null);</div>
+<div class="line"><a name="l01643"></a><span class="lineno"> 1643</span> </div>
+<div class="line"><a name="l01644"></a><span class="lineno"> 1644</span>       <span class="comment">// Otherwise, build a phi.</span></div>
+<div class="line"><a name="l01645"></a><span class="lineno"> 1645</span>       CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#afdec5412ab40bb1923c689fe093f8871">EmitBlock</a>(contBB);</div>
+<div class="line"><a name="l01646"></a><span class="lineno"> 1646</span>       llvm::PHINode *phi = CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a982c1e3091df3de75723921687460d3d">Builder</a>.CreatePHI(null->getType(), 2);</div>
+<div class="line"><a name="l01647"></a><span class="lineno"> 1647</span>       phi->addIncoming(result.<a class="code" href="classclang_1_1CodeGen_1_1RValue.html#a375d011820c192d736c37b316abf1cb9" title="getScalarVal() - Return the Value* of this scalar value.">getScalarVal</a>(), callBB);</div>
+<div class="line"><a name="l01648"></a><span class="lineno"> 1648</span>       phi->addIncoming(null, NullBB);</div>
+<div class="line"><a name="l01649"></a><span class="lineno"> 1649</span>       <span class="keywordflow">return</span> <a class="code" href="classclang_1_1CodeGen_1_1RValue.html#a1a8427ae63385ddc17ad8c68352d95b2">RValue::get</a>(phi);</div>
+<div class="line"><a name="l01650"></a><span class="lineno"> 1650</span>     }</div>
+<div class="line"><a name="l01651"></a><span class="lineno"> 1651</span> </div>
+<div class="line"><a name="l01652"></a><span class="lineno"> 1652</span>     <span class="comment">// If we've got an aggregate return, null the buffer out.</span></div>
+<div class="line"><a name="l01653"></a><span class="lineno"> 1653</span>     <span class="comment">// FIXME: maybe we should be doing things differently for all the</span></div>
+<div class="line"><a name="l01654"></a><span class="lineno"> 1654</span>     <span class="comment">// cases where the ABI has us returning (1) non-agg values in</span></div>
+<div class="line"><a name="l01655"></a><span class="lineno"> 1655</span>     <span class="comment">// memory or (2) agg values in registers.</span></div>
+<div class="line"><a name="l01656"></a><span class="lineno"> 1656</span>     <span class="keywordflow">if</span> (result.<a class="code" href="classclang_1_1CodeGen_1_1RValue.html#a9de028e086fc0698020b18ebaf2806f5">isAggregate</a>()) {</div>
+<div class="line"><a name="l01657"></a><span class="lineno"> 1657</span>       assert(result.<a class="code" href="classclang_1_1CodeGen_1_1RValue.html#a9de028e086fc0698020b18ebaf2806f5">isAggregate</a>() && <span class="stringliteral">"null init of non-aggregate result?"</span>);</div>
+<div class="line"><a name="l01658"></a><span class="lineno"> 1658</span>       CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a7344a3814e9742710d31ef902d639de2">EmitNullInitialization</a>(result.<a class="code" href="classclang_1_1CodeGen_1_1RValue.html#ae56c586d571b8d6d1cea9a78b89d9439" title="getAggregateAddr() - Return the Value* of the address of the aggregate.">getAggregateAddr</a>(), resultType);</div>
+<div class="line"><a name="l01659"></a><span class="lineno"> 1659</span>       <span class="keywordflow">if</span> (contBB) CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#afdec5412ab40bb1923c689fe093f8871">EmitBlock</a>(contBB);</div>
+<div class="line"><a name="l01660"></a><span class="lineno"> 1660</span>       <span class="keywordflow">return</span> result;</div>
+<div class="line"><a name="l01661"></a><span class="lineno"> 1661</span>     }</div>
+<div class="line"><a name="l01662"></a><span class="lineno"> 1662</span> </div>
+<div class="line"><a name="l01663"></a><span class="lineno"> 1663</span>     <span class="comment">// Complex types.</span></div>
+<div class="line"><a name="l01664"></a><span class="lineno"> 1664</span>     CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#afdec5412ab40bb1923c689fe093f8871">EmitBlock</a>(contBB);</div>
+<div class="line"><a name="l01665"></a><span class="lineno"> 1665</span>     <a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#ae417ed4971c18c5ce0607e1be62ec117">CodeGenFunction::ComplexPairTy</a> callResult = result.<a class="code" href="classclang_1_1CodeGen_1_1RValue.html#a602381c7fce92d8069962efbeb1d22f6">getComplexVal</a>();</div>
+<div class="line"><a name="l01666"></a><span class="lineno"> 1666</span> </div>
+<div class="line"><a name="l01667"></a><span class="lineno"> 1667</span>     <span class="comment">// Find the scalar type and its zero value.</span></div>
+<div class="line"><a name="l01668"></a><span class="lineno"> 1668</span>     llvm::Type *scalarTy = callResult.first->getType();</div>
+<div class="line"><a name="l01669"></a><span class="lineno"> 1669</span>     llvm::Constant *scalarZero = llvm::Constant::getNullValue(scalarTy);</div>
+<div class="line"><a name="l01670"></a><span class="lineno"> 1670</span> </div>
+<div class="line"><a name="l01671"></a><span class="lineno"> 1671</span>     <span class="comment">// Build phis for both coordinates.</span></div>
+<div class="line"><a name="l01672"></a><span class="lineno"> 1672</span>     llvm::PHINode *real = CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a982c1e3091df3de75723921687460d3d">Builder</a>.CreatePHI(scalarTy, 2);</div>
+<div class="line"><a name="l01673"></a><span class="lineno"> 1673</span>     real->addIncoming(callResult.first, callBB);</div>
+<div class="line"><a name="l01674"></a><span class="lineno"> 1674</span>     real->addIncoming(scalarZero, NullBB);</div>
+<div class="line"><a name="l01675"></a><span class="lineno"> 1675</span>     llvm::PHINode *imag = CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a982c1e3091df3de75723921687460d3d">Builder</a>.CreatePHI(scalarTy, 2);</div>
+<div class="line"><a name="l01676"></a><span class="lineno"> 1676</span>     imag->addIncoming(callResult.second, callBB);</div>
+<div class="line"><a name="l01677"></a><span class="lineno"> 1677</span>     imag->addIncoming(scalarZero, NullBB);</div>
+<div class="line"><a name="l01678"></a><span class="lineno"> 1678</span>     <span class="keywordflow">return</span> <a class="code" href="classclang_1_1CodeGen_1_1RValue.html#a7e337836177fcde90cd36b8a241ab510">RValue::getComplex</a>(real, imag);</div>
+<div class="line"><a name="l01679"></a><span class="lineno"> 1679</span>   }</div>
+<div class="line"><a name="l01680"></a><span class="lineno"> 1680</span> };</div>
+<div class="line"><a name="l01681"></a><span class="lineno"> 1681</span> </div>
+<div class="line"><a name="l01682"></a><span class="lineno"> 1682</span> } <span class="comment">// end anonymous namespace</span></div>
+<div class="line"><a name="l01683"></a><span class="lineno"> 1683</span> </div>
+<div class="line"><a name="l01684"></a><span class="lineno"> 1684</span> <span class="comment">/* *** Helper Functions *** */</span></div>
+<div class="line"><a name="l01685"></a><span class="lineno"> 1685</span> <span class="comment"></span></div>
+<div class="line"><a name="l01686"></a><span class="lineno"> 1686</span> <span class="comment">/// getConstantGEP() - Help routine to construct simple GEPs.</span></div>
+<div class="line"><a name="l01687"></a><span class="lineno"><a class="code" href="CGObjCMac_8cpp.html#a7019bfd1be3a3a5bc7361895e65dd1f1"> 1687</a></span> <span class="comment"></span><span class="keyword">static</span> llvm::Constant *<a class="code" href="CGObjCMac_8cpp.html#a7019bfd1be3a3a5bc7361895e65dd1f1" title="getConstantGEP() - Help routine to construct simple GEPs.">getConstantGEP</a>(llvm::LLVMContext &VMContext,</div>
+<div class="line"><a name="l01688"></a><span class="lineno"> 1688</span>                                       llvm::Constant *C,</div>
+<div class="line"><a name="l01689"></a><span class="lineno"> 1689</span>                                       <span class="keywordtype">unsigned</span> idx0,</div>
+<div class="line"><a name="l01690"></a><span class="lineno"> 1690</span>                                       <span class="keywordtype">unsigned</span> idx1) {</div>
+<div class="line"><a name="l01691"></a><span class="lineno"> 1691</span>   <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *Idxs[] = {</div>
+<div class="line"><a name="l01692"></a><span class="lineno"> 1692</span>     llvm::ConstantInt::get(llvm::Type::getInt32Ty(VMContext), idx0),</div>
+<div class="line"><a name="l01693"></a><span class="lineno"> 1693</span>     llvm::ConstantInt::get(llvm::Type::getInt32Ty(VMContext), idx1)</div>
+<div class="line"><a name="l01694"></a><span class="lineno"> 1694</span>   };</div>
+<div class="line"><a name="l01695"></a><span class="lineno"> 1695</span>   <span class="keywordflow">return</span> llvm::ConstantExpr::getGetElementPtr(C, Idxs);</div>
+<div class="line"><a name="l01696"></a><span class="lineno"> 1696</span> }</div>
+<div class="line"><a name="l01697"></a><span class="lineno"> 1697</span> <span class="comment"></span></div>
+<div class="line"><a name="l01698"></a><span class="lineno"> 1698</span> <span class="comment">/// hasObjCExceptionAttribute - Return true if this class or any super</span></div>
+<div class="line"><a name="l01699"></a><span class="lineno"> 1699</span> <span class="comment">/// class has the __objc_exception__ attribute.</span></div>
+<div class="line"><a name="l01700"></a><span class="lineno"><a class="code" href="CGObjCMac_8cpp.html#af61afb0e204adc10e273ad9fa23906b9"> 1700</a></span> <span class="comment"></span><span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="CGObjCMac_8cpp.html#af61afb0e204adc10e273ad9fa23906b9">hasObjCExceptionAttribute</a>(<a class="code" href="classclang_1_1ASTContext.html" title="Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...">ASTContext</a> &<a class="code" href="ASTMatchFinder_8cpp.html#a779280869b9fac47a9bc391e7709171f">Context</a>,</div>
+<div class="line"><a name="l01701"></a><span class="lineno"> 1701</span>                                       <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCInterfaceDecl.html" title="Represents an ObjC class declaration.">ObjCInterfaceDecl</a> *OID) {</div>
+<div class="line"><a name="l01702"></a><span class="lineno"> 1702</span>   <span class="keywordflow">if</span> (OID-><a class="code" href="classclang_1_1Decl.html#ac60cc8b34313e03a5c40277c5c5ad61b">hasAttr</a><<a class="code" href="classclang_1_1ObjCExceptionAttr.html">ObjCExceptionAttr</a>>())</div>
+<div class="line"><a name="l01703"></a><span class="lineno"> 1703</span>     <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01704"></a><span class="lineno"> 1704</span>   <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCInterfaceDecl.html" title="Represents an ObjC class declaration.">ObjCInterfaceDecl</a> *Super = OID-><a class="code" href="classclang_1_1ObjCInterfaceDecl.html#a5f23eb5cda9e27622e71382d1dc4b95d">getSuperClass</a>())</div>
+<div class="line"><a name="l01705"></a><span class="lineno"> 1705</span>     <span class="keywordflow">return</span> <a class="code" href="CGObjCMac_8cpp.html#af61afb0e204adc10e273ad9fa23906b9">hasObjCExceptionAttribute</a>(Context, Super);</div>
+<div class="line"><a name="l01706"></a><span class="lineno"> 1706</span>   <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01707"></a><span class="lineno"> 1707</span> }</div>
+<div class="line"><a name="l01708"></a><span class="lineno"> 1708</span> </div>
+<div class="line"><a name="l01709"></a><span class="lineno"> 1709</span> <span class="comment">/* *** CGObjCMac Public Interface *** */</span></div>
+<div class="line"><a name="l01710"></a><span class="lineno"> 1710</span> </div>
+<div class="line"><a name="l01711"></a><span class="lineno"> 1711</span> CGObjCMac::CGObjCMac(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html">CodeGen::CodeGenModule</a> &cgm) : CGObjCCommonMac(cgm),</div>
+<div class="line"><a name="l01712"></a><span class="lineno"> 1712</span>                                                     ObjCTypes(cgm) {</div>
+<div class="line"><a name="l01713"></a><span class="lineno"> 1713</span>   ObjCABI = 1;</div>
+<div class="line"><a name="l01714"></a><span class="lineno"> 1714</span>   EmitImageInfo();</div>
+<div class="line"><a name="l01715"></a><span class="lineno"> 1715</span> }</div>
+<div class="line"><a name="l01716"></a><span class="lineno"> 1716</span> <span class="comment"></span></div>
+<div class="line"><a name="l01717"></a><span class="lineno"> 1717</span> <span class="comment">/// GetClass - Return a reference to the class for the given interface</span></div>
+<div class="line"><a name="l01718"></a><span class="lineno"> 1718</span> <span class="comment">/// decl.</span></div>
+<div class="line"><a name="l01719"></a><span class="lineno"> 1719</span> <span class="comment"></span><a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *CGObjCMac::GetClass(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGenFunction</a> &CGF,</div>
+<div class="line"><a name="l01720"></a><span class="lineno"> 1720</span>                                  <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCInterfaceDecl.html" title="Represents an ObjC class declaration.">ObjCInterfaceDecl</a> *ID) {</div>
+<div class="line"><a name="l01721"></a><span class="lineno"> 1721</span>   <span class="keywordflow">return</span> EmitClassRef(CGF, ID);</div>
+<div class="line"><a name="l01722"></a><span class="lineno"> 1722</span> }</div>
+<div class="line"><a name="l01723"></a><span class="lineno"> 1723</span> <span class="comment"></span></div>
+<div class="line"><a name="l01724"></a><span class="lineno"> 1724</span> <span class="comment">/// GetSelector - Return the pointer to the unique'd string for this selector.</span></div>
+<div class="line"><a name="l01725"></a><span class="lineno"> 1725</span> <span class="comment"></span><a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *CGObjCMac::GetSelector(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGenFunction</a> &CGF, <a class="code" href="classclang_1_1Selector.html" title="Smart pointer class that efficiently represents Objective-C method names.">Selector</a> Sel, </div>
+<div class="line"><a name="l01726"></a><span class="lineno"> 1726</span>                                     <span class="keywordtype">bool</span> lval) {</div>
+<div class="line"><a name="l01727"></a><span class="lineno"> 1727</span>   <span class="keywordflow">return</span> EmitSelector(CGF, Sel, lval);</div>
+<div class="line"><a name="l01728"></a><span class="lineno"> 1728</span> }</div>
+<div class="line"><a name="l01729"></a><span class="lineno"> 1729</span> <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *CGObjCMac::GetSelector(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGenFunction</a> &CGF, <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCMethodDecl.html">ObjCMethodDecl</a></div>
+<div class="line"><a name="l01730"></a><span class="lineno"> 1730</span>                                     *Method) {</div>
+<div class="line"><a name="l01731"></a><span class="lineno"> 1731</span>   <span class="keywordflow">return</span> EmitSelector(CGF, Method-><a class="code" href="classclang_1_1ObjCMethodDecl.html#aa91ae093f29f2781c87f725e42fddf98">getSelector</a>());</div>
+<div class="line"><a name="l01732"></a><span class="lineno"> 1732</span> }</div>
+<div class="line"><a name="l01733"></a><span class="lineno"> 1733</span> </div>
+<div class="line"><a name="l01734"></a><span class="lineno"> 1734</span> llvm::Constant *CGObjCMac::GetEHType(<a class="code" href="classclang_1_1QualType.html">QualType</a> T) {</div>
+<div class="line"><a name="l01735"></a><span class="lineno"> 1735</span>   <span class="keywordflow">if</span> (T-><a class="code" href="classclang_1_1Type.html#a804794071498377a09e30e5e3399580e">isObjCIdType</a>() ||</div>
+<div class="line"><a name="l01736"></a><span class="lineno"> 1736</span>       T-><a class="code" href="classclang_1_1Type.html#aa60914a09293ea3aaf876bf9a5890f06">isObjCQualifiedIdType</a>()) {</div>
+<div class="line"><a name="l01737"></a><span class="lineno"> 1737</span>     <span class="keywordflow">return</span> CGM.GetAddrOfRTTIDescriptor(</div>
+<div class="line"><a name="l01738"></a><span class="lineno"> 1738</span>               CGM.getContext().getObjCIdRedefinitionType(), <span class="comment">/*ForEH=*/</span><span class="keyword">true</span>);</div>
+<div class="line"><a name="l01739"></a><span class="lineno"> 1739</span>   }</div>
+<div class="line"><a name="l01740"></a><span class="lineno"> 1740</span>   <span class="keywordflow">if</span> (T-><a class="code" href="classclang_1_1Type.html#a3eec62972e7cfc1f7f07d42d38b5323d">isObjCClassType</a>() ||</div>
+<div class="line"><a name="l01741"></a><span class="lineno"> 1741</span>       T-><a class="code" href="classclang_1_1Type.html#abf53c8015e1e73c748abb4988e066038">isObjCQualifiedClassType</a>()) {</div>
+<div class="line"><a name="l01742"></a><span class="lineno"> 1742</span>     <span class="keywordflow">return</span> CGM.GetAddrOfRTTIDescriptor(</div>
+<div class="line"><a name="l01743"></a><span class="lineno"> 1743</span>              CGM.getContext().getObjCClassRedefinitionType(), <span class="comment">/*ForEH=*/</span><span class="keyword">true</span>);</div>
+<div class="line"><a name="l01744"></a><span class="lineno"> 1744</span>   }</div>
+<div class="line"><a name="l01745"></a><span class="lineno"> 1745</span>   <span class="keywordflow">if</span> (T-><a class="code" href="classclang_1_1Type.html#aa9be9c3ceec53da8edbbb86bbf895fff">isObjCObjectPointerType</a>())</div>
+<div class="line"><a name="l01746"></a><span class="lineno"> 1746</span>     <span class="keywordflow">return</span> CGM.GetAddrOfRTTIDescriptor(T,  <span class="comment">/*ForEH=*/</span><span class="keyword">true</span>);</div>
+<div class="line"><a name="l01747"></a><span class="lineno"> 1747</span>   </div>
+<div class="line"><a name="l01748"></a><span class="lineno"> 1748</span>   llvm_unreachable(<span class="stringliteral">"asking for catch type for ObjC type in fragile runtime"</span>);</div>
+<div class="line"><a name="l01749"></a><span class="lineno"> 1749</span> }</div>
+<div class="line"><a name="l01750"></a><span class="lineno"> 1750</span> <span class="comment"></span></div>
+<div class="line"><a name="l01751"></a><span class="lineno"> 1751</span> <span class="comment">/// Generate a constant CFString object.</span></div>
+<div class="line"><a name="l01752"></a><span class="lineno"> 1752</span> <span class="comment"></span><span class="comment">/*</span></div>
+<div class="line"><a name="l01753"></a><span class="lineno"> 1753</span> <span class="comment">  struct __builtin_CFString {</span></div>
+<div class="line"><a name="l01754"></a><span class="lineno"> 1754</span> <span class="comment">  const int *isa; // point to __CFConstantStringClassReference</span></div>
+<div class="line"><a name="l01755"></a><span class="lineno"> 1755</span> <span class="comment">  int flags;</span></div>
+<div class="line"><a name="l01756"></a><span class="lineno"> 1756</span> <span class="comment">  const char *str;</span></div>
+<div class="line"><a name="l01757"></a><span class="lineno"> 1757</span> <span class="comment">  long length;</span></div>
+<div class="line"><a name="l01758"></a><span class="lineno"> 1758</span> <span class="comment">  };</span></div>
+<div class="line"><a name="l01759"></a><span class="lineno"> 1759</span> <span class="comment">*/</span></div>
+<div class="line"><a name="l01760"></a><span class="lineno"> 1760</span> <span class="comment"></span></div>
+<div class="line"><a name="l01761"></a><span class="lineno"> 1761</span> <span class="comment">/// or Generate a constant NSString object.</span></div>
+<div class="line"><a name="l01762"></a><span class="lineno"> 1762</span> <span class="comment"></span><span class="comment">/*</span></div>
+<div class="line"><a name="l01763"></a><span class="lineno"> 1763</span> <span class="comment">   struct __builtin_NSString {</span></div>
+<div class="line"><a name="l01764"></a><span class="lineno"> 1764</span> <span class="comment">     const int *isa; // point to __NSConstantStringClassReference</span></div>
+<div class="line"><a name="l01765"></a><span class="lineno"> 1765</span> <span class="comment">     const char *str;</span></div>
+<div class="line"><a name="l01766"></a><span class="lineno"> 1766</span> <span class="comment">     unsigned int length;</span></div>
+<div class="line"><a name="l01767"></a><span class="lineno"> 1767</span> <span class="comment">   };</span></div>
+<div class="line"><a name="l01768"></a><span class="lineno"> 1768</span> <span class="comment">*/</span></div>
+<div class="line"><a name="l01769"></a><span class="lineno"> 1769</span> </div>
+<div class="line"><a name="l01770"></a><span class="lineno"> 1770</span> llvm::Constant *CGObjCCommonMac::GenerateConstantString(</div>
+<div class="line"><a name="l01771"></a><span class="lineno"> 1771</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1StringLiteral.html">StringLiteral</a> *SL) {</div>
+<div class="line"><a name="l01772"></a><span class="lineno"> 1772</span>   <span class="keywordflow">return</span> (CGM.getLangOpts().NoConstantCFStrings == 0 ? </div>
+<div class="line"><a name="l01773"></a><span class="lineno"> 1773</span>           CGM.GetAddrOfConstantCFString(SL) :</div>
+<div class="line"><a name="l01774"></a><span class="lineno"> 1774</span>           CGM.GetAddrOfConstantString(SL));</div>
+<div class="line"><a name="l01775"></a><span class="lineno"> 1775</span> }</div>
+<div class="line"><a name="l01776"></a><span class="lineno"> 1776</span> </div>
+<div class="line"><a name="l01777"></a><span class="lineno"> 1777</span> <span class="keyword">enum</span> {</div>
+<div class="line"><a name="l01778"></a><span class="lineno"><a class="code" href="CGObjCMac_8cpp.html#aa52ea6a123f47db5e6b145e5fc5e369aadfbc4169075e562ea0a4595addc75ad5"> 1778</a></span>   <a class="code" href="CGObjCMac_8cpp.html#aa52ea6a123f47db5e6b145e5fc5e369aadfbc4169075e562ea0a4595addc75ad5">kCFTaggedObjectID_Integer</a> = (1 << 1) + 1</div>
+<div class="line"><a name="l01779"></a><span class="lineno"> 1779</span> };</div>
+<div class="line"><a name="l01780"></a><span class="lineno"> 1780</span> <span class="comment"></span></div>
+<div class="line"><a name="l01781"></a><span class="lineno"> 1781</span> <span class="comment">/// Generates a message send where the super is the receiver.  This is</span></div>
+<div class="line"><a name="l01782"></a><span class="lineno"> 1782</span> <span class="comment">/// a message send to self with special delivery semantics indicating</span></div>
+<div class="line"><a name="l01783"></a><span class="lineno"> 1783</span> <span class="comment">/// which class's method should be called.</span></div>
+<div class="line"><a name="l01784"></a><span class="lineno"> 1784</span> <span class="comment"></span><a class="code" href="classclang_1_1CodeGen_1_1RValue.html">CodeGen::RValue</a></div>
+<div class="line"><a name="l01785"></a><span class="lineno"> 1785</span> CGObjCMac::GenerateMessageSendSuper(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGen::CodeGenFunction</a> &CGF,</div>
+<div class="line"><a name="l01786"></a><span class="lineno"> 1786</span>                                     <a class="code" href="classclang_1_1CodeGen_1_1ReturnValueSlot.html">ReturnValueSlot</a> Return,</div>
+<div class="line"><a name="l01787"></a><span class="lineno"> 1787</span>                                     <a class="code" href="classclang_1_1QualType.html">QualType</a> ResultType,</div>
+<div class="line"><a name="l01788"></a><span class="lineno"> 1788</span>                                     <a class="code" href="classclang_1_1Selector.html" title="Smart pointer class that efficiently represents Objective-C method names.">Selector</a> Sel,</div>
+<div class="line"><a name="l01789"></a><span class="lineno"> 1789</span>                                     <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCInterfaceDecl.html" title="Represents an ObjC class declaration.">ObjCInterfaceDecl</a> *Class,</div>
+<div class="line"><a name="l01790"></a><span class="lineno"> 1790</span>                                     <span class="keywordtype">bool</span> isCategoryImpl,</div>
+<div class="line"><a name="l01791"></a><span class="lineno"> 1791</span>                                     <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *Receiver,</div>
+<div class="line"><a name="l01792"></a><span class="lineno"> 1792</span>                                     <span class="keywordtype">bool</span> IsClassMessage,</div>
+<div class="line"><a name="l01793"></a><span class="lineno"> 1793</span>                                     <span class="keyword">const</span> <a class="code" href="classclang_1_1CodeGen_1_1CallArgList.html">CodeGen::CallArgList</a> &CallArgs,</div>
+<div class="line"><a name="l01794"></a><span class="lineno"> 1794</span>                                     <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCMethodDecl.html">ObjCMethodDecl</a> *Method) {</div>
+<div class="line"><a name="l01795"></a><span class="lineno"> 1795</span>   <span class="comment">// Create and init a super structure; this is a (receiver, class)</span></div>
+<div class="line"><a name="l01796"></a><span class="lineno"> 1796</span>   <span class="comment">// pair we will pass to objc_msgSendSuper.</span></div>
+<div class="line"><a name="l01797"></a><span class="lineno"> 1797</span>   <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *ObjCSuper =</div>
+<div class="line"><a name="l01798"></a><span class="lineno"> 1798</span>     CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a1c72e741c84049695bde11b7df94c332">CreateTempAlloca</a>(ObjCTypes.SuperTy, <span class="stringliteral">"objc_super"</span>);</div>
+<div class="line"><a name="l01799"></a><span class="lineno"> 1799</span>   <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *ReceiverAsObject =</div>
+<div class="line"><a name="l01800"></a><span class="lineno"> 1800</span>     CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a982c1e3091df3de75723921687460d3d">Builder</a>.CreateBitCast(Receiver, ObjCTypes.ObjectPtrTy);</div>
+<div class="line"><a name="l01801"></a><span class="lineno"> 1801</span>   CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a982c1e3091df3de75723921687460d3d">Builder</a>.CreateStore(ReceiverAsObject,</div>
+<div class="line"><a name="l01802"></a><span class="lineno"> 1802</span>                           CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a982c1e3091df3de75723921687460d3d">Builder</a>.CreateStructGEP(ObjCSuper, 0));</div>
+<div class="line"><a name="l01803"></a><span class="lineno"> 1803</span> </div>
+<div class="line"><a name="l01804"></a><span class="lineno"> 1804</span>   <span class="comment">// If this is a class message the metaclass is passed as the target.</span></div>
+<div class="line"><a name="l01805"></a><span class="lineno"> 1805</span>   <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *Target;</div>
+<div class="line"><a name="l01806"></a><span class="lineno"> 1806</span>   <span class="keywordflow">if</span> (IsClassMessage) {</div>
+<div class="line"><a name="l01807"></a><span class="lineno"> 1807</span>     <span class="keywordflow">if</span> (isCategoryImpl) {</div>
+<div class="line"><a name="l01808"></a><span class="lineno"> 1808</span>       <span class="comment">// Message sent to 'super' in a class method defined in a category</span></div>
+<div class="line"><a name="l01809"></a><span class="lineno"> 1809</span>       <span class="comment">// implementation requires an odd treatment.</span></div>
+<div class="line"><a name="l01810"></a><span class="lineno"> 1810</span>       <span class="comment">// If we are in a class method, we must retrieve the</span></div>
+<div class="line"><a name="l01811"></a><span class="lineno"> 1811</span>       <span class="comment">// _metaclass_ for the current class, pointed at by</span></div>
+<div class="line"><a name="l01812"></a><span class="lineno"> 1812</span>       <span class="comment">// the class's "isa" pointer.  The following assumes that</span></div>
+<div class="line"><a name="l01813"></a><span class="lineno"> 1813</span>       <span class="comment">// isa" is the first ivar in a class (which it must be).</span></div>
+<div class="line"><a name="l01814"></a><span class="lineno"> 1814</span>       Target = EmitClassRef(CGF, Class-><a class="code" href="classclang_1_1ObjCInterfaceDecl.html#a5f23eb5cda9e27622e71382d1dc4b95d">getSuperClass</a>());</div>
+<div class="line"><a name="l01815"></a><span class="lineno"> 1815</span>       Target = CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a982c1e3091df3de75723921687460d3d">Builder</a>.CreateStructGEP(Target, 0);</div>
+<div class="line"><a name="l01816"></a><span class="lineno"> 1816</span>       Target = CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a982c1e3091df3de75723921687460d3d">Builder</a>.CreateLoad(Target);</div>
+<div class="line"><a name="l01817"></a><span class="lineno"> 1817</span>     } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l01818"></a><span class="lineno"> 1818</span>       <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *MetaClassPtr = EmitMetaClassRef(Class);</div>
+<div class="line"><a name="l01819"></a><span class="lineno"> 1819</span>       <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *SuperPtr = CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a982c1e3091df3de75723921687460d3d">Builder</a>.CreateStructGEP(MetaClassPtr, 1);</div>
+<div class="line"><a name="l01820"></a><span class="lineno"> 1820</span>       <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *Super = CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a982c1e3091df3de75723921687460d3d">Builder</a>.CreateLoad(SuperPtr);</div>
+<div class="line"><a name="l01821"></a><span class="lineno"> 1821</span>       Target = Super;</div>
+<div class="line"><a name="l01822"></a><span class="lineno"> 1822</span>     }</div>
+<div class="line"><a name="l01823"></a><span class="lineno"> 1823</span>   } </div>
+<div class="line"><a name="l01824"></a><span class="lineno"> 1824</span>   <span class="keywordflow">else</span> <span class="keywordflow">if</span> (isCategoryImpl)</div>
+<div class="line"><a name="l01825"></a><span class="lineno"> 1825</span>     Target = EmitClassRef(CGF, Class-><a class="code" href="classclang_1_1ObjCInterfaceDecl.html#a5f23eb5cda9e27622e71382d1dc4b95d">getSuperClass</a>());</div>
+<div class="line"><a name="l01826"></a><span class="lineno"> 1826</span>   <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l01827"></a><span class="lineno"> 1827</span>     <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *ClassPtr = EmitSuperClassRef(Class);</div>
+<div class="line"><a name="l01828"></a><span class="lineno"> 1828</span>     ClassPtr = CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a982c1e3091df3de75723921687460d3d">Builder</a>.CreateStructGEP(ClassPtr, 1);</div>
+<div class="line"><a name="l01829"></a><span class="lineno"> 1829</span>     Target = CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a982c1e3091df3de75723921687460d3d">Builder</a>.CreateLoad(ClassPtr);</div>
+<div class="line"><a name="l01830"></a><span class="lineno"> 1830</span>   }</div>
+<div class="line"><a name="l01831"></a><span class="lineno"> 1831</span>   <span class="comment">// FIXME: We shouldn't need to do this cast, rectify the ASTContext and</span></div>
+<div class="line"><a name="l01832"></a><span class="lineno"> 1832</span>   <span class="comment">// ObjCTypes types.</span></div>
+<div class="line"><a name="l01833"></a><span class="lineno"> 1833</span>   llvm::Type *ClassTy =</div>
+<div class="line"><a name="l01834"></a><span class="lineno"> 1834</span>     CGM.getTypes().ConvertType(CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a8a474f8f10090f44fc3e331d1e4b9ce0">getContext</a>().<a class="code" href="classclang_1_1ASTContext.html#ade76e845ea190702bdf8e274c2aef90c" title="Represents the Objective-C Class type.">getObjCClassType</a>());</div>
+<div class="line"><a name="l01835"></a><span class="lineno"> 1835</span>   Target = CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a982c1e3091df3de75723921687460d3d">Builder</a>.CreateBitCast(Target, ClassTy);</div>
+<div class="line"><a name="l01836"></a><span class="lineno"> 1836</span>   CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a982c1e3091df3de75723921687460d3d">Builder</a>.CreateStore(Target,</div>
+<div class="line"><a name="l01837"></a><span class="lineno"> 1837</span>                           CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a982c1e3091df3de75723921687460d3d">Builder</a>.CreateStructGEP(ObjCSuper, 1));</div>
+<div class="line"><a name="l01838"></a><span class="lineno"> 1838</span>   <span class="keywordflow">return</span> EmitMessageSend(CGF, Return, ResultType,</div>
+<div class="line"><a name="l01839"></a><span class="lineno"> 1839</span>                          EmitSelector(CGF, Sel),</div>
+<div class="line"><a name="l01840"></a><span class="lineno"> 1840</span>                          ObjCSuper, ObjCTypes.SuperPtrCTy,</div>
+<div class="line"><a name="l01841"></a><span class="lineno"> 1841</span>                          <span class="keyword">true</span>, CallArgs, Method, ObjCTypes);</div>
+<div class="line"><a name="l01842"></a><span class="lineno"> 1842</span> }</div>
+<div class="line"><a name="l01843"></a><span class="lineno"> 1843</span> <span class="comment"></span></div>
+<div class="line"><a name="l01844"></a><span class="lineno"> 1844</span> <span class="comment">/// Generate code for a message send expression.</span></div>
+<div class="line"><a name="l01845"></a><span class="lineno"> 1845</span> <span class="comment"></span><a class="code" href="classclang_1_1CodeGen_1_1RValue.html">CodeGen::RValue</a> CGObjCMac::GenerateMessageSend(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGen::CodeGenFunction</a> &CGF,</div>
+<div class="line"><a name="l01846"></a><span class="lineno"> 1846</span>                                                <a class="code" href="classclang_1_1CodeGen_1_1ReturnValueSlot.html">ReturnValueSlot</a> Return,</div>
+<div class="line"><a name="l01847"></a><span class="lineno"> 1847</span>                                                <a class="code" href="classclang_1_1QualType.html">QualType</a> ResultType,</div>
+<div class="line"><a name="l01848"></a><span class="lineno"> 1848</span>                                                <a class="code" href="classclang_1_1Selector.html" title="Smart pointer class that efficiently represents Objective-C method names.">Selector</a> Sel,</div>
+<div class="line"><a name="l01849"></a><span class="lineno"> 1849</span>                                                <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *Receiver,</div>
+<div class="line"><a name="l01850"></a><span class="lineno"> 1850</span>                                                <span class="keyword">const</span> <a class="code" href="classclang_1_1CodeGen_1_1CallArgList.html">CallArgList</a> &CallArgs,</div>
+<div class="line"><a name="l01851"></a><span class="lineno"> 1851</span>                                                <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCInterfaceDecl.html" title="Represents an ObjC class declaration.">ObjCInterfaceDecl</a> *Class,</div>
+<div class="line"><a name="l01852"></a><span class="lineno"> 1852</span>                                                <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCMethodDecl.html">ObjCMethodDecl</a> *Method) {</div>
+<div class="line"><a name="l01853"></a><span class="lineno"> 1853</span>   <span class="keywordflow">return</span> EmitMessageSend(CGF, Return, ResultType,</div>
+<div class="line"><a name="l01854"></a><span class="lineno"> 1854</span>                          EmitSelector(CGF, Sel),</div>
+<div class="line"><a name="l01855"></a><span class="lineno"> 1855</span>                          Receiver, CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a8a474f8f10090f44fc3e331d1e4b9ce0">getContext</a>().<a class="code" href="classclang_1_1ASTContext.html#a46cf0bb1b4e31396963afe4f98956273" title="Represents the Objective-CC id type.">getObjCIdType</a>(),</div>
+<div class="line"><a name="l01856"></a><span class="lineno"> 1856</span>                          <span class="keyword">false</span>, CallArgs, Method, ObjCTypes);</div>
+<div class="line"><a name="l01857"></a><span class="lineno"> 1857</span> }</div>
+<div class="line"><a name="l01858"></a><span class="lineno"> 1858</span> </div>
+<div class="line"><a name="l01859"></a><span class="lineno"> 1859</span> <a class="code" href="classclang_1_1CodeGen_1_1RValue.html">CodeGen::RValue</a></div>
+<div class="line"><a name="l01860"></a><span class="lineno"> 1860</span> CGObjCCommonMac::EmitMessageSend(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGen::CodeGenFunction</a> &CGF,</div>
+<div class="line"><a name="l01861"></a><span class="lineno"> 1861</span>                                  <a class="code" href="classclang_1_1CodeGen_1_1ReturnValueSlot.html">ReturnValueSlot</a> Return,</div>
+<div class="line"><a name="l01862"></a><span class="lineno"> 1862</span>                                  <a class="code" href="classclang_1_1QualType.html">QualType</a> ResultType,</div>
+<div class="line"><a name="l01863"></a><span class="lineno"> 1863</span>                                  <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *Sel,</div>
+<div class="line"><a name="l01864"></a><span class="lineno"> 1864</span>                                  <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *Arg0,</div>
+<div class="line"><a name="l01865"></a><span class="lineno"> 1865</span>                                  <a class="code" href="classclang_1_1QualType.html">QualType</a> Arg0Ty,</div>
+<div class="line"><a name="l01866"></a><span class="lineno"> 1866</span>                                  <span class="keywordtype">bool</span> IsSuper,</div>
+<div class="line"><a name="l01867"></a><span class="lineno"> 1867</span>                                  <span class="keyword">const</span> <a class="code" href="classclang_1_1CodeGen_1_1CallArgList.html">CallArgList</a> &CallArgs,</div>
+<div class="line"><a name="l01868"></a><span class="lineno"> 1868</span>                                  <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCMethodDecl.html">ObjCMethodDecl</a> *Method,</div>
+<div class="line"><a name="l01869"></a><span class="lineno"> 1869</span>                                  <span class="keyword">const</span> ObjCCommonTypesHelper &ObjCTypes) {</div>
+<div class="line"><a name="l01870"></a><span class="lineno"> 1870</span>   <a class="code" href="classclang_1_1CodeGen_1_1CallArgList.html">CallArgList</a> ActualArgs;</div>
+<div class="line"><a name="l01871"></a><span class="lineno"> 1871</span>   <span class="keywordflow">if</span> (!IsSuper)</div>
+<div class="line"><a name="l01872"></a><span class="lineno"> 1872</span>     Arg0 = CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a982c1e3091df3de75723921687460d3d">Builder</a>.CreateBitCast(Arg0, ObjCTypes.ObjectPtrTy);</div>
+<div class="line"><a name="l01873"></a><span class="lineno"> 1873</span>   ActualArgs.<a class="code" href="classclang_1_1CodeGen_1_1CallArgList.html#a1045111747e571d65a465fef8cdf9abd">add</a>(RValue::get(Arg0), Arg0Ty);</div>
+<div class="line"><a name="l01874"></a><span class="lineno"> 1874</span>   ActualArgs.<a class="code" href="classclang_1_1CodeGen_1_1CallArgList.html#a1045111747e571d65a465fef8cdf9abd">add</a>(RValue::get(Sel), CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a8a474f8f10090f44fc3e331d1e4b9ce0">getContext</a>().<a class="code" href="classclang_1_1ASTContext.html#ab98cf62cc837911c586ce978e32d3b2f" title="Retrieve the type that corresponds to the predefined Objective-C 'SEL' type.">getObjCSelType</a>());</div>
+<div class="line"><a name="l01875"></a><span class="lineno"> 1875</span>   ActualArgs.<a class="code" href="classclang_1_1CodeGen_1_1CallArgList.html#af327518aae6c62448e4ce3c52638aef6">addFrom</a>(CallArgs);</div>
+<div class="line"><a name="l01876"></a><span class="lineno"> 1876</span> </div>
+<div class="line"><a name="l01877"></a><span class="lineno"> 1877</span>   <span class="comment">// If we're calling a method, use the formal signature.</span></div>
+<div class="line"><a name="l01878"></a><span class="lineno"> 1878</span>   MessageSendInfo MSI = getMessageSendInfo(Method, ResultType, ActualArgs);</div>
+<div class="line"><a name="l01879"></a><span class="lineno"> 1879</span> </div>
+<div class="line"><a name="l01880"></a><span class="lineno"> 1880</span>   <span class="keywordflow">if</span> (Method)</div>
+<div class="line"><a name="l01881"></a><span class="lineno"> 1881</span>     assert(CGM.getContext().getCanonicalType(Method-><a class="code" href="classclang_1_1ObjCMethodDecl.html#a5019b51f490a8eb6c6a6c89938486a5f">getResultType</a>()) ==</div>
+<div class="line"><a name="l01882"></a><span class="lineno"> 1882</span>            CGM.getContext().getCanonicalType(ResultType) &&</div>
+<div class="line"><a name="l01883"></a><span class="lineno"> 1883</span>            <span class="stringliteral">"Result type mismatch!"</span>);</div>
+<div class="line"><a name="l01884"></a><span class="lineno"> 1884</span> </div>
+<div class="line"><a name="l01885"></a><span class="lineno"> 1885</span>   NullReturnState nullReturn;</div>
+<div class="line"><a name="l01886"></a><span class="lineno"> 1886</span> </div>
+<div class="line"><a name="l01887"></a><span class="lineno"> 1887</span>   llvm::Constant *Fn = <a class="code" href="stddef_8h.html#a070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>;</div>
+<div class="line"><a name="l01888"></a><span class="lineno"> 1888</span>   <span class="keywordflow">if</span> (CGM.ReturnTypeUsesSRet(MSI.CallInfo)) {</div>
+<div class="line"><a name="l01889"></a><span class="lineno"> 1889</span>     <span class="keywordflow">if</span> (!IsSuper) nullReturn.init(CGF, Arg0);</div>
+<div class="line"><a name="l01890"></a><span class="lineno"> 1890</span>     Fn = (ObjCABI == 2) ?  ObjCTypes.getSendStretFn2(IsSuper)</div>
+<div class="line"><a name="l01891"></a><span class="lineno"> 1891</span>       : ObjCTypes.getSendStretFn(IsSuper);</div>
+<div class="line"><a name="l01892"></a><span class="lineno"> 1892</span>   } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (CGM.ReturnTypeUsesFPRet(ResultType)) {</div>
+<div class="line"><a name="l01893"></a><span class="lineno"> 1893</span>     Fn = (ObjCABI == 2) ? ObjCTypes.getSendFpretFn2(IsSuper)</div>
+<div class="line"><a name="l01894"></a><span class="lineno"> 1894</span>       : ObjCTypes.getSendFpretFn(IsSuper);</div>
+<div class="line"><a name="l01895"></a><span class="lineno"> 1895</span>   } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (CGM.ReturnTypeUsesFP2Ret(ResultType)) {</div>
+<div class="line"><a name="l01896"></a><span class="lineno"> 1896</span>     Fn = (ObjCABI == 2) ? ObjCTypes.getSendFp2RetFn2(IsSuper)</div>
+<div class="line"><a name="l01897"></a><span class="lineno"> 1897</span>       : ObjCTypes.getSendFp2retFn(IsSuper);</div>
+<div class="line"><a name="l01898"></a><span class="lineno"> 1898</span>   } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l01899"></a><span class="lineno"> 1899</span>     Fn = (ObjCABI == 2) ? ObjCTypes.getSendFn2(IsSuper)</div>
+<div class="line"><a name="l01900"></a><span class="lineno"> 1900</span>       : ObjCTypes.getSendFn(IsSuper);</div>
+<div class="line"><a name="l01901"></a><span class="lineno"> 1901</span>   }</div>
+<div class="line"><a name="l01902"></a><span class="lineno"> 1902</span>   </div>
+<div class="line"><a name="l01903"></a><span class="lineno"> 1903</span>   <span class="keywordtype">bool</span> requiresnullCheck = <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01904"></a><span class="lineno"> 1904</span>   <span class="keywordflow">if</span> (CGM.getLangOpts().ObjCAutoRefCount && Method)</div>
+<div class="line"><a name="l01905"></a><span class="lineno"> 1905</span>     <span class="keywordflow">for</span> (<a class="code" href="classclang_1_1ObjCMethodDecl.html#a841541ca3ef9960a3474a637e3c8829d">ObjCMethodDecl::param_const_iterator</a> i = Method-><a class="code" href="classclang_1_1ObjCMethodDecl.html#a6e3f1b5626a6e795168b51ff78888bf9">param_begin</a>(),</div>
+<div class="line"><a name="l01906"></a><span class="lineno"> 1906</span>          e = Method-><a class="code" href="classclang_1_1ObjCMethodDecl.html#a41c8a73187b3feac6defb5c1e7987b36">param_end</a>(); i != e; ++i) {</div>
+<div class="line"><a name="l01907"></a><span class="lineno"> 1907</span>       <span class="keyword">const</span> <a class="code" href="classclang_1_1ParmVarDecl.html" title="ParmVarDecl - Represents a parameter to a function.">ParmVarDecl</a> *ParamDecl = (*i);</div>
+<div class="line"><a name="l01908"></a><span class="lineno"> 1908</span>       <span class="keywordflow">if</span> (ParamDecl-><a class="code" href="classclang_1_1Decl.html#ac60cc8b34313e03a5c40277c5c5ad61b">hasAttr</a><<a class="code" href="classclang_1_1NSConsumedAttr.html">NSConsumedAttr</a>>()) {</div>
+<div class="line"><a name="l01909"></a><span class="lineno"> 1909</span>         <span class="keywordflow">if</span> (!nullReturn.NullBB)</div>
+<div class="line"><a name="l01910"></a><span class="lineno"> 1910</span>           nullReturn.init(CGF, Arg0);</div>
+<div class="line"><a name="l01911"></a><span class="lineno"> 1911</span>         requiresnullCheck = <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01912"></a><span class="lineno"> 1912</span>         <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l01913"></a><span class="lineno"> 1913</span>       }</div>
+<div class="line"><a name="l01914"></a><span class="lineno"> 1914</span>     }</div>
+<div class="line"><a name="l01915"></a><span class="lineno"> 1915</span>   </div>
+<div class="line"><a name="l01916"></a><span class="lineno"> 1916</span>   Fn = llvm::ConstantExpr::getBitCast(Fn, MSI.MessengerType);</div>
+<div class="line"><a name="l01917"></a><span class="lineno"> 1917</span>   <a class="code" href="classclang_1_1CodeGen_1_1RValue.html">RValue</a> rvalue = CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a41637beb876ec52a99f9f316445ff1bb">EmitCall</a>(MSI.CallInfo, Fn, Return, ActualArgs);</div>
+<div class="line"><a name="l01918"></a><span class="lineno"> 1918</span>   <span class="keywordflow">return</span> nullReturn.complete(CGF, rvalue, ResultType, CallArgs,</div>
+<div class="line"><a name="l01919"></a><span class="lineno"> 1919</span>                              requiresnullCheck ? Method : 0);</div>
+<div class="line"><a name="l01920"></a><span class="lineno"> 1920</span> }</div>
+<div class="line"><a name="l01921"></a><span class="lineno"> 1921</span> </div>
+<div class="line"><a name="l01922"></a><span class="lineno"><a class="code" href="CGObjCMac_8cpp.html#a8440ddd57d663791b8a049acf433eec8"> 1922</a></span> <span class="keyword">static</span> <a class="code" href="classclang_1_1Qualifiers.html#ac385e8f4b76a81b9668d05335e62308e">Qualifiers::GC</a> <a class="code" href="CGObjCMac_8cpp.html#a8440ddd57d663791b8a049acf433eec8">GetGCAttrTypeForType</a>(<a class="code" href="classclang_1_1ASTContext.html" title="Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...">ASTContext</a> &Ctx, <a class="code" href="classclang_1_1QualType.html">QualType</a> FQT) {</div>
+<div class="line"><a name="l01923"></a><span class="lineno"> 1923</span>   <span class="keywordflow">if</span> (FQT.<a class="code" href="classclang_1_1QualType.html#a14082db735b2de31f1c3a117b52016e4" title="isObjCGCStrong true when Type is objc's strong.">isObjCGCStrong</a>())</div>
+<div class="line"><a name="l01924"></a><span class="lineno"> 1924</span>     <span class="keywordflow">return</span> Qualifiers::Strong;</div>
+<div class="line"><a name="l01925"></a><span class="lineno"> 1925</span>   </div>
+<div class="line"><a name="l01926"></a><span class="lineno"> 1926</span>   <span class="keywordflow">if</span> (FQT.<a class="code" href="classclang_1_1QualType.html#aa3531092d44c1ecacc18c3f88f213d52" title="isObjCGCWeak true when Type is objc's weak.">isObjCGCWeak</a>() || FQT.<a class="code" href="classclang_1_1QualType.html#abf2b347a1ba0ed6b4fad08600273324f" title="getObjCLifetime - Returns lifetime attribute of this type.">getObjCLifetime</a>() == Qualifiers::OCL_Weak)</div>
+<div class="line"><a name="l01927"></a><span class="lineno"> 1927</span>     <span class="keywordflow">return</span> Qualifiers::Weak;</div>
+<div class="line"><a name="l01928"></a><span class="lineno"> 1928</span>   </div>
+<div class="line"><a name="l01929"></a><span class="lineno"> 1929</span>   <span class="comment">// check for __unsafe_unretained</span></div>
+<div class="line"><a name="l01930"></a><span class="lineno"> 1930</span>   <span class="keywordflow">if</span> (FQT.<a class="code" href="classclang_1_1QualType.html#abf2b347a1ba0ed6b4fad08600273324f" title="getObjCLifetime - Returns lifetime attribute of this type.">getObjCLifetime</a>() == Qualifiers::OCL_ExplicitNone)</div>
+<div class="line"><a name="l01931"></a><span class="lineno"> 1931</span>     <span class="keywordflow">return</span> Qualifiers::GCNone;</div>
+<div class="line"><a name="l01932"></a><span class="lineno"> 1932</span>   </div>
+<div class="line"><a name="l01933"></a><span class="lineno"> 1933</span>   <span class="keywordflow">if</span> (FQT-><a class="code" href="classclang_1_1Type.html#aa9be9c3ceec53da8edbbb86bbf895fff">isObjCObjectPointerType</a>() || FQT-><a class="code" href="classclang_1_1Type.html#ad6cd1a04cac76bfb304bbc02bf23a9bb">isBlockPointerType</a>())</div>
+<div class="line"><a name="l01934"></a><span class="lineno"> 1934</span>     <span class="keywordflow">return</span> Qualifiers::Strong;</div>
+<div class="line"><a name="l01935"></a><span class="lineno"> 1935</span>   </div>
+<div class="line"><a name="l01936"></a><span class="lineno"> 1936</span>   <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1PointerType.html">PointerType</a> *PT = FQT-><a class="code" href="classclang_1_1Type.html#a12103ea8bee9506930287bab68a08569">getAs</a><<a class="code" href="classclang_1_1PointerType.html">PointerType</a>>())</div>
+<div class="line"><a name="l01937"></a><span class="lineno"> 1937</span>     <span class="keywordflow">return</span> <a class="code" href="CGObjCMac_8cpp.html#a8440ddd57d663791b8a049acf433eec8">GetGCAttrTypeForType</a>(Ctx, PT->getPointeeType());</div>
+<div class="line"><a name="l01938"></a><span class="lineno"> 1938</span>   </div>
+<div class="line"><a name="l01939"></a><span class="lineno"> 1939</span>   <span class="keywordflow">return</span> Qualifiers::GCNone;</div>
+<div class="line"><a name="l01940"></a><span class="lineno"> 1940</span> }</div>
+<div class="line"><a name="l01941"></a><span class="lineno"> 1941</span> </div>
+<div class="line"><a name="l01942"></a><span class="lineno"> 1942</span> llvm::Constant *CGObjCCommonMac::BuildGCBlockLayout(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html">CodeGenModule</a> &CGM,</div>
+<div class="line"><a name="l01943"></a><span class="lineno"> 1943</span>                                                 <span class="keyword">const</span> <a class="code" href="classclang_1_1CodeGen_1_1CGBlockInfo.html" title="CGBlockInfo - Information to generate a block literal.">CGBlockInfo</a> &blockInfo) {</div>
+<div class="line"><a name="l01944"></a><span class="lineno"> 1944</span>   </div>
+<div class="line"><a name="l01945"></a><span class="lineno"> 1945</span>   llvm::Constant *nullPtr = llvm::Constant::getNullValue(CGM.<a class="code" href="structclang_1_1CodeGen_1_1CodeGenTypeCache.html#ac3ec7e3938996c5354dbee1a103ed4d2">Int8PtrTy</a>);</div>
+<div class="line"><a name="l01946"></a><span class="lineno"> 1946</span>   <span class="keywordflow">if</span> (CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#abae1594027ce284ce5b7f06c66d24ea7">getLangOpts</a>().getGC() == LangOptions::NonGC &&</div>
+<div class="line"><a name="l01947"></a><span class="lineno"> 1947</span>       !CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#abae1594027ce284ce5b7f06c66d24ea7">getLangOpts</a>().ObjCAutoRefCount)</div>
+<div class="line"><a name="l01948"></a><span class="lineno"> 1948</span>     <span class="keywordflow">return</span> nullPtr;</div>
+<div class="line"><a name="l01949"></a><span class="lineno"> 1949</span> </div>
+<div class="line"><a name="l01950"></a><span class="lineno"> 1950</span>   <span class="keywordtype">bool</span> hasUnion = <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01951"></a><span class="lineno"> 1951</span>   SkipIvars.clear();</div>
+<div class="line"><a name="l01952"></a><span class="lineno"> 1952</span>   IvarsInfo.clear();</div>
+<div class="line"><a name="l01953"></a><span class="lineno"> 1953</span>   <span class="keywordtype">unsigned</span> WordSizeInBits = CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a0256b70c5f3ad3812e767f745196fa3f">getTarget</a>().<a class="code" href="classclang_1_1TargetInfo.html#a79ccbed497a604ca6d9dbfd9b8ac548f" title="Return the width of pointers on this target, for the specified address space.">getPointerWidth</a>(0);</div>
+<div class="line"><a name="l01954"></a><span class="lineno"> 1954</span>   <span class="keywordtype">unsigned</span> ByteSizeInBits = CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a0256b70c5f3ad3812e767f745196fa3f">getTarget</a>().<a class="code" href="classclang_1_1TargetInfo.html#a4e2ac19ae48b353248e7e15754283c8d">getCharWidth</a>();</div>
+<div class="line"><a name="l01955"></a><span class="lineno"> 1955</span>   </div>
+<div class="line"><a name="l01956"></a><span class="lineno"> 1956</span>   <span class="comment">// __isa is the first field in block descriptor and must assume by runtime's</span></div>
+<div class="line"><a name="l01957"></a><span class="lineno"> 1957</span>   <span class="comment">// convention that it is GC'able.</span></div>
+<div class="line"><a name="l01958"></a><span class="lineno"> 1958</span>   IvarsInfo.push_back(GC_IVAR(0, 1));</div>
+<div class="line"><a name="l01959"></a><span class="lineno"> 1959</span> </div>
+<div class="line"><a name="l01960"></a><span class="lineno"> 1960</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1BlockDecl.html">BlockDecl</a> *blockDecl = blockInfo.<a class="code" href="classclang_1_1CodeGen_1_1CGBlockInfo.html#affe81dbd8e6ab4eb465902a3199ea5be">getBlockDecl</a>();</div>
+<div class="line"><a name="l01961"></a><span class="lineno"> 1961</span> </div>
+<div class="line"><a name="l01962"></a><span class="lineno"> 1962</span>   <span class="comment">// Calculate the basic layout of the block structure.</span></div>
+<div class="line"><a name="l01963"></a><span class="lineno"> 1963</span>   <span class="keyword">const</span> llvm::StructLayout *layout =</div>
+<div class="line"><a name="l01964"></a><span class="lineno"> 1964</span>     CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a7a01d2bf67fc7c685a8648809c0913a7">getDataLayout</a>().getStructLayout(blockInfo.<a class="code" href="classclang_1_1CodeGen_1_1CGBlockInfo.html#a3e20687a2a233518fd738741bbc1ce82">StructureType</a>);</div>
+<div class="line"><a name="l01965"></a><span class="lineno"> 1965</span> </div>
+<div class="line"><a name="l01966"></a><span class="lineno"> 1966</span>   <span class="comment">// Ignore the optional 'this' capture: C++ objects are not assumed</span></div>
+<div class="line"><a name="l01967"></a><span class="lineno"> 1967</span>   <span class="comment">// to be GC'ed.</span></div>
+<div class="line"><a name="l01968"></a><span class="lineno"> 1968</span> </div>
+<div class="line"><a name="l01969"></a><span class="lineno"> 1969</span>   <span class="comment">// Walk the captured variables.</span></div>
+<div class="line"><a name="l01970"></a><span class="lineno"> 1970</span>   <span class="keywordflow">for</span> (<a class="code" href="classclang_1_1BlockDecl_1_1Capture.html">BlockDecl::capture_const_iterator</a> ci = blockDecl-><a class="code" href="classclang_1_1BlockDecl.html#ab22e740e64eb0eb9b79f8cd043b07606">capture_begin</a>(),</div>
+<div class="line"><a name="l01971"></a><span class="lineno"> 1971</span>          ce = blockDecl-><a class="code" href="classclang_1_1BlockDecl.html#a00f598199079e2be3d254168e6a24644">capture_end</a>(); ci != ce; ++ci) {</div>
+<div class="line"><a name="l01972"></a><span class="lineno"> 1972</span>     <span class="keyword">const</span> <a class="code" href="classclang_1_1VarDecl.html">VarDecl</a> *variable = ci->getVariable();</div>
+<div class="line"><a name="l01973"></a><span class="lineno"> 1973</span>     <a class="code" href="classclang_1_1QualType.html">QualType</a> <a class="code" href="namespaceclang_1_1ast__matchers.html#a82efb51f28681d561f9ce42fecf09d4b" title="Matches Types in the clang AST.">type</a> = variable-><a class="code" href="classclang_1_1ValueDecl.html#aefa6d3327144aee23d2935f41d993484">getType</a>();</div>
+<div class="line"><a name="l01974"></a><span class="lineno"> 1974</span> </div>
+<div class="line"><a name="l01975"></a><span class="lineno"> 1975</span>     <span class="keyword">const</span> <a class="code" href="classclang_1_1CodeGen_1_1CGBlockInfo_1_1Capture.html">CGBlockInfo::Capture</a> &capture = blockInfo.<a class="code" href="classclang_1_1CodeGen_1_1CGBlockInfo.html#a1ef64054bf280fa9dc9dd4206d0e3ffa">getCapture</a>(variable);</div>
+<div class="line"><a name="l01976"></a><span class="lineno"> 1976</span> </div>
+<div class="line"><a name="l01977"></a><span class="lineno"> 1977</span>     <span class="comment">// Ignore constant captures.</span></div>
+<div class="line"><a name="l01978"></a><span class="lineno"> 1978</span>     <span class="keywordflow">if</span> (capture.<a class="code" href="classclang_1_1CodeGen_1_1CGBlockInfo_1_1Capture.html#a993e67a796e8106fe28386e1f65576e1">isConstant</a>()) <span class="keywordflow">continue</span>;</div>
+<div class="line"><a name="l01979"></a><span class="lineno"> 1979</span> </div>
+<div class="line"><a name="l01980"></a><span class="lineno"> 1980</span>     uint64_t fieldOffset = layout->getElementOffset(capture.<a class="code" href="classclang_1_1CodeGen_1_1CGBlockInfo_1_1Capture.html#abf665ac516d28be3e80abc1e2fbb09d6">getIndex</a>());</div>
+<div class="line"><a name="l01981"></a><span class="lineno"> 1981</span> </div>
+<div class="line"><a name="l01982"></a><span class="lineno"> 1982</span>     <span class="comment">// __block variables are passed by their descriptor address.</span></div>
+<div class="line"><a name="l01983"></a><span class="lineno"> 1983</span>     <span class="keywordflow">if</span> (ci->isByRef()) {</div>
+<div class="line"><a name="l01984"></a><span class="lineno"> 1984</span>       IvarsInfo.push_back(GC_IVAR(fieldOffset, <span class="comment">/*size in words*/</span> 1));</div>
+<div class="line"><a name="l01985"></a><span class="lineno"> 1985</span>       <span class="keywordflow">continue</span>;</div>
+<div class="line"><a name="l01986"></a><span class="lineno"> 1986</span>     }</div>
+<div class="line"><a name="l01987"></a><span class="lineno"> 1987</span> </div>
+<div class="line"><a name="l01988"></a><span class="lineno"> 1988</span>     assert(!type-><a class="code" href="classclang_1_1Type.html#a53b83bd119ae77bc77e92dc69a8c8094">isArrayType</a>() && <span class="stringliteral">"array variable should not be caught"</span>);</div>
+<div class="line"><a name="l01989"></a><span class="lineno"> 1989</span>     <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1RecordType.html">RecordType</a> *record = type-><a class="code" href="classclang_1_1Type.html#a12103ea8bee9506930287bab68a08569">getAs</a><<a class="code" href="classclang_1_1RecordType.html">RecordType</a>>()) {</div>
+<div class="line"><a name="l01990"></a><span class="lineno"> 1990</span>       BuildAggrIvarRecordLayout(record, fieldOffset, <span class="keyword">true</span>, hasUnion);</div>
+<div class="line"><a name="l01991"></a><span class="lineno"> 1991</span>       <span class="keywordflow">continue</span>;</div>
+<div class="line"><a name="l01992"></a><span class="lineno"> 1992</span>     }</div>
+<div class="line"><a name="l01993"></a><span class="lineno"> 1993</span>       </div>
+<div class="line"><a name="l01994"></a><span class="lineno"> 1994</span>     <a class="code" href="classclang_1_1Qualifiers.html#ac385e8f4b76a81b9668d05335e62308e">Qualifiers::GC</a> GCAttr = <a class="code" href="CGObjCMac_8cpp.html#a8440ddd57d663791b8a049acf433eec8">GetGCAttrTypeForType</a>(CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>(), <a class="code" href="namespaceclang_1_1ast__matchers.html#a82efb51f28681d561f9ce42fecf09d4b" title="Matches Types in the clang AST.">type</a>);</div>
+<div class="line"><a name="l01995"></a><span class="lineno"> 1995</span>     <span class="keywordtype">unsigned</span> fieldSize = CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>().<a class="code" href="classclang_1_1ASTContext.html#a3e16bd856974e4ac9710e0c507a60cee" title="Return the size of the specified (complete) type T, in bits.">getTypeSize</a>(type);</div>
+<div class="line"><a name="l01996"></a><span class="lineno"> 1996</span> </div>
+<div class="line"><a name="l01997"></a><span class="lineno"> 1997</span>     <span class="keywordflow">if</span> (GCAttr == Qualifiers::Strong)</div>
+<div class="line"><a name="l01998"></a><span class="lineno"> 1998</span>       IvarsInfo.push_back(GC_IVAR(fieldOffset,</div>
+<div class="line"><a name="l01999"></a><span class="lineno"> 1999</span>                                   fieldSize / WordSizeInBits));</div>
+<div class="line"><a name="l02000"></a><span class="lineno"> 2000</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (GCAttr == Qualifiers::GCNone || GCAttr == Qualifiers::Weak)</div>
+<div class="line"><a name="l02001"></a><span class="lineno"> 2001</span>       SkipIvars.push_back(GC_IVAR(fieldOffset,</div>
+<div class="line"><a name="l02002"></a><span class="lineno"> 2002</span>                                   fieldSize / ByteSizeInBits));</div>
+<div class="line"><a name="l02003"></a><span class="lineno"> 2003</span>   }</div>
+<div class="line"><a name="l02004"></a><span class="lineno"> 2004</span>   </div>
+<div class="line"><a name="l02005"></a><span class="lineno"> 2005</span>   <span class="keywordflow">if</span> (IvarsInfo.empty())</div>
+<div class="line"><a name="l02006"></a><span class="lineno"> 2006</span>     <span class="keywordflow">return</span> nullPtr;</div>
+<div class="line"><a name="l02007"></a><span class="lineno"> 2007</span> </div>
+<div class="line"><a name="l02008"></a><span class="lineno"> 2008</span>   <span class="comment">// Sort on byte position; captures might not be allocated in order,</span></div>
+<div class="line"><a name="l02009"></a><span class="lineno"> 2009</span>   <span class="comment">// and unions can do funny things.</span></div>
+<div class="line"><a name="l02010"></a><span class="lineno"> 2010</span>   llvm::array_pod_sort(IvarsInfo.begin(), IvarsInfo.end());</div>
+<div class="line"><a name="l02011"></a><span class="lineno"> 2011</span>   llvm::array_pod_sort(SkipIvars.begin(), SkipIvars.end());</div>
+<div class="line"><a name="l02012"></a><span class="lineno"> 2012</span>   </div>
+<div class="line"><a name="l02013"></a><span class="lineno"> 2013</span>   std::string BitMap;</div>
+<div class="line"><a name="l02014"></a><span class="lineno"> 2014</span>   llvm::Constant *C = BuildIvarLayoutBitmap(BitMap);</div>
+<div class="line"><a name="l02015"></a><span class="lineno"> 2015</span>   <span class="keywordflow">if</span> (CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#abae1594027ce284ce5b7f06c66d24ea7">getLangOpts</a>().ObjCGCBitmapPrint) {</div>
+<div class="line"><a name="l02016"></a><span class="lineno"> 2016</span>     printf(<span class="stringliteral">"\n block variable layout for block: "</span>);</div>
+<div class="line"><a name="l02017"></a><span class="lineno"> 2017</span>     <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *s = (<span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>*)BitMap.c_str();</div>
+<div class="line"><a name="l02018"></a><span class="lineno"> 2018</span>     <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> i = 0, e = BitMap.size(); i < e; i++)</div>
+<div class="line"><a name="l02019"></a><span class="lineno"> 2019</span>       <span class="keywordflow">if</span> (!(s[i] & 0xf0))</div>
+<div class="line"><a name="l02020"></a><span class="lineno"> 2020</span>         printf(<span class="stringliteral">"0x0%x%s"</span>, s[i], s[i] != 0 ? <span class="stringliteral">", "</span> : <span class="stringliteral">""</span>);</div>
+<div class="line"><a name="l02021"></a><span class="lineno"> 2021</span>       <span class="keywordflow">else</span></div>
+<div class="line"><a name="l02022"></a><span class="lineno"> 2022</span>         printf(<span class="stringliteral">"0x%x%s"</span>,  s[i], s[i] != 0 ? <span class="stringliteral">", "</span> : <span class="stringliteral">""</span>);</div>
+<div class="line"><a name="l02023"></a><span class="lineno"> 2023</span>     printf(<span class="stringliteral">"\n"</span>);</div>
+<div class="line"><a name="l02024"></a><span class="lineno"> 2024</span>   }</div>
+<div class="line"><a name="l02025"></a><span class="lineno"> 2025</span>   </div>
+<div class="line"><a name="l02026"></a><span class="lineno"> 2026</span>   <span class="keywordflow">return</span> C;</div>
+<div class="line"><a name="l02027"></a><span class="lineno"> 2027</span> }</div>
+<div class="line"><a name="l02028"></a><span class="lineno"> 2028</span> <span class="comment"></span></div>
+<div class="line"><a name="l02029"></a><span class="lineno"> 2029</span> <span class="comment">/// getBlockCaptureLifetime - This routine returns life time of the captured</span></div>
+<div class="line"><a name="l02030"></a><span class="lineno"> 2030</span> <span class="comment">/// block variable for the purpose of block layout meta-data generation. FQT is</span></div>
+<div class="line"><a name="l02031"></a><span class="lineno"> 2031</span> <span class="comment">/// the type of the variable captured in the block.</span></div>
+<div class="line"><a name="l02032"></a><span class="lineno"> 2032</span> <span class="comment"></span><a class="code" href="classclang_1_1Qualifiers.html#a1280e3f4075ff54f856987cf002ba300">Qualifiers::ObjCLifetime</a> CGObjCCommonMac::getBlockCaptureLifetime(<a class="code" href="classclang_1_1QualType.html">QualType</a> FQT,</div>
+<div class="line"><a name="l02033"></a><span class="lineno"> 2033</span>                                                                   <span class="keywordtype">bool</span> ByrefLayout) {</div>
+<div class="line"><a name="l02034"></a><span class="lineno"> 2034</span>   <span class="keywordflow">if</span> (CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#abae1594027ce284ce5b7f06c66d24ea7">getLangOpts</a>().ObjCAutoRefCount)</div>
+<div class="line"><a name="l02035"></a><span class="lineno"> 2035</span>     <span class="keywordflow">return</span> FQT.<a class="code" href="classclang_1_1QualType.html#abf2b347a1ba0ed6b4fad08600273324f" title="getObjCLifetime - Returns lifetime attribute of this type.">getObjCLifetime</a>();</div>
+<div class="line"><a name="l02036"></a><span class="lineno"> 2036</span>   </div>
+<div class="line"><a name="l02037"></a><span class="lineno"> 2037</span>   <span class="comment">// MRR.</span></div>
+<div class="line"><a name="l02038"></a><span class="lineno"> 2038</span>   <span class="keywordflow">if</span> (FQT-><a class="code" href="classclang_1_1Type.html#aa9be9c3ceec53da8edbbb86bbf895fff">isObjCObjectPointerType</a>() || FQT-><a class="code" href="classclang_1_1Type.html#ad6cd1a04cac76bfb304bbc02bf23a9bb">isBlockPointerType</a>())</div>
+<div class="line"><a name="l02039"></a><span class="lineno"> 2039</span>     <span class="keywordflow">return</span> ByrefLayout ? Qualifiers::OCL_ExplicitNone : Qualifiers::OCL_Strong;</div>
+<div class="line"><a name="l02040"></a><span class="lineno"> 2040</span>   </div>
+<div class="line"><a name="l02041"></a><span class="lineno"> 2041</span>   <span class="keywordflow">return</span> Qualifiers::OCL_None;</div>
+<div class="line"><a name="l02042"></a><span class="lineno"> 2042</span> }</div>
+<div class="line"><a name="l02043"></a><span class="lineno"> 2043</span> </div>
+<div class="line"><a name="l02044"></a><span class="lineno"> 2044</span> <span class="keywordtype">void</span> CGObjCCommonMac::UpdateRunSkipBlockVars(<span class="keywordtype">bool</span> IsByref,</div>
+<div class="line"><a name="l02045"></a><span class="lineno"> 2045</span>                                              <a class="code" href="classclang_1_1Qualifiers.html#a1280e3f4075ff54f856987cf002ba300">Qualifiers::ObjCLifetime</a> LifeTime,</div>
+<div class="line"><a name="l02046"></a><span class="lineno"> 2046</span>                                              <a class="code" href="classclang_1_1CharUnits.html">CharUnits</a> FieldOffset,</div>
+<div class="line"><a name="l02047"></a><span class="lineno"> 2047</span>                                              <a class="code" href="classclang_1_1CharUnits.html">CharUnits</a> FieldSize) {</div>
+<div class="line"><a name="l02048"></a><span class="lineno"> 2048</span>   <span class="comment">// __block variables are passed by their descriptor address.</span></div>
+<div class="line"><a name="l02049"></a><span class="lineno"> 2049</span>   <span class="keywordflow">if</span> (IsByref)</div>
+<div class="line"><a name="l02050"></a><span class="lineno"> 2050</span>     RunSkipBlockVars.push_back(RUN_SKIP(BLOCK_LAYOUT_BYREF, FieldOffset,</div>
+<div class="line"><a name="l02051"></a><span class="lineno"> 2051</span>                                         FieldSize));</div>
+<div class="line"><a name="l02052"></a><span class="lineno"> 2052</span>   <span class="keywordflow">else</span> <span class="keywordflow">if</span> (LifeTime == Qualifiers::OCL_Strong)</div>
+<div class="line"><a name="l02053"></a><span class="lineno"> 2053</span>     RunSkipBlockVars.push_back(RUN_SKIP(BLOCK_LAYOUT_STRONG, FieldOffset,</div>
+<div class="line"><a name="l02054"></a><span class="lineno"> 2054</span>                                         FieldSize));</div>
+<div class="line"><a name="l02055"></a><span class="lineno"> 2055</span>   <span class="keywordflow">else</span> <span class="keywordflow">if</span> (LifeTime == Qualifiers::OCL_Weak)</div>
+<div class="line"><a name="l02056"></a><span class="lineno"> 2056</span>     RunSkipBlockVars.push_back(RUN_SKIP(BLOCK_LAYOUT_WEAK, FieldOffset,</div>
+<div class="line"><a name="l02057"></a><span class="lineno"> 2057</span>                                         FieldSize));</div>
+<div class="line"><a name="l02058"></a><span class="lineno"> 2058</span>   <span class="keywordflow">else</span> <span class="keywordflow">if</span> (LifeTime == Qualifiers::OCL_ExplicitNone)</div>
+<div class="line"><a name="l02059"></a><span class="lineno"> 2059</span>     RunSkipBlockVars.push_back(RUN_SKIP(BLOCK_LAYOUT_UNRETAINED, FieldOffset,</div>
+<div class="line"><a name="l02060"></a><span class="lineno"> 2060</span>                                         FieldSize));</div>
+<div class="line"><a name="l02061"></a><span class="lineno"> 2061</span>   <span class="keywordflow">else</span></div>
+<div class="line"><a name="l02062"></a><span class="lineno"> 2062</span>     RunSkipBlockVars.push_back(RUN_SKIP(BLOCK_LAYOUT_NON_OBJECT_BYTES,</div>
+<div class="line"><a name="l02063"></a><span class="lineno"> 2063</span>                                         FieldOffset,</div>
+<div class="line"><a name="l02064"></a><span class="lineno"> 2064</span>                                         FieldSize));</div>
+<div class="line"><a name="l02065"></a><span class="lineno"> 2065</span> }</div>
+<div class="line"><a name="l02066"></a><span class="lineno"> 2066</span> </div>
+<div class="line"><a name="l02067"></a><span class="lineno"> 2067</span> <span class="keywordtype">void</span> CGObjCCommonMac::BuildRCRecordLayout(<span class="keyword">const</span> llvm::StructLayout *RecLayout,</div>
+<div class="line"><a name="l02068"></a><span class="lineno"> 2068</span>                                           <span class="keyword">const</span> <a class="code" href="classclang_1_1RecordDecl.html">RecordDecl</a> *RD,</div>
+<div class="line"><a name="l02069"></a><span class="lineno"> 2069</span>                                           <a class="code" href="classllvm_1_1ArrayRef.html">ArrayRef<const FieldDecl*></a> RecFields,</div>
+<div class="line"><a name="l02070"></a><span class="lineno"> 2070</span>                                           <a class="code" href="classclang_1_1CharUnits.html">CharUnits</a> BytePos, <span class="keywordtype">bool</span> &HasUnion,</div>
+<div class="line"><a name="l02071"></a><span class="lineno"> 2071</span>                                           <span class="keywordtype">bool</span> ByrefLayout) {</div>
+<div class="line"><a name="l02072"></a><span class="lineno"> 2072</span>   <span class="keywordtype">bool</span> IsUnion = (RD && RD-><a class="code" href="classclang_1_1TagDecl.html#a76233fd9169fc9bfa27603ad5477f02a">isUnion</a>());</div>
+<div class="line"><a name="l02073"></a><span class="lineno"> 2073</span>   <a class="code" href="classclang_1_1CharUnits.html">CharUnits</a> MaxUnionSize = CharUnits::Zero();</div>
+<div class="line"><a name="l02074"></a><span class="lineno"> 2074</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1FieldDecl.html">FieldDecl</a> *MaxField = 0;</div>
+<div class="line"><a name="l02075"></a><span class="lineno"> 2075</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1FieldDecl.html">FieldDecl</a> *LastFieldBitfieldOrUnnamed = 0;</div>
+<div class="line"><a name="l02076"></a><span class="lineno"> 2076</span>   <a class="code" href="classclang_1_1CharUnits.html">CharUnits</a> MaxFieldOffset = CharUnits::Zero();</div>
+<div class="line"><a name="l02077"></a><span class="lineno"> 2077</span>   <a class="code" href="classclang_1_1CharUnits.html">CharUnits</a> LastBitfieldOrUnnamedOffset = CharUnits::Zero();</div>
+<div class="line"><a name="l02078"></a><span class="lineno"> 2078</span>   </div>
+<div class="line"><a name="l02079"></a><span class="lineno"> 2079</span>   <span class="keywordflow">if</span> (RecFields.empty())</div>
+<div class="line"><a name="l02080"></a><span class="lineno"> 2080</span>     <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l02081"></a><span class="lineno"> 2081</span>   <span class="keywordtype">unsigned</span> ByteSizeInBits = CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a0256b70c5f3ad3812e767f745196fa3f">getTarget</a>().<a class="code" href="classclang_1_1TargetInfo.html#a4e2ac19ae48b353248e7e15754283c8d">getCharWidth</a>();</div>
+<div class="line"><a name="l02082"></a><span class="lineno"> 2082</span>   </div>
+<div class="line"><a name="l02083"></a><span class="lineno"> 2083</span>   <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> i = 0, e = RecFields.size(); i != e; ++i) {</div>
+<div class="line"><a name="l02084"></a><span class="lineno"> 2084</span>     <span class="keyword">const</span> <a class="code" href="classclang_1_1FieldDecl.html">FieldDecl</a> *Field = RecFields[i];</div>
+<div class="line"><a name="l02085"></a><span class="lineno"> 2085</span>     <span class="comment">// Note that 'i' here is actually the field index inside RD of Field,</span></div>
+<div class="line"><a name="l02086"></a><span class="lineno"> 2086</span>     <span class="comment">// although this dependency is hidden.</span></div>
+<div class="line"><a name="l02087"></a><span class="lineno"> 2087</span>     <span class="keyword">const</span> <a class="code" href="classclang_1_1ASTRecordLayout.html">ASTRecordLayout</a> &RL = CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>().<a class="code" href="classclang_1_1ASTContext.html#a47d9de77f967abb78dd8d1b8228a0d2a" title="Get or compute information about the layout of the specified record (struct/union/class) D...">getASTRecordLayout</a>(RD);</div>
+<div class="line"><a name="l02088"></a><span class="lineno"> 2088</span>     <a class="code" href="classclang_1_1CharUnits.html">CharUnits</a> FieldOffset =</div>
+<div class="line"><a name="l02089"></a><span class="lineno"> 2089</span>       CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>().<a class="code" href="classclang_1_1ASTContext.html#a5d5f812ba1100ca9ef1c1a812b2f5a24" title="Convert a size in bits to a size in characters.">toCharUnitsFromBits</a>(RL.<a class="code" href="classclang_1_1ASTRecordLayout.html#a5469e46f4a69644ac8747cef95095f3a">getFieldOffset</a>(i));</div>
+<div class="line"><a name="l02090"></a><span class="lineno"> 2090</span>     </div>
+<div class="line"><a name="l02091"></a><span class="lineno"> 2091</span>     <span class="comment">// Skip over unnamed or bitfields</span></div>
+<div class="line"><a name="l02092"></a><span class="lineno"> 2092</span>     <span class="keywordflow">if</span> (!Field-><a class="code" href="classclang_1_1NamedDecl.html#a554752f8f43eea0e6288da7205167fe2">getIdentifier</a>() || Field-><a class="code" href="classclang_1_1FieldDecl.html#af8c123e193d426f26496c15e2f168a49" title="isBitfield - Determines whether this field is a bitfield.">isBitField</a>()) {</div>
+<div class="line"><a name="l02093"></a><span class="lineno"> 2093</span>       LastFieldBitfieldOrUnnamed = Field;</div>
+<div class="line"><a name="l02094"></a><span class="lineno"> 2094</span>       LastBitfieldOrUnnamedOffset = FieldOffset;</div>
+<div class="line"><a name="l02095"></a><span class="lineno"> 2095</span>       <span class="keywordflow">continue</span>;</div>
+<div class="line"><a name="l02096"></a><span class="lineno"> 2096</span>     }</div>
+<div class="line"><a name="l02097"></a><span class="lineno"> 2097</span>     </div>
+<div class="line"><a name="l02098"></a><span class="lineno"> 2098</span>     LastFieldBitfieldOrUnnamed = 0;</div>
+<div class="line"><a name="l02099"></a><span class="lineno"> 2099</span>     <a class="code" href="classclang_1_1QualType.html">QualType</a> FQT = Field-><a class="code" href="classclang_1_1ValueDecl.html#aefa6d3327144aee23d2935f41d993484">getType</a>();</div>
+<div class="line"><a name="l02100"></a><span class="lineno"> 2100</span>     <span class="keywordflow">if</span> (FQT-><a class="code" href="classclang_1_1Type.html#a6525adb10d549a7ee372424dcdb6b9bd">isRecordType</a>() || FQT-><a class="code" href="classclang_1_1Type.html#aeb2ffe71ce3dab180574284222a92bc3">isUnionType</a>()) {</div>
+<div class="line"><a name="l02101"></a><span class="lineno"> 2101</span>       <span class="keywordflow">if</span> (FQT-><a class="code" href="classclang_1_1Type.html#aeb2ffe71ce3dab180574284222a92bc3">isUnionType</a>())</div>
+<div class="line"><a name="l02102"></a><span class="lineno"> 2102</span>         HasUnion = <span class="keyword">true</span>;</div>
+<div class="line"><a name="l02103"></a><span class="lineno"> 2103</span>       </div>
+<div class="line"><a name="l02104"></a><span class="lineno"> 2104</span>       BuildRCBlockVarRecordLayout(FQT-><a class="code" href="classclang_1_1Type.html#a12103ea8bee9506930287bab68a08569">getAs</a><<a class="code" href="classclang_1_1RecordType.html">RecordType</a>>(),</div>
+<div class="line"><a name="l02105"></a><span class="lineno"> 2105</span>                                   BytePos + FieldOffset, HasUnion);</div>
+<div class="line"><a name="l02106"></a><span class="lineno"> 2106</span>       <span class="keywordflow">continue</span>;</div>
+<div class="line"><a name="l02107"></a><span class="lineno"> 2107</span>     }</div>
+<div class="line"><a name="l02108"></a><span class="lineno"> 2108</span>     </div>
+<div class="line"><a name="l02109"></a><span class="lineno"> 2109</span>     <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1ArrayType.html">ArrayType</a> *Array = CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>().<a class="code" href="classclang_1_1ASTContext.html#a2f9f0d5fa876bf2fb8be3fdd0fc70244">getAsArrayType</a>(FQT)) {</div>
+<div class="line"><a name="l02110"></a><span class="lineno"> 2110</span>       <span class="keyword">const</span> <a class="code" href="classclang_1_1ConstantArrayType.html">ConstantArrayType</a> *CArray =</div>
+<div class="line"><a name="l02111"></a><span class="lineno"> 2111</span>         dyn_cast_or_null<ConstantArrayType>(Array);</div>
+<div class="line"><a name="l02112"></a><span class="lineno"> 2112</span>       uint64_t ElCount = CArray-><a class="code" href="classclang_1_1ConstantArrayType.html#add90924c309ad1f353431f2b63e9ba2b">getSize</a>().getZExtValue();</div>
+<div class="line"><a name="l02113"></a><span class="lineno"> 2113</span>       assert(CArray && <span class="stringliteral">"only array with known element size is supported"</span>);</div>
+<div class="line"><a name="l02114"></a><span class="lineno"> 2114</span>       FQT = CArray-><a class="code" href="classclang_1_1ArrayType.html#ad9681a11b43dc70a3c4db07d2a450d12">getElementType</a>();</div>
+<div class="line"><a name="l02115"></a><span class="lineno"> 2115</span>       <span class="keywordflow">while</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1ArrayType.html">ArrayType</a> *Array = CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>().<a class="code" href="classclang_1_1ASTContext.html#a2f9f0d5fa876bf2fb8be3fdd0fc70244">getAsArrayType</a>(FQT)) {</div>
+<div class="line"><a name="l02116"></a><span class="lineno"> 2116</span>         <span class="keyword">const</span> <a class="code" href="classclang_1_1ConstantArrayType.html">ConstantArrayType</a> *CArray =</div>
+<div class="line"><a name="l02117"></a><span class="lineno"> 2117</span>           dyn_cast_or_null<ConstantArrayType>(Array);</div>
+<div class="line"><a name="l02118"></a><span class="lineno"> 2118</span>         ElCount *= CArray-><a class="code" href="classclang_1_1ConstantArrayType.html#add90924c309ad1f353431f2b63e9ba2b">getSize</a>().getZExtValue();</div>
+<div class="line"><a name="l02119"></a><span class="lineno"> 2119</span>         FQT = CArray-><a class="code" href="classclang_1_1ArrayType.html#ad9681a11b43dc70a3c4db07d2a450d12">getElementType</a>();</div>
+<div class="line"><a name="l02120"></a><span class="lineno"> 2120</span>       }</div>
+<div class="line"><a name="l02121"></a><span class="lineno"> 2121</span>       </div>
+<div class="line"><a name="l02122"></a><span class="lineno"> 2122</span>       assert(!FQT-><a class="code" href="classclang_1_1Type.html#aeb2ffe71ce3dab180574284222a92bc3">isUnionType</a>() &&</div>
+<div class="line"><a name="l02123"></a><span class="lineno"> 2123</span>              <span class="stringliteral">"layout for array of unions not supported"</span>);</div>
+<div class="line"><a name="l02124"></a><span class="lineno"> 2124</span>       <span class="keywordflow">if</span> (FQT-><a class="code" href="classclang_1_1Type.html#a6525adb10d549a7ee372424dcdb6b9bd">isRecordType</a>() && ElCount) {</div>
+<div class="line"><a name="l02125"></a><span class="lineno"> 2125</span>         <span class="keywordtype">int</span> OldIndex = RunSkipBlockVars.size() - 1;</div>
+<div class="line"><a name="l02126"></a><span class="lineno"> 2126</span>         <span class="keyword">const</span> <a class="code" href="classclang_1_1RecordType.html">RecordType</a> *RT = FQT-><a class="code" href="classclang_1_1Type.html#a12103ea8bee9506930287bab68a08569">getAs</a><<a class="code" href="classclang_1_1RecordType.html">RecordType</a>>();</div>
+<div class="line"><a name="l02127"></a><span class="lineno"> 2127</span>         BuildRCBlockVarRecordLayout(RT, BytePos + FieldOffset,</div>
+<div class="line"><a name="l02128"></a><span class="lineno"> 2128</span>                                     HasUnion);</div>
+<div class="line"><a name="l02129"></a><span class="lineno"> 2129</span>         </div>
+<div class="line"><a name="l02130"></a><span class="lineno"> 2130</span>         <span class="comment">// Replicate layout information for each array element. Note that</span></div>
+<div class="line"><a name="l02131"></a><span class="lineno"> 2131</span>         <span class="comment">// one element is already done.</span></div>
+<div class="line"><a name="l02132"></a><span class="lineno"> 2132</span>         uint64_t ElIx = 1;</div>
+<div class="line"><a name="l02133"></a><span class="lineno"> 2133</span>         <span class="keywordflow">for</span> (<span class="keywordtype">int</span> FirstIndex = RunSkipBlockVars.size() - 1 ;ElIx < ElCount; ElIx++) {</div>
+<div class="line"><a name="l02134"></a><span class="lineno"> 2134</span>           <a class="code" href="classclang_1_1CharUnits.html">CharUnits</a> Size = CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>().<a class="code" href="classclang_1_1ASTContext.html#ae8d8371f22bd850bced9b4b9ca848c4e" title="Return the size of the specified (complete) type T, in characters.">getTypeSizeInChars</a>(RT);</div>
+<div class="line"><a name="l02135"></a><span class="lineno"> 2135</span>           <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = OldIndex+1; i <= FirstIndex; ++i)</div>
+<div class="line"><a name="l02136"></a><span class="lineno"> 2136</span>             RunSkipBlockVars.push_back(</div>
+<div class="line"><a name="l02137"></a><span class="lineno"> 2137</span>               RUN_SKIP(RunSkipBlockVars[i].opcode,</div>
+<div class="line"><a name="l02138"></a><span class="lineno"> 2138</span>               RunSkipBlockVars[i].block_var_bytepos + Size*ElIx,</div>
+<div class="line"><a name="l02139"></a><span class="lineno"> 2139</span>               RunSkipBlockVars[i].block_var_size));</div>
+<div class="line"><a name="l02140"></a><span class="lineno"> 2140</span>         }</div>
+<div class="line"><a name="l02141"></a><span class="lineno"> 2141</span>         <span class="keywordflow">continue</span>;</div>
+<div class="line"><a name="l02142"></a><span class="lineno"> 2142</span>       }</div>
+<div class="line"><a name="l02143"></a><span class="lineno"> 2143</span>     }</div>
+<div class="line"><a name="l02144"></a><span class="lineno"> 2144</span>     <a class="code" href="classclang_1_1CharUnits.html">CharUnits</a> FieldSize = CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>().<a class="code" href="classclang_1_1ASTContext.html#ae8d8371f22bd850bced9b4b9ca848c4e" title="Return the size of the specified (complete) type T, in characters.">getTypeSizeInChars</a>(Field-><a class="code" href="classclang_1_1ValueDecl.html#aefa6d3327144aee23d2935f41d993484">getType</a>());</div>
+<div class="line"><a name="l02145"></a><span class="lineno"> 2145</span>     <span class="keywordflow">if</span> (IsUnion) {</div>
+<div class="line"><a name="l02146"></a><span class="lineno"> 2146</span>       <a class="code" href="classclang_1_1CharUnits.html">CharUnits</a> UnionIvarSize = FieldSize;</div>
+<div class="line"><a name="l02147"></a><span class="lineno"> 2147</span>       <span class="keywordflow">if</span> (UnionIvarSize > MaxUnionSize) {</div>
+<div class="line"><a name="l02148"></a><span class="lineno"> 2148</span>         MaxUnionSize = UnionIvarSize;</div>
+<div class="line"><a name="l02149"></a><span class="lineno"> 2149</span>         MaxField = Field;</div>
+<div class="line"><a name="l02150"></a><span class="lineno"> 2150</span>         MaxFieldOffset = FieldOffset;</div>
+<div class="line"><a name="l02151"></a><span class="lineno"> 2151</span>       }</div>
+<div class="line"><a name="l02152"></a><span class="lineno"> 2152</span>     } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l02153"></a><span class="lineno"> 2153</span>       UpdateRunSkipBlockVars(<span class="keyword">false</span>,</div>
+<div class="line"><a name="l02154"></a><span class="lineno"> 2154</span>                              getBlockCaptureLifetime(FQT, ByrefLayout),</div>
+<div class="line"><a name="l02155"></a><span class="lineno"> 2155</span>                              BytePos + FieldOffset,</div>
+<div class="line"><a name="l02156"></a><span class="lineno"> 2156</span>                              FieldSize);</div>
+<div class="line"><a name="l02157"></a><span class="lineno"> 2157</span>     }</div>
+<div class="line"><a name="l02158"></a><span class="lineno"> 2158</span>   }</div>
+<div class="line"><a name="l02159"></a><span class="lineno"> 2159</span>   </div>
+<div class="line"><a name="l02160"></a><span class="lineno"> 2160</span>   <span class="keywordflow">if</span> (LastFieldBitfieldOrUnnamed) {</div>
+<div class="line"><a name="l02161"></a><span class="lineno"> 2161</span>     <span class="keywordflow">if</span> (LastFieldBitfieldOrUnnamed-><a class="code" href="classclang_1_1FieldDecl.html#af8c123e193d426f26496c15e2f168a49" title="isBitfield - Determines whether this field is a bitfield.">isBitField</a>()) {</div>
+<div class="line"><a name="l02162"></a><span class="lineno"> 2162</span>       <span class="comment">// Last field was a bitfield. Must update the info.</span></div>
+<div class="line"><a name="l02163"></a><span class="lineno"> 2163</span>       uint64_t BitFieldSize</div>
+<div class="line"><a name="l02164"></a><span class="lineno"> 2164</span>         = LastFieldBitfieldOrUnnamed-><a class="code" href="classclang_1_1FieldDecl.html#ae5e97c5f219d8bd73934ef38453ae44a">getBitWidthValue</a>(CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>());</div>
+<div class="line"><a name="l02165"></a><span class="lineno"> 2165</span>       <span class="keywordtype">unsigned</span> UnsSize = (BitFieldSize / ByteSizeInBits) +</div>
+<div class="line"><a name="l02166"></a><span class="lineno"> 2166</span>                         ((BitFieldSize % ByteSizeInBits) != 0);</div>
+<div class="line"><a name="l02167"></a><span class="lineno"> 2167</span>       <a class="code" href="classclang_1_1CharUnits.html">CharUnits</a> Size = CharUnits::fromQuantity(UnsSize);</div>
+<div class="line"><a name="l02168"></a><span class="lineno"> 2168</span>       Size += LastBitfieldOrUnnamedOffset;</div>
+<div class="line"><a name="l02169"></a><span class="lineno"> 2169</span>       UpdateRunSkipBlockVars(<span class="keyword">false</span>,</div>
+<div class="line"><a name="l02170"></a><span class="lineno"> 2170</span>                              getBlockCaptureLifetime(LastFieldBitfieldOrUnnamed-><a class="code" href="classclang_1_1ValueDecl.html#aefa6d3327144aee23d2935f41d993484">getType</a>(),</div>
+<div class="line"><a name="l02171"></a><span class="lineno"> 2171</span>                                                      ByrefLayout),</div>
+<div class="line"><a name="l02172"></a><span class="lineno"> 2172</span>                              BytePos + LastBitfieldOrUnnamedOffset,</div>
+<div class="line"><a name="l02173"></a><span class="lineno"> 2173</span>                              Size);</div>
+<div class="line"><a name="l02174"></a><span class="lineno"> 2174</span>     } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l02175"></a><span class="lineno"> 2175</span>       assert(!LastFieldBitfieldOrUnnamed-><a class="code" href="classclang_1_1NamedDecl.html#a554752f8f43eea0e6288da7205167fe2">getIdentifier</a>() &&<span class="stringliteral">"Expected unnamed"</span>);</div>
+<div class="line"><a name="l02176"></a><span class="lineno"> 2176</span>       <span class="comment">// Last field was unnamed. Must update skip info.</span></div>
+<div class="line"><a name="l02177"></a><span class="lineno"> 2177</span>       <a class="code" href="classclang_1_1CharUnits.html">CharUnits</a> FieldSize</div>
+<div class="line"><a name="l02178"></a><span class="lineno"> 2178</span>         = CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>().<a class="code" href="classclang_1_1ASTContext.html#ae8d8371f22bd850bced9b4b9ca848c4e" title="Return the size of the specified (complete) type T, in characters.">getTypeSizeInChars</a>(LastFieldBitfieldOrUnnamed-><a class="code" href="classclang_1_1ValueDecl.html#aefa6d3327144aee23d2935f41d993484">getType</a>());</div>
+<div class="line"><a name="l02179"></a><span class="lineno"> 2179</span>       UpdateRunSkipBlockVars(<span class="keyword">false</span>,</div>
+<div class="line"><a name="l02180"></a><span class="lineno"> 2180</span>                              getBlockCaptureLifetime(LastFieldBitfieldOrUnnamed-><a class="code" href="classclang_1_1ValueDecl.html#aefa6d3327144aee23d2935f41d993484">getType</a>(),</div>
+<div class="line"><a name="l02181"></a><span class="lineno"> 2181</span>                                                      ByrefLayout),</div>
+<div class="line"><a name="l02182"></a><span class="lineno"> 2182</span>                              BytePos + LastBitfieldOrUnnamedOffset,</div>
+<div class="line"><a name="l02183"></a><span class="lineno"> 2183</span>                              FieldSize);</div>
+<div class="line"><a name="l02184"></a><span class="lineno"> 2184</span>     }</div>
+<div class="line"><a name="l02185"></a><span class="lineno"> 2185</span>   }</div>
+<div class="line"><a name="l02186"></a><span class="lineno"> 2186</span>   </div>
+<div class="line"><a name="l02187"></a><span class="lineno"> 2187</span>   <span class="keywordflow">if</span> (MaxField)</div>
+<div class="line"><a name="l02188"></a><span class="lineno"> 2188</span>     UpdateRunSkipBlockVars(<span class="keyword">false</span>,</div>
+<div class="line"><a name="l02189"></a><span class="lineno"> 2189</span>                            getBlockCaptureLifetime(MaxField-><a class="code" href="classclang_1_1ValueDecl.html#aefa6d3327144aee23d2935f41d993484">getType</a>(), ByrefLayout),</div>
+<div class="line"><a name="l02190"></a><span class="lineno"> 2190</span>                            BytePos + MaxFieldOffset,</div>
+<div class="line"><a name="l02191"></a><span class="lineno"> 2191</span>                            MaxUnionSize);</div>
+<div class="line"><a name="l02192"></a><span class="lineno"> 2192</span> }</div>
+<div class="line"><a name="l02193"></a><span class="lineno"> 2193</span> </div>
+<div class="line"><a name="l02194"></a><span class="lineno"> 2194</span> <span class="keywordtype">void</span> CGObjCCommonMac::BuildRCBlockVarRecordLayout(<span class="keyword">const</span> <a class="code" href="classclang_1_1RecordType.html">RecordType</a> *RT,</div>
+<div class="line"><a name="l02195"></a><span class="lineno"> 2195</span>                                                   <a class="code" href="classclang_1_1CharUnits.html">CharUnits</a> BytePos,</div>
+<div class="line"><a name="l02196"></a><span class="lineno"> 2196</span>                                                   <span class="keywordtype">bool</span> &HasUnion,</div>
+<div class="line"><a name="l02197"></a><span class="lineno"> 2197</span>                                                   <span class="keywordtype">bool</span> ByrefLayout) {</div>
+<div class="line"><a name="l02198"></a><span class="lineno"> 2198</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1RecordDecl.html">RecordDecl</a> *RD = RT-><a class="code" href="classclang_1_1RecordType.html#a312ab3ebe179cc7d8692c07479c91076">getDecl</a>();</div>
+<div class="line"><a name="l02199"></a><span class="lineno"> 2199</span>   <a class="code" href="classllvm_1_1SmallVector.html">SmallVector<const FieldDecl*, 16></a> Fields;</div>
+<div class="line"><a name="l02200"></a><span class="lineno"> 2200</span>   <span class="keywordflow">for</span> (<a class="code" href="classclang_1_1DeclContext_1_1specific__decl__iterator.html">RecordDecl::field_iterator</a> i = RD-><a class="code" href="classclang_1_1RecordDecl.html#a723c70951c30c075e7a516d1933683e4">field_begin</a>(),</div>
+<div class="line"><a name="l02201"></a><span class="lineno"> 2201</span>        e = RD-><a class="code" href="classclang_1_1RecordDecl.html#a118f17574e4199f2d26cd20902dc88ca">field_end</a>(); i != e; ++i)</div>
+<div class="line"><a name="l02202"></a><span class="lineno"> 2202</span>     Fields.push_back(*i);</div>
+<div class="line"><a name="l02203"></a><span class="lineno"> 2203</span>   llvm::Type *Ty = CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a1325760f10142c1da8521b53734858ef">getTypes</a>().<a class="code" href="classclang_1_1CodeGen_1_1CodeGenTypes.html#a1bd0fa41a59020e22706ac3f36f7c31f" title="ConvertType - Convert type T into a llvm::Type.">ConvertType</a>(<a class="code" href="classclang_1_1QualType.html">QualType</a>(RT, 0));</div>
+<div class="line"><a name="l02204"></a><span class="lineno"> 2204</span>   <span class="keyword">const</span> llvm::StructLayout *RecLayout =</div>
+<div class="line"><a name="l02205"></a><span class="lineno"> 2205</span>     CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a7a01d2bf67fc7c685a8648809c0913a7">getDataLayout</a>().getStructLayout(cast<llvm::StructType>(Ty));</div>
+<div class="line"><a name="l02206"></a><span class="lineno"> 2206</span>   </div>
+<div class="line"><a name="l02207"></a><span class="lineno"> 2207</span>   BuildRCRecordLayout(RecLayout, RD, Fields, BytePos, HasUnion, ByrefLayout);</div>
+<div class="line"><a name="l02208"></a><span class="lineno"> 2208</span> }</div>
+<div class="line"><a name="l02209"></a><span class="lineno"> 2209</span> <span class="comment"></span></div>
+<div class="line"><a name="l02210"></a><span class="lineno"> 2210</span> <span class="comment">/// InlineLayoutInstruction - This routine produce an inline instruction for the</span></div>
+<div class="line"><a name="l02211"></a><span class="lineno"> 2211</span> <span class="comment">/// block variable layout if it can. If not, it returns 0. Rules are as follow:</span></div>
+<div class="line"><a name="l02212"></a><span class="lineno"> 2212</span> <span class="comment">/// If ((uintptr_t) layout) < (1 << 12), the layout is inline. In the 64bit world,</span></div>
+<div class="line"><a name="l02213"></a><span class="lineno"> 2213</span> <span class="comment">/// an inline layout of value 0x0000000000000xyz is interpreted as follows:</span></div>
+<div class="line"><a name="l02214"></a><span class="lineno"> 2214</span> <span class="comment">/// x captured object pointers of BLOCK_LAYOUT_STRONG. Followed by</span></div>
+<div class="line"><a name="l02215"></a><span class="lineno"> 2215</span> <span class="comment">/// y captured object of BLOCK_LAYOUT_BYREF. Followed by</span></div>
+<div class="line"><a name="l02216"></a><span class="lineno"> 2216</span> <span class="comment">/// z captured object of BLOCK_LAYOUT_WEAK. If any of the above is missing, zero</span></div>
+<div class="line"><a name="l02217"></a><span class="lineno"> 2217</span> <span class="comment">/// replaces it. For example, 0x00000x00 means x BLOCK_LAYOUT_STRONG and no</span></div>
+<div class="line"><a name="l02218"></a><span class="lineno"> 2218</span> <span class="comment">/// BLOCK_LAYOUT_BYREF and no BLOCK_LAYOUT_WEAK objects are captured.</span></div>
+<div class="line"><a name="l02219"></a><span class="lineno"> 2219</span> <span class="comment"></span>uint64_t CGObjCCommonMac::InlineLayoutInstruction(</div>
+<div class="line"><a name="l02220"></a><span class="lineno"> 2220</span>                                     <a class="code" href="classllvm_1_1SmallVectorImpl.html">SmallVectorImpl<unsigned char></a> &Layout) {</div>
+<div class="line"><a name="l02221"></a><span class="lineno"> 2221</span>   uint64_t Result = 0;</div>
+<div class="line"><a name="l02222"></a><span class="lineno"> 2222</span>   <span class="keywordflow">if</span> (Layout.size() <= 3) {</div>
+<div class="line"><a name="l02223"></a><span class="lineno"> 2223</span>     <span class="keywordtype">unsigned</span> size = Layout.size();</div>
+<div class="line"><a name="l02224"></a><span class="lineno"> 2224</span>     <span class="keywordtype">unsigned</span> strong_word_count = 0, byref_word_count=0, weak_word_count=0;</div>
+<div class="line"><a name="l02225"></a><span class="lineno"> 2225</span>     <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> inst;</div>
+<div class="line"><a name="l02226"></a><span class="lineno"> 2226</span>     <span class="keyword">enum</span> BLOCK_LAYOUT_OPCODE opcode ;</div>
+<div class="line"><a name="l02227"></a><span class="lineno"> 2227</span>     <span class="keywordflow">switch</span> (size) {</div>
+<div class="line"><a name="l02228"></a><span class="lineno"> 2228</span>       <span class="keywordflow">case</span> 3:</div>
+<div class="line"><a name="l02229"></a><span class="lineno"> 2229</span>         inst = Layout[0];</div>
+<div class="line"><a name="l02230"></a><span class="lineno"> 2230</span>         opcode = (<span class="keyword">enum</span> BLOCK_LAYOUT_OPCODE) (inst >> 4);</div>
+<div class="line"><a name="l02231"></a><span class="lineno"> 2231</span>         <span class="keywordflow">if</span> (opcode == BLOCK_LAYOUT_STRONG)</div>
+<div class="line"><a name="l02232"></a><span class="lineno"> 2232</span>           strong_word_count = (inst & 0xF)+1;</div>
+<div class="line"><a name="l02233"></a><span class="lineno"> 2233</span>         <span class="keywordflow">else</span></div>
+<div class="line"><a name="l02234"></a><span class="lineno"> 2234</span>           <span class="keywordflow">return</span> 0;</div>
+<div class="line"><a name="l02235"></a><span class="lineno"> 2235</span>         inst = Layout[1];</div>
+<div class="line"><a name="l02236"></a><span class="lineno"> 2236</span>         opcode = (<span class="keyword">enum</span> BLOCK_LAYOUT_OPCODE) (inst >> 4);</div>
+<div class="line"><a name="l02237"></a><span class="lineno"> 2237</span>         <span class="keywordflow">if</span> (opcode == BLOCK_LAYOUT_BYREF)</div>
+<div class="line"><a name="l02238"></a><span class="lineno"> 2238</span>           byref_word_count = (inst & 0xF)+1;</div>
+<div class="line"><a name="l02239"></a><span class="lineno"> 2239</span>         <span class="keywordflow">else</span></div>
+<div class="line"><a name="l02240"></a><span class="lineno"> 2240</span>           <span class="keywordflow">return</span> 0;</div>
+<div class="line"><a name="l02241"></a><span class="lineno"> 2241</span>         inst = Layout[2];</div>
+<div class="line"><a name="l02242"></a><span class="lineno"> 2242</span>         opcode = (<span class="keyword">enum</span> BLOCK_LAYOUT_OPCODE) (inst >> 4);</div>
+<div class="line"><a name="l02243"></a><span class="lineno"> 2243</span>         <span class="keywordflow">if</span> (opcode == BLOCK_LAYOUT_WEAK)</div>
+<div class="line"><a name="l02244"></a><span class="lineno"> 2244</span>           weak_word_count = (inst & 0xF)+1;</div>
+<div class="line"><a name="l02245"></a><span class="lineno"> 2245</span>         <span class="keywordflow">else</span></div>
+<div class="line"><a name="l02246"></a><span class="lineno"> 2246</span>           <span class="keywordflow">return</span> 0;</div>
+<div class="line"><a name="l02247"></a><span class="lineno"> 2247</span>         <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l02248"></a><span class="lineno"> 2248</span>         </div>
+<div class="line"><a name="l02249"></a><span class="lineno"> 2249</span>       <span class="keywordflow">case</span> 2:</div>
+<div class="line"><a name="l02250"></a><span class="lineno"> 2250</span>         inst = Layout[0];</div>
+<div class="line"><a name="l02251"></a><span class="lineno"> 2251</span>         opcode = (<span class="keyword">enum</span> BLOCK_LAYOUT_OPCODE) (inst >> 4);</div>
+<div class="line"><a name="l02252"></a><span class="lineno"> 2252</span>         <span class="keywordflow">if</span> (opcode == BLOCK_LAYOUT_STRONG) {</div>
+<div class="line"><a name="l02253"></a><span class="lineno"> 2253</span>           strong_word_count = (inst & 0xF)+1;</div>
+<div class="line"><a name="l02254"></a><span class="lineno"> 2254</span>           inst = Layout[1];</div>
+<div class="line"><a name="l02255"></a><span class="lineno"> 2255</span>           opcode = (<span class="keyword">enum</span> BLOCK_LAYOUT_OPCODE) (inst >> 4);</div>
+<div class="line"><a name="l02256"></a><span class="lineno"> 2256</span>           <span class="keywordflow">if</span> (opcode == BLOCK_LAYOUT_BYREF)</div>
+<div class="line"><a name="l02257"></a><span class="lineno"> 2257</span>             byref_word_count = (inst & 0xF)+1;</div>
+<div class="line"><a name="l02258"></a><span class="lineno"> 2258</span>           <span class="keywordflow">else</span> <span class="keywordflow">if</span> (opcode == BLOCK_LAYOUT_WEAK)</div>
+<div class="line"><a name="l02259"></a><span class="lineno"> 2259</span>             weak_word_count = (inst & 0xF)+1;</div>
+<div class="line"><a name="l02260"></a><span class="lineno"> 2260</span>           <span class="keywordflow">else</span></div>
+<div class="line"><a name="l02261"></a><span class="lineno"> 2261</span>             <span class="keywordflow">return</span> 0;</div>
+<div class="line"><a name="l02262"></a><span class="lineno"> 2262</span>         }</div>
+<div class="line"><a name="l02263"></a><span class="lineno"> 2263</span>         <span class="keywordflow">else</span> <span class="keywordflow">if</span> (opcode == BLOCK_LAYOUT_BYREF) {</div>
+<div class="line"><a name="l02264"></a><span class="lineno"> 2264</span>           byref_word_count = (inst & 0xF)+1;</div>
+<div class="line"><a name="l02265"></a><span class="lineno"> 2265</span>           inst = Layout[1];</div>
+<div class="line"><a name="l02266"></a><span class="lineno"> 2266</span>           opcode = (<span class="keyword">enum</span> BLOCK_LAYOUT_OPCODE) (inst >> 4);</div>
+<div class="line"><a name="l02267"></a><span class="lineno"> 2267</span>           <span class="keywordflow">if</span> (opcode == BLOCK_LAYOUT_WEAK)</div>
+<div class="line"><a name="l02268"></a><span class="lineno"> 2268</span>             weak_word_count = (inst & 0xF)+1;</div>
+<div class="line"><a name="l02269"></a><span class="lineno"> 2269</span>           <span class="keywordflow">else</span></div>
+<div class="line"><a name="l02270"></a><span class="lineno"> 2270</span>             <span class="keywordflow">return</span> 0;</div>
+<div class="line"><a name="l02271"></a><span class="lineno"> 2271</span>         }</div>
+<div class="line"><a name="l02272"></a><span class="lineno"> 2272</span>         <span class="keywordflow">else</span></div>
+<div class="line"><a name="l02273"></a><span class="lineno"> 2273</span>           <span class="keywordflow">return</span> 0;</div>
+<div class="line"><a name="l02274"></a><span class="lineno"> 2274</span>         <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l02275"></a><span class="lineno"> 2275</span>         </div>
+<div class="line"><a name="l02276"></a><span class="lineno"> 2276</span>       <span class="keywordflow">case</span> 1:</div>
+<div class="line"><a name="l02277"></a><span class="lineno"> 2277</span>         inst = Layout[0];</div>
+<div class="line"><a name="l02278"></a><span class="lineno"> 2278</span>         opcode = (<span class="keyword">enum</span> BLOCK_LAYOUT_OPCODE) (inst >> 4);</div>
+<div class="line"><a name="l02279"></a><span class="lineno"> 2279</span>         <span class="keywordflow">if</span> (opcode == BLOCK_LAYOUT_STRONG)</div>
+<div class="line"><a name="l02280"></a><span class="lineno"> 2280</span>           strong_word_count = (inst & 0xF)+1;</div>
+<div class="line"><a name="l02281"></a><span class="lineno"> 2281</span>         <span class="keywordflow">else</span> <span class="keywordflow">if</span> (opcode == BLOCK_LAYOUT_BYREF)</div>
+<div class="line"><a name="l02282"></a><span class="lineno"> 2282</span>           byref_word_count = (inst & 0xF)+1;</div>
+<div class="line"><a name="l02283"></a><span class="lineno"> 2283</span>         <span class="keywordflow">else</span> <span class="keywordflow">if</span> (opcode == BLOCK_LAYOUT_WEAK)</div>
+<div class="line"><a name="l02284"></a><span class="lineno"> 2284</span>           weak_word_count = (inst & 0xF)+1;</div>
+<div class="line"><a name="l02285"></a><span class="lineno"> 2285</span>         <span class="keywordflow">else</span></div>
+<div class="line"><a name="l02286"></a><span class="lineno"> 2286</span>           <span class="keywordflow">return</span> 0;</div>
+<div class="line"><a name="l02287"></a><span class="lineno"> 2287</span>         <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l02288"></a><span class="lineno"> 2288</span>         </div>
+<div class="line"><a name="l02289"></a><span class="lineno"> 2289</span>       <span class="keywordflow">default</span>:</div>
+<div class="line"><a name="l02290"></a><span class="lineno"> 2290</span>         <span class="keywordflow">return</span> 0;</div>
+<div class="line"><a name="l02291"></a><span class="lineno"> 2291</span>     }</div>
+<div class="line"><a name="l02292"></a><span class="lineno"> 2292</span>     </div>
+<div class="line"><a name="l02293"></a><span class="lineno"> 2293</span>     <span class="comment">// Cannot inline when any of the word counts is 15. Because this is one less</span></div>
+<div class="line"><a name="l02294"></a><span class="lineno"> 2294</span>     <span class="comment">// than the actual work count (so 15 means 16 actual word counts),</span></div>
+<div class="line"><a name="l02295"></a><span class="lineno"> 2295</span>     <span class="comment">// and we can only display 0 thru 15 word counts.</span></div>
+<div class="line"><a name="l02296"></a><span class="lineno"> 2296</span>     <span class="keywordflow">if</span> (strong_word_count == 16 || byref_word_count == 16 || weak_word_count == 16)</div>
+<div class="line"><a name="l02297"></a><span class="lineno"> 2297</span>       <span class="keywordflow">return</span> 0;</div>
+<div class="line"><a name="l02298"></a><span class="lineno"> 2298</span>     </div>
+<div class="line"><a name="l02299"></a><span class="lineno"> 2299</span>     <span class="keywordtype">unsigned</span> count =</div>
+<div class="line"><a name="l02300"></a><span class="lineno"> 2300</span>       (strong_word_count != 0) + (byref_word_count != 0) + (weak_word_count != 0);</div>
+<div class="line"><a name="l02301"></a><span class="lineno"> 2301</span>     </div>
+<div class="line"><a name="l02302"></a><span class="lineno"> 2302</span>     <span class="keywordflow">if</span> (size == count) {</div>
+<div class="line"><a name="l02303"></a><span class="lineno"> 2303</span>       <span class="keywordflow">if</span> (strong_word_count)</div>
+<div class="line"><a name="l02304"></a><span class="lineno"> 2304</span>         Result = strong_word_count;</div>
+<div class="line"><a name="l02305"></a><span class="lineno"> 2305</span>       Result <<= 4;</div>
+<div class="line"><a name="l02306"></a><span class="lineno"> 2306</span>       <span class="keywordflow">if</span> (byref_word_count)</div>
+<div class="line"><a name="l02307"></a><span class="lineno"> 2307</span>         Result += byref_word_count;</div>
+<div class="line"><a name="l02308"></a><span class="lineno"> 2308</span>       Result <<= 4;</div>
+<div class="line"><a name="l02309"></a><span class="lineno"> 2309</span>       <span class="keywordflow">if</span> (weak_word_count)</div>
+<div class="line"><a name="l02310"></a><span class="lineno"> 2310</span>         Result += weak_word_count;</div>
+<div class="line"><a name="l02311"></a><span class="lineno"> 2311</span>     }</div>
+<div class="line"><a name="l02312"></a><span class="lineno"> 2312</span>   }</div>
+<div class="line"><a name="l02313"></a><span class="lineno"> 2313</span>   <span class="keywordflow">return</span> Result;</div>
+<div class="line"><a name="l02314"></a><span class="lineno"> 2314</span> }</div>
+<div class="line"><a name="l02315"></a><span class="lineno"> 2315</span> </div>
+<div class="line"><a name="l02316"></a><span class="lineno"> 2316</span> llvm::Constant *CGObjCCommonMac::getBitmapBlockLayout(<span class="keywordtype">bool</span> ComputeByrefLayout) {</div>
+<div class="line"><a name="l02317"></a><span class="lineno"> 2317</span>   llvm::Constant *nullPtr = llvm::Constant::getNullValue(CGM.<a class="code" href="structclang_1_1CodeGen_1_1CodeGenTypeCache.html#ac3ec7e3938996c5354dbee1a103ed4d2">Int8PtrTy</a>);</div>
+<div class="line"><a name="l02318"></a><span class="lineno"> 2318</span>   <span class="keywordflow">if</span> (RunSkipBlockVars.empty())</div>
+<div class="line"><a name="l02319"></a><span class="lineno"> 2319</span>     <span class="keywordflow">return</span> nullPtr;</div>
+<div class="line"><a name="l02320"></a><span class="lineno"> 2320</span>   <span class="keywordtype">unsigned</span> WordSizeInBits = CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a0256b70c5f3ad3812e767f745196fa3f">getTarget</a>().<a class="code" href="classclang_1_1TargetInfo.html#a79ccbed497a604ca6d9dbfd9b8ac548f" title="Return the width of pointers on this target, for the specified address space.">getPointerWidth</a>(0);</div>
+<div class="line"><a name="l02321"></a><span class="lineno"> 2321</span>   <span class="keywordtype">unsigned</span> ByteSizeInBits = CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a0256b70c5f3ad3812e767f745196fa3f">getTarget</a>().<a class="code" href="classclang_1_1TargetInfo.html#a4e2ac19ae48b353248e7e15754283c8d">getCharWidth</a>();</div>
+<div class="line"><a name="l02322"></a><span class="lineno"> 2322</span>   <span class="keywordtype">unsigned</span> WordSizeInBytes = WordSizeInBits/ByteSizeInBits;</div>
+<div class="line"><a name="l02323"></a><span class="lineno"> 2323</span>   </div>
+<div class="line"><a name="l02324"></a><span class="lineno"> 2324</span>   <span class="comment">// Sort on byte position; captures might not be allocated in order,</span></div>
+<div class="line"><a name="l02325"></a><span class="lineno"> 2325</span>   <span class="comment">// and unions can do funny things.</span></div>
+<div class="line"><a name="l02326"></a><span class="lineno"> 2326</span>   llvm::array_pod_sort(RunSkipBlockVars.begin(), RunSkipBlockVars.end());</div>
+<div class="line"><a name="l02327"></a><span class="lineno"> 2327</span>   <a class="code" href="classllvm_1_1SmallVector.html">SmallVector<unsigned char, 16></a> Layout;</div>
+<div class="line"><a name="l02328"></a><span class="lineno"> 2328</span>   </div>
+<div class="line"><a name="l02329"></a><span class="lineno"> 2329</span>   <span class="keywordtype">unsigned</span> size = RunSkipBlockVars.size();</div>
+<div class="line"><a name="l02330"></a><span class="lineno"> 2330</span>   <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> i = 0; i < size; i++) {</div>
+<div class="line"><a name="l02331"></a><span class="lineno"> 2331</span>     <span class="keyword">enum</span> BLOCK_LAYOUT_OPCODE opcode = RunSkipBlockVars[i].opcode;</div>
+<div class="line"><a name="l02332"></a><span class="lineno"> 2332</span>     <a class="code" href="classclang_1_1CharUnits.html">CharUnits</a> start_byte_pos = RunSkipBlockVars[i].block_var_bytepos;</div>
+<div class="line"><a name="l02333"></a><span class="lineno"> 2333</span>     <a class="code" href="classclang_1_1CharUnits.html">CharUnits</a> end_byte_pos = start_byte_pos;</div>
+<div class="line"><a name="l02334"></a><span class="lineno"> 2334</span>     <span class="keywordtype">unsigned</span> j = i+1;</div>
+<div class="line"><a name="l02335"></a><span class="lineno"> 2335</span>     <span class="keywordflow">while</span> (j < size) {</div>
+<div class="line"><a name="l02336"></a><span class="lineno"> 2336</span>       <span class="keywordflow">if</span> (opcode == RunSkipBlockVars[j].opcode) {</div>
+<div class="line"><a name="l02337"></a><span class="lineno"> 2337</span>         end_byte_pos = RunSkipBlockVars[j++].block_var_bytepos;</div>
+<div class="line"><a name="l02338"></a><span class="lineno"> 2338</span>         i++;</div>
+<div class="line"><a name="l02339"></a><span class="lineno"> 2339</span>       }</div>
+<div class="line"><a name="l02340"></a><span class="lineno"> 2340</span>       <span class="keywordflow">else</span></div>
+<div class="line"><a name="l02341"></a><span class="lineno"> 2341</span>         <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l02342"></a><span class="lineno"> 2342</span>     }</div>
+<div class="line"><a name="l02343"></a><span class="lineno"> 2343</span>     <a class="code" href="classclang_1_1CharUnits.html">CharUnits</a> size_in_bytes =</div>
+<div class="line"><a name="l02344"></a><span class="lineno"> 2344</span>     end_byte_pos - start_byte_pos + RunSkipBlockVars[j-1].block_var_size;</div>
+<div class="line"><a name="l02345"></a><span class="lineno"> 2345</span>     <span class="keywordflow">if</span> (j < size) {</div>
+<div class="line"><a name="l02346"></a><span class="lineno"> 2346</span>       <a class="code" href="classclang_1_1CharUnits.html">CharUnits</a> gap =</div>
+<div class="line"><a name="l02347"></a><span class="lineno"> 2347</span>       RunSkipBlockVars[j].block_var_bytepos -</div>
+<div class="line"><a name="l02348"></a><span class="lineno"> 2348</span>       RunSkipBlockVars[j-1].block_var_bytepos - RunSkipBlockVars[j-1].block_var_size;</div>
+<div class="line"><a name="l02349"></a><span class="lineno"> 2349</span>       size_in_bytes += gap;</div>
+<div class="line"><a name="l02350"></a><span class="lineno"> 2350</span>     }</div>
+<div class="line"><a name="l02351"></a><span class="lineno"> 2351</span>     <a class="code" href="classclang_1_1CharUnits.html">CharUnits</a> residue_in_bytes = CharUnits::Zero();</div>
+<div class="line"><a name="l02352"></a><span class="lineno"> 2352</span>     <span class="keywordflow">if</span> (opcode == BLOCK_LAYOUT_NON_OBJECT_BYTES) {</div>
+<div class="line"><a name="l02353"></a><span class="lineno"> 2353</span>       residue_in_bytes = size_in_bytes % WordSizeInBytes;</div>
+<div class="line"><a name="l02354"></a><span class="lineno"> 2354</span>       size_in_bytes -= residue_in_bytes;</div>
+<div class="line"><a name="l02355"></a><span class="lineno"> 2355</span>       opcode = BLOCK_LAYOUT_NON_OBJECT_WORDS;</div>
+<div class="line"><a name="l02356"></a><span class="lineno"> 2356</span>     }</div>
+<div class="line"><a name="l02357"></a><span class="lineno"> 2357</span>     </div>
+<div class="line"><a name="l02358"></a><span class="lineno"> 2358</span>     <span class="keywordtype">unsigned</span> size_in_words = size_in_bytes.<a class="code" href="classclang_1_1CharUnits.html#a09546c4bc2fefb3cb4d964eb9f25d33a" title="getQuantity - Get the raw integer representation of this quantity.">getQuantity</a>() / WordSizeInBytes;</div>
+<div class="line"><a name="l02359"></a><span class="lineno"> 2359</span>     <span class="keywordflow">while</span> (size_in_words >= 16) {</div>
+<div class="line"><a name="l02360"></a><span class="lineno"> 2360</span>       <span class="comment">// Note that value in imm. is one less that the actual</span></div>
+<div class="line"><a name="l02361"></a><span class="lineno"> 2361</span>       <span class="comment">// value. So, 0xf means 16 words follow!</span></div>
+<div class="line"><a name="l02362"></a><span class="lineno"> 2362</span>       <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> inst = (opcode << 4) | 0xf;</div>
+<div class="line"><a name="l02363"></a><span class="lineno"> 2363</span>       Layout.push_back(inst);</div>
+<div class="line"><a name="l02364"></a><span class="lineno"> 2364</span>       size_in_words -= 16;</div>
+<div class="line"><a name="l02365"></a><span class="lineno"> 2365</span>     }</div>
+<div class="line"><a name="l02366"></a><span class="lineno"> 2366</span>     <span class="keywordflow">if</span> (size_in_words > 0) {</div>
+<div class="line"><a name="l02367"></a><span class="lineno"> 2367</span>       <span class="comment">// Note that value in imm. is one less that the actual</span></div>
+<div class="line"><a name="l02368"></a><span class="lineno"> 2368</span>       <span class="comment">// value. So, we subtract 1 away!</span></div>
+<div class="line"><a name="l02369"></a><span class="lineno"> 2369</span>       <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> inst = (opcode << 4) | (size_in_words-1);</div>
+<div class="line"><a name="l02370"></a><span class="lineno"> 2370</span>       Layout.push_back(inst);</div>
+<div class="line"><a name="l02371"></a><span class="lineno"> 2371</span>     }</div>
+<div class="line"><a name="l02372"></a><span class="lineno"> 2372</span>     <span class="keywordflow">if</span> (residue_in_bytes > CharUnits::Zero()) {</div>
+<div class="line"><a name="l02373"></a><span class="lineno"> 2373</span>       <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> inst =</div>
+<div class="line"><a name="l02374"></a><span class="lineno"> 2374</span>       (BLOCK_LAYOUT_NON_OBJECT_BYTES << 4) | (residue_in_bytes.<a class="code" href="classclang_1_1CharUnits.html#a09546c4bc2fefb3cb4d964eb9f25d33a" title="getQuantity - Get the raw integer representation of this quantity.">getQuantity</a>()-1);</div>
+<div class="line"><a name="l02375"></a><span class="lineno"> 2375</span>       Layout.push_back(inst);</div>
+<div class="line"><a name="l02376"></a><span class="lineno"> 2376</span>     }</div>
+<div class="line"><a name="l02377"></a><span class="lineno"> 2377</span>   }</div>
+<div class="line"><a name="l02378"></a><span class="lineno"> 2378</span>   </div>
+<div class="line"><a name="l02379"></a><span class="lineno"> 2379</span>   <span class="keywordtype">int</span> e = Layout.size()-1;</div>
+<div class="line"><a name="l02380"></a><span class="lineno"> 2380</span>   <span class="keywordflow">while</span> (e >= 0) {</div>
+<div class="line"><a name="l02381"></a><span class="lineno"> 2381</span>     <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> inst = Layout[e--];</div>
+<div class="line"><a name="l02382"></a><span class="lineno"> 2382</span>     <span class="keyword">enum</span> BLOCK_LAYOUT_OPCODE opcode = (<span class="keyword">enum</span> BLOCK_LAYOUT_OPCODE) (inst >> 4);</div>
+<div class="line"><a name="l02383"></a><span class="lineno"> 2383</span>     <span class="keywordflow">if</span> (opcode == BLOCK_LAYOUT_NON_OBJECT_BYTES || opcode == BLOCK_LAYOUT_NON_OBJECT_WORDS)</div>
+<div class="line"><a name="l02384"></a><span class="lineno"> 2384</span>       Layout.pop_back();</div>
+<div class="line"><a name="l02385"></a><span class="lineno"> 2385</span>     <span class="keywordflow">else</span></div>
+<div class="line"><a name="l02386"></a><span class="lineno"> 2386</span>       <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l02387"></a><span class="lineno"> 2387</span>   }</div>
+<div class="line"><a name="l02388"></a><span class="lineno"> 2388</span>   </div>
+<div class="line"><a name="l02389"></a><span class="lineno"> 2389</span>   uint64_t Result = InlineLayoutInstruction(Layout);</div>
+<div class="line"><a name="l02390"></a><span class="lineno"> 2390</span>   <span class="keywordflow">if</span> (Result != 0) {</div>
+<div class="line"><a name="l02391"></a><span class="lineno"> 2391</span>     <span class="comment">// Block variable layout instruction has been inlined.</span></div>
+<div class="line"><a name="l02392"></a><span class="lineno"> 2392</span>     <span class="keywordflow">if</span> (CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#abae1594027ce284ce5b7f06c66d24ea7">getLangOpts</a>().ObjCGCBitmapPrint) {</div>
+<div class="line"><a name="l02393"></a><span class="lineno"> 2393</span>       <span class="keywordflow">if</span> (ComputeByrefLayout)</div>
+<div class="line"><a name="l02394"></a><span class="lineno"> 2394</span>         printf(<span class="stringliteral">"\n Inline instruction for BYREF variable layout: "</span>);</div>
+<div class="line"><a name="l02395"></a><span class="lineno"> 2395</span>       <span class="keywordflow">else</span></div>
+<div class="line"><a name="l02396"></a><span class="lineno"> 2396</span>         printf(<span class="stringliteral">"\n Inline instruction for block variable layout: "</span>);</div>
+<div class="line"><a name="l02397"></a><span class="lineno"> 2397</span>       printf(<span class="stringliteral">"0x0%"</span> PRIx64 <span class="stringliteral">"\n"</span>, Result);</div>
+<div class="line"><a name="l02398"></a><span class="lineno"> 2398</span>     }</div>
+<div class="line"><a name="l02399"></a><span class="lineno"> 2399</span>     <span class="keywordflow">if</span> (WordSizeInBytes == 8) {</div>
+<div class="line"><a name="l02400"></a><span class="lineno"> 2400</span>       <span class="keyword">const</span> llvm::APInt Instruction(64, Result);</div>
+<div class="line"><a name="l02401"></a><span class="lineno"> 2401</span>       <span class="keywordflow">return</span> llvm::Constant::getIntegerValue(CGM.<a class="code" href="structclang_1_1CodeGen_1_1CodeGenTypeCache.html#a06114f0bc840b61c0b2c60bb284e46fb">Int64Ty</a>, Instruction);</div>
+<div class="line"><a name="l02402"></a><span class="lineno"> 2402</span>     }</div>
+<div class="line"><a name="l02403"></a><span class="lineno"> 2403</span>     <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l02404"></a><span class="lineno"> 2404</span>       <span class="keyword">const</span> llvm::APInt Instruction(32, Result);</div>
+<div class="line"><a name="l02405"></a><span class="lineno"> 2405</span>       <span class="keywordflow">return</span> llvm::Constant::getIntegerValue(CGM.<a class="code" href="structclang_1_1CodeGen_1_1CodeGenTypeCache.html#a9b70851ea2ff034ca9a5443ce213a81c">Int32Ty</a>, Instruction);</div>
+<div class="line"><a name="l02406"></a><span class="lineno"> 2406</span>     }</div>
+<div class="line"><a name="l02407"></a><span class="lineno"> 2407</span>   }</div>
+<div class="line"><a name="l02408"></a><span class="lineno"> 2408</span>   </div>
+<div class="line"><a name="l02409"></a><span class="lineno"> 2409</span>   <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> inst = (BLOCK_LAYOUT_OPERATOR << 4) | 0;</div>
+<div class="line"><a name="l02410"></a><span class="lineno"> 2410</span>   Layout.push_back(inst);</div>
+<div class="line"><a name="l02411"></a><span class="lineno"> 2411</span>   std::string BitMap;</div>
+<div class="line"><a name="l02412"></a><span class="lineno"> 2412</span>   <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> i = 0, e = Layout.size(); i != e; i++)</div>
+<div class="line"><a name="l02413"></a><span class="lineno"> 2413</span>     BitMap += Layout[i];</div>
+<div class="line"><a name="l02414"></a><span class="lineno"> 2414</span>   </div>
+<div class="line"><a name="l02415"></a><span class="lineno"> 2415</span>   <span class="keywordflow">if</span> (CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#abae1594027ce284ce5b7f06c66d24ea7">getLangOpts</a>().ObjCGCBitmapPrint) {</div>
+<div class="line"><a name="l02416"></a><span class="lineno"> 2416</span>     <span class="keywordflow">if</span> (ComputeByrefLayout)</div>
+<div class="line"><a name="l02417"></a><span class="lineno"> 2417</span>       printf(<span class="stringliteral">"\n BYREF variable layout: "</span>);</div>
+<div class="line"><a name="l02418"></a><span class="lineno"> 2418</span>     <span class="keywordflow">else</span></div>
+<div class="line"><a name="l02419"></a><span class="lineno"> 2419</span>       printf(<span class="stringliteral">"\n block variable layout: "</span>);</div>
+<div class="line"><a name="l02420"></a><span class="lineno"> 2420</span>     <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> i = 0, e = BitMap.size(); i != e; i++) {</div>
+<div class="line"><a name="l02421"></a><span class="lineno"> 2421</span>       <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> inst = BitMap[i];</div>
+<div class="line"><a name="l02422"></a><span class="lineno"> 2422</span>       <span class="keyword">enum</span> BLOCK_LAYOUT_OPCODE opcode = (<span class="keyword">enum</span> BLOCK_LAYOUT_OPCODE) (inst >> 4);</div>
+<div class="line"><a name="l02423"></a><span class="lineno"> 2423</span>       <span class="keywordtype">unsigned</span> delta = 1;</div>
+<div class="line"><a name="l02424"></a><span class="lineno"> 2424</span>       <span class="keywordflow">switch</span> (opcode) {</div>
+<div class="line"><a name="l02425"></a><span class="lineno"> 2425</span>         <span class="keywordflow">case</span> BLOCK_LAYOUT_OPERATOR:</div>
+<div class="line"><a name="l02426"></a><span class="lineno"> 2426</span>           printf(<span class="stringliteral">"BL_OPERATOR:"</span>);</div>
+<div class="line"><a name="l02427"></a><span class="lineno"> 2427</span>           delta = 0;</div>
+<div class="line"><a name="l02428"></a><span class="lineno"> 2428</span>           <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l02429"></a><span class="lineno"> 2429</span>         <span class="keywordflow">case</span> BLOCK_LAYOUT_NON_OBJECT_BYTES:</div>
+<div class="line"><a name="l02430"></a><span class="lineno"> 2430</span>           printf(<span class="stringliteral">"BL_NON_OBJECT_BYTES:"</span>);</div>
+<div class="line"><a name="l02431"></a><span class="lineno"> 2431</span>           <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l02432"></a><span class="lineno"> 2432</span>         <span class="keywordflow">case</span> BLOCK_LAYOUT_NON_OBJECT_WORDS:</div>
+<div class="line"><a name="l02433"></a><span class="lineno"> 2433</span>           printf(<span class="stringliteral">"BL_NON_OBJECT_WORD:"</span>);</div>
+<div class="line"><a name="l02434"></a><span class="lineno"> 2434</span>           <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l02435"></a><span class="lineno"> 2435</span>         <span class="keywordflow">case</span> BLOCK_LAYOUT_STRONG:</div>
+<div class="line"><a name="l02436"></a><span class="lineno"> 2436</span>           printf(<span class="stringliteral">"BL_STRONG:"</span>);</div>
+<div class="line"><a name="l02437"></a><span class="lineno"> 2437</span>           <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l02438"></a><span class="lineno"> 2438</span>         <span class="keywordflow">case</span> BLOCK_LAYOUT_BYREF:</div>
+<div class="line"><a name="l02439"></a><span class="lineno"> 2439</span>           printf(<span class="stringliteral">"BL_BYREF:"</span>);</div>
+<div class="line"><a name="l02440"></a><span class="lineno"> 2440</span>           <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l02441"></a><span class="lineno"> 2441</span>         <span class="keywordflow">case</span> BLOCK_LAYOUT_WEAK:</div>
+<div class="line"><a name="l02442"></a><span class="lineno"> 2442</span>           printf(<span class="stringliteral">"BL_WEAK:"</span>);</div>
+<div class="line"><a name="l02443"></a><span class="lineno"> 2443</span>           <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l02444"></a><span class="lineno"> 2444</span>         <span class="keywordflow">case</span> BLOCK_LAYOUT_UNRETAINED:</div>
+<div class="line"><a name="l02445"></a><span class="lineno"> 2445</span>           printf(<span class="stringliteral">"BL_UNRETAINED:"</span>);</div>
+<div class="line"><a name="l02446"></a><span class="lineno"> 2446</span>           <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l02447"></a><span class="lineno"> 2447</span>       }</div>
+<div class="line"><a name="l02448"></a><span class="lineno"> 2448</span>       <span class="comment">// Actual value of word count is one more that what is in the imm.</span></div>
+<div class="line"><a name="l02449"></a><span class="lineno"> 2449</span>       <span class="comment">// field of the instruction</span></div>
+<div class="line"><a name="l02450"></a><span class="lineno"> 2450</span>       printf(<span class="stringliteral">"%d"</span>, (inst & 0xf) + delta);</div>
+<div class="line"><a name="l02451"></a><span class="lineno"> 2451</span>       <span class="keywordflow">if</span> (i < e-1)</div>
+<div class="line"><a name="l02452"></a><span class="lineno"> 2452</span>         printf(<span class="stringliteral">", "</span>);</div>
+<div class="line"><a name="l02453"></a><span class="lineno"> 2453</span>       <span class="keywordflow">else</span></div>
+<div class="line"><a name="l02454"></a><span class="lineno"> 2454</span>         printf(<span class="stringliteral">"\n"</span>);</div>
+<div class="line"><a name="l02455"></a><span class="lineno"> 2455</span>     }</div>
+<div class="line"><a name="l02456"></a><span class="lineno"> 2456</span>   }</div>
+<div class="line"><a name="l02457"></a><span class="lineno"> 2457</span>   </div>
+<div class="line"><a name="l02458"></a><span class="lineno"> 2458</span>   llvm::GlobalVariable * Entry =</div>
+<div class="line"><a name="l02459"></a><span class="lineno"> 2459</span>   CreateMetadataVar(<span class="stringliteral">"\01L_OBJC_CLASS_NAME_"</span>,</div>
+<div class="line"><a name="l02460"></a><span class="lineno"> 2460</span>                     llvm::ConstantDataArray::getString(VMContext, BitMap,<span class="keyword">false</span>),</div>
+<div class="line"><a name="l02461"></a><span class="lineno"> 2461</span>                     <span class="stringliteral">"__TEXT,__objc_classname,cstring_literals"</span>, 1, <span class="keyword">true</span>);</div>
+<div class="line"><a name="l02462"></a><span class="lineno"> 2462</span>   <span class="keywordflow">return</span> <a class="code" href="CGObjCMac_8cpp.html#a7019bfd1be3a3a5bc7361895e65dd1f1" title="getConstantGEP() - Help routine to construct simple GEPs.">getConstantGEP</a>(VMContext, Entry, 0, 0);</div>
+<div class="line"><a name="l02463"></a><span class="lineno"> 2463</span> }</div>
+<div class="line"><a name="l02464"></a><span class="lineno"> 2464</span> </div>
+<div class="line"><a name="l02465"></a><span class="lineno"> 2465</span> llvm::Constant *CGObjCCommonMac::BuildRCBlockLayout(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html">CodeGenModule</a> &CGM,</div>
+<div class="line"><a name="l02466"></a><span class="lineno"> 2466</span>                                                     <span class="keyword">const</span> <a class="code" href="classclang_1_1CodeGen_1_1CGBlockInfo.html" title="CGBlockInfo - Information to generate a block literal.">CGBlockInfo</a> &blockInfo) {</div>
+<div class="line"><a name="l02467"></a><span class="lineno"> 2467</span>   assert(CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#abae1594027ce284ce5b7f06c66d24ea7">getLangOpts</a>().getGC() == LangOptions::NonGC);</div>
+<div class="line"><a name="l02468"></a><span class="lineno"> 2468</span>   </div>
+<div class="line"><a name="l02469"></a><span class="lineno"> 2469</span>   RunSkipBlockVars.clear();</div>
+<div class="line"><a name="l02470"></a><span class="lineno"> 2470</span>   <span class="keywordtype">bool</span> hasUnion = <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02471"></a><span class="lineno"> 2471</span>   </div>
+<div class="line"><a name="l02472"></a><span class="lineno"> 2472</span>   <span class="keywordtype">unsigned</span> WordSizeInBits = CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a0256b70c5f3ad3812e767f745196fa3f">getTarget</a>().<a class="code" href="classclang_1_1TargetInfo.html#a79ccbed497a604ca6d9dbfd9b8ac548f" title="Return the width of pointers on this target, for the specified address space.">getPointerWidth</a>(0);</div>
+<div class="line"><a name="l02473"></a><span class="lineno"> 2473</span>   <span class="keywordtype">unsigned</span> ByteSizeInBits = CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a0256b70c5f3ad3812e767f745196fa3f">getTarget</a>().<a class="code" href="classclang_1_1TargetInfo.html#a4e2ac19ae48b353248e7e15754283c8d">getCharWidth</a>();</div>
+<div class="line"><a name="l02474"></a><span class="lineno"> 2474</span>   <span class="keywordtype">unsigned</span> WordSizeInBytes = WordSizeInBits/ByteSizeInBits;</div>
+<div class="line"><a name="l02475"></a><span class="lineno"> 2475</span>   </div>
+<div class="line"><a name="l02476"></a><span class="lineno"> 2476</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1BlockDecl.html">BlockDecl</a> *blockDecl = blockInfo.<a class="code" href="classclang_1_1CodeGen_1_1CGBlockInfo.html#affe81dbd8e6ab4eb465902a3199ea5be">getBlockDecl</a>();</div>
+<div class="line"><a name="l02477"></a><span class="lineno"> 2477</span>   </div>
+<div class="line"><a name="l02478"></a><span class="lineno"> 2478</span>   <span class="comment">// Calculate the basic layout of the block structure.</span></div>
+<div class="line"><a name="l02479"></a><span class="lineno"> 2479</span>   <span class="keyword">const</span> llvm::StructLayout *layout =</div>
+<div class="line"><a name="l02480"></a><span class="lineno"> 2480</span>   CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a7a01d2bf67fc7c685a8648809c0913a7">getDataLayout</a>().getStructLayout(blockInfo.<a class="code" href="classclang_1_1CodeGen_1_1CGBlockInfo.html#a3e20687a2a233518fd738741bbc1ce82">StructureType</a>);</div>
+<div class="line"><a name="l02481"></a><span class="lineno"> 2481</span>   </div>
+<div class="line"><a name="l02482"></a><span class="lineno"> 2482</span>   <span class="comment">// Ignore the optional 'this' capture: C++ objects are not assumed</span></div>
+<div class="line"><a name="l02483"></a><span class="lineno"> 2483</span>   <span class="comment">// to be GC'ed.</span></div>
+<div class="line"><a name="l02484"></a><span class="lineno"> 2484</span>   <span class="keywordflow">if</span> (blockInfo.<a class="code" href="classclang_1_1CodeGen_1_1CGBlockInfo.html#ab4b504e8d12925b0bba8fa396e36846c">BlockHeaderForcedGapSize</a> != CharUnits::Zero())</div>
+<div class="line"><a name="l02485"></a><span class="lineno"> 2485</span>     UpdateRunSkipBlockVars(<span class="keyword">false</span>, Qualifiers::OCL_None,</div>
+<div class="line"><a name="l02486"></a><span class="lineno"> 2486</span>                            blockInfo.<a class="code" href="classclang_1_1CodeGen_1_1CGBlockInfo.html#a4ae0a939a7617c87493edddf11dfbe22">BlockHeaderForcedGapOffset</a>,</div>
+<div class="line"><a name="l02487"></a><span class="lineno"> 2487</span>                            blockInfo.<a class="code" href="classclang_1_1CodeGen_1_1CGBlockInfo.html#ab4b504e8d12925b0bba8fa396e36846c">BlockHeaderForcedGapSize</a>);</div>
+<div class="line"><a name="l02488"></a><span class="lineno"> 2488</span>   <span class="comment">// Walk the captured variables.</span></div>
+<div class="line"><a name="l02489"></a><span class="lineno"> 2489</span>   <span class="keywordflow">for</span> (<a class="code" href="classclang_1_1BlockDecl_1_1Capture.html">BlockDecl::capture_const_iterator</a> ci = blockDecl-><a class="code" href="classclang_1_1BlockDecl.html#ab22e740e64eb0eb9b79f8cd043b07606">capture_begin</a>(),</div>
+<div class="line"><a name="l02490"></a><span class="lineno"> 2490</span>        ce = blockDecl-><a class="code" href="classclang_1_1BlockDecl.html#a00f598199079e2be3d254168e6a24644">capture_end</a>(); ci != ce; ++ci) {</div>
+<div class="line"><a name="l02491"></a><span class="lineno"> 2491</span>     <span class="keyword">const</span> <a class="code" href="classclang_1_1VarDecl.html">VarDecl</a> *variable = ci->getVariable();</div>
+<div class="line"><a name="l02492"></a><span class="lineno"> 2492</span>     <a class="code" href="classclang_1_1QualType.html">QualType</a> type = variable-><a class="code" href="classclang_1_1ValueDecl.html#aefa6d3327144aee23d2935f41d993484">getType</a>();</div>
+<div class="line"><a name="l02493"></a><span class="lineno"> 2493</span>     </div>
+<div class="line"><a name="l02494"></a><span class="lineno"> 2494</span>     <span class="keyword">const</span> <a class="code" href="classclang_1_1CodeGen_1_1CGBlockInfo_1_1Capture.html">CGBlockInfo::Capture</a> &capture = blockInfo.<a class="code" href="classclang_1_1CodeGen_1_1CGBlockInfo.html#a1ef64054bf280fa9dc9dd4206d0e3ffa">getCapture</a>(variable);</div>
+<div class="line"><a name="l02495"></a><span class="lineno"> 2495</span>     </div>
+<div class="line"><a name="l02496"></a><span class="lineno"> 2496</span>     <span class="comment">// Ignore constant captures.</span></div>
+<div class="line"><a name="l02497"></a><span class="lineno"> 2497</span>     <span class="keywordflow">if</span> (capture.<a class="code" href="classclang_1_1CodeGen_1_1CGBlockInfo_1_1Capture.html#a993e67a796e8106fe28386e1f65576e1">isConstant</a>()) <span class="keywordflow">continue</span>;</div>
+<div class="line"><a name="l02498"></a><span class="lineno"> 2498</span>     </div>
+<div class="line"><a name="l02499"></a><span class="lineno"> 2499</span>     <a class="code" href="classclang_1_1CharUnits.html">CharUnits</a> fieldOffset =</div>
+<div class="line"><a name="l02500"></a><span class="lineno"> 2500</span>        CharUnits::fromQuantity(layout->getElementOffset(capture.<a class="code" href="classclang_1_1CodeGen_1_1CGBlockInfo_1_1Capture.html#abf665ac516d28be3e80abc1e2fbb09d6">getIndex</a>()));</div>
+<div class="line"><a name="l02501"></a><span class="lineno"> 2501</span>     </div>
+<div class="line"><a name="l02502"></a><span class="lineno"> 2502</span>     assert(!type-><a class="code" href="classclang_1_1Type.html#a53b83bd119ae77bc77e92dc69a8c8094">isArrayType</a>() && <span class="stringliteral">"array variable should not be caught"</span>);</div>
+<div class="line"><a name="l02503"></a><span class="lineno"> 2503</span>     <span class="keywordflow">if</span> (!ci->isByRef())</div>
+<div class="line"><a name="l02504"></a><span class="lineno"> 2504</span>       <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1RecordType.html">RecordType</a> *record = type-><a class="code" href="classclang_1_1Type.html#a12103ea8bee9506930287bab68a08569">getAs</a><<a class="code" href="classclang_1_1RecordType.html">RecordType</a>>()) {</div>
+<div class="line"><a name="l02505"></a><span class="lineno"> 2505</span>         BuildRCBlockVarRecordLayout(record, fieldOffset, hasUnion);</div>
+<div class="line"><a name="l02506"></a><span class="lineno"> 2506</span>         <span class="keywordflow">continue</span>;</div>
+<div class="line"><a name="l02507"></a><span class="lineno"> 2507</span>       }</div>
+<div class="line"><a name="l02508"></a><span class="lineno"> 2508</span>     <a class="code" href="classclang_1_1CharUnits.html">CharUnits</a> fieldSize;</div>
+<div class="line"><a name="l02509"></a><span class="lineno"> 2509</span>     <span class="keywordflow">if</span> (ci->isByRef())</div>
+<div class="line"><a name="l02510"></a><span class="lineno"> 2510</span>       fieldSize = CharUnits::fromQuantity(WordSizeInBytes);</div>
+<div class="line"><a name="l02511"></a><span class="lineno"> 2511</span>     <span class="keywordflow">else</span></div>
+<div class="line"><a name="l02512"></a><span class="lineno"> 2512</span>       fieldSize = CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>().<a class="code" href="classclang_1_1ASTContext.html#ae8d8371f22bd850bced9b4b9ca848c4e" title="Return the size of the specified (complete) type T, in characters.">getTypeSizeInChars</a>(type);</div>
+<div class="line"><a name="l02513"></a><span class="lineno"> 2513</span>     UpdateRunSkipBlockVars(ci->isByRef(), getBlockCaptureLifetime(type, <span class="keyword">false</span>),</div>
+<div class="line"><a name="l02514"></a><span class="lineno"> 2514</span>                            fieldOffset, fieldSize);</div>
+<div class="line"><a name="l02515"></a><span class="lineno"> 2515</span>   }</div>
+<div class="line"><a name="l02516"></a><span class="lineno"> 2516</span>   <span class="keywordflow">return</span> getBitmapBlockLayout(<span class="keyword">false</span>);</div>
+<div class="line"><a name="l02517"></a><span class="lineno"> 2517</span> }</div>
+<div class="line"><a name="l02518"></a><span class="lineno"> 2518</span> </div>
+<div class="line"><a name="l02519"></a><span class="lineno"> 2519</span> </div>
+<div class="line"><a name="l02520"></a><span class="lineno"> 2520</span> llvm::Constant *CGObjCCommonMac::BuildByrefLayout(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html">CodeGen::CodeGenModule</a> &CGM,</div>
+<div class="line"><a name="l02521"></a><span class="lineno"> 2521</span>                                                   <a class="code" href="classclang_1_1QualType.html">QualType</a> T) {</div>
+<div class="line"><a name="l02522"></a><span class="lineno"> 2522</span>   assert(CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#abae1594027ce284ce5b7f06c66d24ea7">getLangOpts</a>().getGC() == LangOptions::NonGC);</div>
+<div class="line"><a name="l02523"></a><span class="lineno"> 2523</span>   assert(!T-><a class="code" href="classclang_1_1Type.html#a53b83bd119ae77bc77e92dc69a8c8094">isArrayType</a>() && <span class="stringliteral">"__block array variable should not be caught"</span>);</div>
+<div class="line"><a name="l02524"></a><span class="lineno"> 2524</span>   <a class="code" href="classclang_1_1CharUnits.html">CharUnits</a> fieldOffset;</div>
+<div class="line"><a name="l02525"></a><span class="lineno"> 2525</span>   RunSkipBlockVars.clear();</div>
+<div class="line"><a name="l02526"></a><span class="lineno"> 2526</span>   <span class="keywordtype">bool</span> hasUnion = <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02527"></a><span class="lineno"> 2527</span>   <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1RecordType.html">RecordType</a> *record = T-><a class="code" href="classclang_1_1Type.html#a12103ea8bee9506930287bab68a08569">getAs</a><<a class="code" href="classclang_1_1RecordType.html">RecordType</a>>()) {</div>
+<div class="line"><a name="l02528"></a><span class="lineno"> 2528</span>     BuildRCBlockVarRecordLayout(record, fieldOffset, hasUnion, <span class="keyword">true</span> <span class="comment">/*ByrefLayout */</span>);</div>
+<div class="line"><a name="l02529"></a><span class="lineno"> 2529</span>     llvm::Constant *Result = getBitmapBlockLayout(<span class="keyword">true</span>);</div>
+<div class="line"><a name="l02530"></a><span class="lineno"> 2530</span>     <span class="keywordflow">return</span> Result;</div>
+<div class="line"><a name="l02531"></a><span class="lineno"> 2531</span>   }</div>
+<div class="line"><a name="l02532"></a><span class="lineno"> 2532</span>   llvm::Constant *nullPtr = llvm::Constant::getNullValue(CGM.<a class="code" href="structclang_1_1CodeGen_1_1CodeGenTypeCache.html#ac3ec7e3938996c5354dbee1a103ed4d2">Int8PtrTy</a>);</div>
+<div class="line"><a name="l02533"></a><span class="lineno"> 2533</span>   <span class="keywordflow">return</span> nullPtr;</div>
+<div class="line"><a name="l02534"></a><span class="lineno"> 2534</span> }</div>
+<div class="line"><a name="l02535"></a><span class="lineno"> 2535</span> </div>
+<div class="line"><a name="l02536"></a><span class="lineno"> 2536</span> <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *CGObjCMac::GenerateProtocolRef(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGenFunction</a> &CGF,</div>
+<div class="line"><a name="l02537"></a><span class="lineno"> 2537</span>                                             <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCProtocolDecl.html" title="Represents an Objective-C protocol declaration.">ObjCProtocolDecl</a> *PD) {</div>
+<div class="line"><a name="l02538"></a><span class="lineno"> 2538</span>   <span class="comment">// FIXME: I don't understand why gcc generates this, or where it is</span></div>
+<div class="line"><a name="l02539"></a><span class="lineno"> 2539</span>   <span class="comment">// resolved. Investigate. Its also wasteful to look this up over and over.</span></div>
+<div class="line"><a name="l02540"></a><span class="lineno"> 2540</span>   LazySymbols.insert(&CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>().<a class="code" href="classclang_1_1ASTContext.html#a4f95adb9958e22fbe55212ae6482feb4">Idents</a>.<a class="code" href="classclang_1_1IdentifierTable.html#aea14376d325400caa8a8183d14a02f39" title="Return the identifier token info for the specified named identifier.">get</a>(<span class="stringliteral">"Protocol"</span>));</div>
+<div class="line"><a name="l02541"></a><span class="lineno"> 2541</span> </div>
+<div class="line"><a name="l02542"></a><span class="lineno"> 2542</span>   <span class="keywordflow">return</span> llvm::ConstantExpr::getBitCast(GetProtocolRef(PD),</div>
+<div class="line"><a name="l02543"></a><span class="lineno"> 2543</span>                                         ObjCTypes.getExternalProtocolPtrTy());</div>
+<div class="line"><a name="l02544"></a><span class="lineno"> 2544</span> }</div>
+<div class="line"><a name="l02545"></a><span class="lineno"> 2545</span> </div>
+<div class="line"><a name="l02546"></a><span class="lineno"> 2546</span> <span class="keywordtype">void</span> CGObjCCommonMac::GenerateProtocol(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCProtocolDecl.html" title="Represents an Objective-C protocol declaration.">ObjCProtocolDecl</a> *PD) {</div>
+<div class="line"><a name="l02547"></a><span class="lineno"> 2547</span>   <span class="comment">// FIXME: We shouldn't need this, the protocol decl should contain enough</span></div>
+<div class="line"><a name="l02548"></a><span class="lineno"> 2548</span>   <span class="comment">// information to tell us whether this was a declaration or a definition.</span></div>
+<div class="line"><a name="l02549"></a><span class="lineno"> 2549</span>   DefinedProtocols.insert(PD-><a class="code" href="classclang_1_1NamedDecl.html#a554752f8f43eea0e6288da7205167fe2">getIdentifier</a>());</div>
+<div class="line"><a name="l02550"></a><span class="lineno"> 2550</span> </div>
+<div class="line"><a name="l02551"></a><span class="lineno"> 2551</span>   <span class="comment">// If we have generated a forward reference to this protocol, emit</span></div>
+<div class="line"><a name="l02552"></a><span class="lineno"> 2552</span>   <span class="comment">// it now. Otherwise do nothing, the protocol objects are lazily</span></div>
+<div class="line"><a name="l02553"></a><span class="lineno"> 2553</span>   <span class="comment">// emitted.</span></div>
+<div class="line"><a name="l02554"></a><span class="lineno"> 2554</span>   <span class="keywordflow">if</span> (Protocols.count(PD-><a class="code" href="classclang_1_1NamedDecl.html#a554752f8f43eea0e6288da7205167fe2">getIdentifier</a>()))</div>
+<div class="line"><a name="l02555"></a><span class="lineno"> 2555</span>     GetOrEmitProtocol(PD);</div>
+<div class="line"><a name="l02556"></a><span class="lineno"> 2556</span> }</div>
+<div class="line"><a name="l02557"></a><span class="lineno"> 2557</span> </div>
+<div class="line"><a name="l02558"></a><span class="lineno"> 2558</span> llvm::Constant *CGObjCCommonMac::GetProtocolRef(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCProtocolDecl.html" title="Represents an Objective-C protocol declaration.">ObjCProtocolDecl</a> *PD) {</div>
+<div class="line"><a name="l02559"></a><span class="lineno"> 2559</span>   <span class="keywordflow">if</span> (DefinedProtocols.count(PD-><a class="code" href="classclang_1_1NamedDecl.html#a554752f8f43eea0e6288da7205167fe2">getIdentifier</a>()))</div>
+<div class="line"><a name="l02560"></a><span class="lineno"> 2560</span>     <span class="keywordflow">return</span> GetOrEmitProtocol(PD);</div>
+<div class="line"><a name="l02561"></a><span class="lineno"> 2561</span>   </div>
+<div class="line"><a name="l02562"></a><span class="lineno"> 2562</span>   <span class="keywordflow">return</span> GetOrEmitProtocolRef(PD);</div>
+<div class="line"><a name="l02563"></a><span class="lineno"> 2563</span> }</div>
+<div class="line"><a name="l02564"></a><span class="lineno"> 2564</span> </div>
+<div class="line"><a name="l02565"></a><span class="lineno"> 2565</span> <span class="comment">/*</span></div>
+<div class="line"><a name="l02566"></a><span class="lineno"> 2566</span> <span class="comment">// APPLE LOCAL radar 4585769 - Objective-C 1.0 extensions</span></div>
+<div class="line"><a name="l02567"></a><span class="lineno"> 2567</span> <span class="comment">struct _objc_protocol {</span></div>
+<div class="line"><a name="l02568"></a><span class="lineno"> 2568</span> <span class="comment">struct _objc_protocol_extension *isa;</span></div>
+<div class="line"><a name="l02569"></a><span class="lineno"> 2569</span> <span class="comment">char *protocol_name;</span></div>
+<div class="line"><a name="l02570"></a><span class="lineno"> 2570</span> <span class="comment">struct _objc_protocol_list *protocol_list;</span></div>
+<div class="line"><a name="l02571"></a><span class="lineno"> 2571</span> <span class="comment">struct _objc__method_prototype_list *instance_methods;</span></div>
+<div class="line"><a name="l02572"></a><span class="lineno"> 2572</span> <span class="comment">struct _objc__method_prototype_list *class_methods</span></div>
+<div class="line"><a name="l02573"></a><span class="lineno"> 2573</span> <span class="comment">};</span></div>
+<div class="line"><a name="l02574"></a><span class="lineno"> 2574</span> <span class="comment"></span></div>
+<div class="line"><a name="l02575"></a><span class="lineno"> 2575</span> <span class="comment">See EmitProtocolExtension().</span></div>
+<div class="line"><a name="l02576"></a><span class="lineno"> 2576</span> <span class="comment">*/</span></div>
+<div class="line"><a name="l02577"></a><span class="lineno"> 2577</span> llvm::Constant *CGObjCMac::GetOrEmitProtocol(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCProtocolDecl.html" title="Represents an Objective-C protocol declaration.">ObjCProtocolDecl</a> *PD) {</div>
+<div class="line"><a name="l02578"></a><span class="lineno"> 2578</span>   llvm::GlobalVariable *Entry = Protocols[PD-><a class="code" href="classclang_1_1NamedDecl.html#a554752f8f43eea0e6288da7205167fe2">getIdentifier</a>()];</div>
+<div class="line"><a name="l02579"></a><span class="lineno"> 2579</span> </div>
+<div class="line"><a name="l02580"></a><span class="lineno"> 2580</span>   <span class="comment">// Early exit if a defining object has already been generated.</span></div>
+<div class="line"><a name="l02581"></a><span class="lineno"> 2581</span>   <span class="keywordflow">if</span> (Entry && Entry->hasInitializer())</div>
+<div class="line"><a name="l02582"></a><span class="lineno"> 2582</span>     <span class="keywordflow">return</span> Entry;</div>
+<div class="line"><a name="l02583"></a><span class="lineno"> 2583</span> </div>
+<div class="line"><a name="l02584"></a><span class="lineno"> 2584</span>   <span class="comment">// Use the protocol definition, if there is one.</span></div>
+<div class="line"><a name="l02585"></a><span class="lineno"> 2585</span>   <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCProtocolDecl.html" title="Represents an Objective-C protocol declaration.">ObjCProtocolDecl</a> *Def = PD-><a class="code" href="classclang_1_1ObjCProtocolDecl.html#acaa3df11f4600181c0910838bea02172" title="Retrieve the definition of this protocol, if any.">getDefinition</a>())</div>
+<div class="line"><a name="l02586"></a><span class="lineno"> 2586</span>     PD = Def;</div>
+<div class="line"><a name="l02587"></a><span class="lineno"> 2587</span> </div>
+<div class="line"><a name="l02588"></a><span class="lineno"> 2588</span>   <span class="comment">// FIXME: I don't understand why gcc generates this, or where it is</span></div>
+<div class="line"><a name="l02589"></a><span class="lineno"> 2589</span>   <span class="comment">// resolved. Investigate. Its also wasteful to look this up over and over.</span></div>
+<div class="line"><a name="l02590"></a><span class="lineno"> 2590</span>   LazySymbols.insert(&CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>().<a class="code" href="classclang_1_1ASTContext.html#a4f95adb9958e22fbe55212ae6482feb4">Idents</a>.<a class="code" href="classclang_1_1IdentifierTable.html#aea14376d325400caa8a8183d14a02f39" title="Return the identifier token info for the specified named identifier.">get</a>(<span class="stringliteral">"Protocol"</span>));</div>
+<div class="line"><a name="l02591"></a><span class="lineno"> 2591</span> </div>
+<div class="line"><a name="l02592"></a><span class="lineno"> 2592</span>   <span class="comment">// Construct method lists.</span></div>
+<div class="line"><a name="l02593"></a><span class="lineno"> 2593</span>   std::vector<llvm::Constant*> InstanceMethods, ClassMethods;</div>
+<div class="line"><a name="l02594"></a><span class="lineno"> 2594</span>   std::vector<llvm::Constant*> OptInstanceMethods, OptClassMethods;</div>
+<div class="line"><a name="l02595"></a><span class="lineno"> 2595</span>   std::vector<llvm::Constant*> MethodTypesExt, OptMethodTypesExt;</div>
+<div class="line"><a name="l02596"></a><span class="lineno"> 2596</span>   <span class="keywordflow">for</span> (ObjCProtocolDecl::instmeth_iterator</div>
+<div class="line"><a name="l02597"></a><span class="lineno"> 2597</span>          i = PD-><a class="code" href="classclang_1_1ObjCContainerDecl.html#adb21f3e7fa3b060c5b31b92ae97f957e">instmeth_begin</a>(), e = PD-><a class="code" href="classclang_1_1ObjCContainerDecl.html#ab363adb39c69750940adf83386f4b923">instmeth_end</a>(); i != e; ++i) {</div>
+<div class="line"><a name="l02598"></a><span class="lineno"> 2598</span>     <a class="code" href="classclang_1_1ObjCMethodDecl.html">ObjCMethodDecl</a> *MD = *i;</div>
+<div class="line"><a name="l02599"></a><span class="lineno"> 2599</span>     llvm::Constant *C = GetMethodDescriptionConstant(MD);</div>
+<div class="line"><a name="l02600"></a><span class="lineno"> 2600</span>     <span class="keywordflow">if</span> (!C)</div>
+<div class="line"><a name="l02601"></a><span class="lineno"> 2601</span>       <span class="keywordflow">return</span> GetOrEmitProtocolRef(PD);</div>
+<div class="line"><a name="l02602"></a><span class="lineno"> 2602</span>     </div>
+<div class="line"><a name="l02603"></a><span class="lineno"> 2603</span>     <span class="keywordflow">if</span> (MD-><a class="code" href="classclang_1_1ObjCMethodDecl.html#a3d490a2f2f823221b9184dcdaad43f8c">getImplementationControl</a>() == ObjCMethodDecl::Optional) {</div>
+<div class="line"><a name="l02604"></a><span class="lineno"> 2604</span>       OptInstanceMethods.push_back(C);</div>
+<div class="line"><a name="l02605"></a><span class="lineno"> 2605</span>       OptMethodTypesExt.push_back(GetMethodVarType(MD, <span class="keyword">true</span>));</div>
+<div class="line"><a name="l02606"></a><span class="lineno"> 2606</span>     } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l02607"></a><span class="lineno"> 2607</span>       InstanceMethods.push_back(C);</div>
+<div class="line"><a name="l02608"></a><span class="lineno"> 2608</span>       MethodTypesExt.push_back(GetMethodVarType(MD, <span class="keyword">true</span>));</div>
+<div class="line"><a name="l02609"></a><span class="lineno"> 2609</span>     }</div>
+<div class="line"><a name="l02610"></a><span class="lineno"> 2610</span>   }</div>
+<div class="line"><a name="l02611"></a><span class="lineno"> 2611</span> </div>
+<div class="line"><a name="l02612"></a><span class="lineno"> 2612</span>   <span class="keywordflow">for</span> (ObjCProtocolDecl::classmeth_iterator</div>
+<div class="line"><a name="l02613"></a><span class="lineno"> 2613</span>          i = PD-><a class="code" href="classclang_1_1ObjCContainerDecl.html#a39e0d96e9930f71140afbf01a89004c2">classmeth_begin</a>(), e = PD-><a class="code" href="classclang_1_1ObjCContainerDecl.html#a004cd19356ad87461ed07eb1e3ecffd4">classmeth_end</a>(); i != e; ++i) {</div>
+<div class="line"><a name="l02614"></a><span class="lineno"> 2614</span>     <a class="code" href="classclang_1_1ObjCMethodDecl.html">ObjCMethodDecl</a> *MD = *i;</div>
+<div class="line"><a name="l02615"></a><span class="lineno"> 2615</span>     llvm::Constant *C = GetMethodDescriptionConstant(MD);</div>
+<div class="line"><a name="l02616"></a><span class="lineno"> 2616</span>     <span class="keywordflow">if</span> (!C)</div>
+<div class="line"><a name="l02617"></a><span class="lineno"> 2617</span>       <span class="keywordflow">return</span> GetOrEmitProtocolRef(PD);</div>
+<div class="line"><a name="l02618"></a><span class="lineno"> 2618</span> </div>
+<div class="line"><a name="l02619"></a><span class="lineno"> 2619</span>     <span class="keywordflow">if</span> (MD-><a class="code" href="classclang_1_1ObjCMethodDecl.html#a3d490a2f2f823221b9184dcdaad43f8c">getImplementationControl</a>() == ObjCMethodDecl::Optional) {</div>
+<div class="line"><a name="l02620"></a><span class="lineno"> 2620</span>       OptClassMethods.push_back(C);</div>
+<div class="line"><a name="l02621"></a><span class="lineno"> 2621</span>       OptMethodTypesExt.push_back(GetMethodVarType(MD, <span class="keyword">true</span>));</div>
+<div class="line"><a name="l02622"></a><span class="lineno"> 2622</span>     } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l02623"></a><span class="lineno"> 2623</span>       ClassMethods.push_back(C);</div>
+<div class="line"><a name="l02624"></a><span class="lineno"> 2624</span>       MethodTypesExt.push_back(GetMethodVarType(MD, <span class="keyword">true</span>));</div>
+<div class="line"><a name="l02625"></a><span class="lineno"> 2625</span>     }</div>
+<div class="line"><a name="l02626"></a><span class="lineno"> 2626</span>   }</div>
+<div class="line"><a name="l02627"></a><span class="lineno"> 2627</span> </div>
+<div class="line"><a name="l02628"></a><span class="lineno"> 2628</span>   MethodTypesExt.insert(MethodTypesExt.end(),</div>
+<div class="line"><a name="l02629"></a><span class="lineno"> 2629</span>                         OptMethodTypesExt.begin(), OptMethodTypesExt.end());</div>
+<div class="line"><a name="l02630"></a><span class="lineno"> 2630</span> </div>
+<div class="line"><a name="l02631"></a><span class="lineno"> 2631</span>   llvm::Constant *Values[] = {</div>
+<div class="line"><a name="l02632"></a><span class="lineno"> 2632</span>     EmitProtocolExtension(PD, OptInstanceMethods, OptClassMethods, </div>
+<div class="line"><a name="l02633"></a><span class="lineno"> 2633</span>                           MethodTypesExt),</div>
+<div class="line"><a name="l02634"></a><span class="lineno"> 2634</span>     GetClassName(PD-><a class="code" href="classclang_1_1NamedDecl.html#a554752f8f43eea0e6288da7205167fe2">getIdentifier</a>()),</div>
+<div class="line"><a name="l02635"></a><span class="lineno"> 2635</span>     EmitProtocolList(<span class="stringliteral">"\01L_OBJC_PROTOCOL_REFS_"</span> + PD-><a class="code" href="classclang_1_1NamedDecl.html#aaf790590f634520a99e0b45699fc45c3">getName</a>(),</div>
+<div class="line"><a name="l02636"></a><span class="lineno"> 2636</span>                      PD-><a class="code" href="classclang_1_1ObjCProtocolDecl.html#a199069b3da6c86cd72a6b8fe9f8feec0">protocol_begin</a>(),</div>
+<div class="line"><a name="l02637"></a><span class="lineno"> 2637</span>                      PD-><a class="code" href="classclang_1_1ObjCProtocolDecl.html#a681da3dbfa474479f44d59eee31d0e1e">protocol_end</a>()),</div>
+<div class="line"><a name="l02638"></a><span class="lineno"> 2638</span>     EmitMethodDescList(<span class="stringliteral">"\01L_OBJC_PROTOCOL_INSTANCE_METHODS_"</span> + PD-><a class="code" href="classclang_1_1NamedDecl.html#aaf790590f634520a99e0b45699fc45c3">getName</a>(),</div>
+<div class="line"><a name="l02639"></a><span class="lineno"> 2639</span>                        <span class="stringliteral">"__OBJC,__cat_inst_meth,regular,no_dead_strip"</span>,</div>
+<div class="line"><a name="l02640"></a><span class="lineno"> 2640</span>                        InstanceMethods),</div>
+<div class="line"><a name="l02641"></a><span class="lineno"> 2641</span>     EmitMethodDescList(<span class="stringliteral">"\01L_OBJC_PROTOCOL_CLASS_METHODS_"</span> + PD-><a class="code" href="classclang_1_1NamedDecl.html#aaf790590f634520a99e0b45699fc45c3">getName</a>(),</div>
+<div class="line"><a name="l02642"></a><span class="lineno"> 2642</span>                        <span class="stringliteral">"__OBJC,__cat_cls_meth,regular,no_dead_strip"</span>,</div>
+<div class="line"><a name="l02643"></a><span class="lineno"> 2643</span>                        ClassMethods)</div>
+<div class="line"><a name="l02644"></a><span class="lineno"> 2644</span>   };</div>
+<div class="line"><a name="l02645"></a><span class="lineno"> 2645</span>   llvm::Constant *Init = llvm::ConstantStruct::get(ObjCTypes.ProtocolTy,</div>
+<div class="line"><a name="l02646"></a><span class="lineno"> 2646</span>                                                    Values);</div>
+<div class="line"><a name="l02647"></a><span class="lineno"> 2647</span> </div>
+<div class="line"><a name="l02648"></a><span class="lineno"> 2648</span>   <span class="keywordflow">if</span> (Entry) {</div>
+<div class="line"><a name="l02649"></a><span class="lineno"> 2649</span>     <span class="comment">// Already created, fix the linkage and update the initializer.</span></div>
+<div class="line"><a name="l02650"></a><span class="lineno"> 2650</span>     Entry->setLinkage(<a class="code" href="namespaceclang.html#a78aadfeaf316ded55fdd2d1a9c8815b6a140eea3dcce11b617f72600f6644f4a3" title="Internal linkage, which indicates that the entity can be referred to from within the translation unit...">llvm::GlobalValue::InternalLinkage</a>);</div>
+<div class="line"><a name="l02651"></a><span class="lineno"> 2651</span>     Entry->setInitializer(Init);</div>
+<div class="line"><a name="l02652"></a><span class="lineno"> 2652</span>   } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l02653"></a><span class="lineno"> 2653</span>     Entry =</div>
+<div class="line"><a name="l02654"></a><span class="lineno"> 2654</span>       <span class="keyword">new</span> llvm::GlobalVariable(CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a908409c9231b015784ca008fd6bcb961">getModule</a>(), ObjCTypes.ProtocolTy, <span class="keyword">false</span>,</div>
+<div class="line"><a name="l02655"></a><span class="lineno"> 2655</span>                                <a class="code" href="namespaceclang.html#a78aadfeaf316ded55fdd2d1a9c8815b6a140eea3dcce11b617f72600f6644f4a3" title="Internal linkage, which indicates that the entity can be referred to from within the translation unit...">llvm::GlobalValue::InternalLinkage</a>,</div>
+<div class="line"><a name="l02656"></a><span class="lineno"> 2656</span>                                Init,</div>
+<div class="line"><a name="l02657"></a><span class="lineno"> 2657</span>                                <span class="stringliteral">"\01L_OBJC_PROTOCOL_"</span> + PD-><a class="code" href="classclang_1_1NamedDecl.html#aaf790590f634520a99e0b45699fc45c3">getName</a>());</div>
+<div class="line"><a name="l02658"></a><span class="lineno"> 2658</span>     Entry->setSection(<span class="stringliteral">"__OBJC,__protocol,regular,no_dead_strip"</span>);</div>
+<div class="line"><a name="l02659"></a><span class="lineno"> 2659</span>     <span class="comment">// FIXME: Is this necessary? Why only for protocol?</span></div>
+<div class="line"><a name="l02660"></a><span class="lineno"> 2660</span>     Entry->setAlignment(4);</div>
+<div class="line"><a name="l02661"></a><span class="lineno"> 2661</span> </div>
+<div class="line"><a name="l02662"></a><span class="lineno"> 2662</span>     Protocols[PD-><a class="code" href="classclang_1_1NamedDecl.html#a554752f8f43eea0e6288da7205167fe2">getIdentifier</a>()] = Entry;</div>
+<div class="line"><a name="l02663"></a><span class="lineno"> 2663</span>   }</div>
+<div class="line"><a name="l02664"></a><span class="lineno"> 2664</span>   CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ab4b3684fe8ae4e70f3205a40d9a2bdb2">AddUsedGlobal</a>(Entry);</div>
+<div class="line"><a name="l02665"></a><span class="lineno"> 2665</span> </div>
+<div class="line"><a name="l02666"></a><span class="lineno"> 2666</span>   <span class="keywordflow">return</span> Entry;</div>
+<div class="line"><a name="l02667"></a><span class="lineno"> 2667</span> }</div>
+<div class="line"><a name="l02668"></a><span class="lineno"> 2668</span> </div>
+<div class="line"><a name="l02669"></a><span class="lineno"> 2669</span> llvm::Constant *CGObjCMac::GetOrEmitProtocolRef(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCProtocolDecl.html" title="Represents an Objective-C protocol declaration.">ObjCProtocolDecl</a> *PD) {</div>
+<div class="line"><a name="l02670"></a><span class="lineno"> 2670</span>   llvm::GlobalVariable *&Entry = Protocols[PD-><a class="code" href="classclang_1_1NamedDecl.html#a554752f8f43eea0e6288da7205167fe2">getIdentifier</a>()];</div>
+<div class="line"><a name="l02671"></a><span class="lineno"> 2671</span> </div>
+<div class="line"><a name="l02672"></a><span class="lineno"> 2672</span>   <span class="keywordflow">if</span> (!Entry) {</div>
+<div class="line"><a name="l02673"></a><span class="lineno"> 2673</span>     <span class="comment">// We use the initializer as a marker of whether this is a forward</span></div>
+<div class="line"><a name="l02674"></a><span class="lineno"> 2674</span>     <span class="comment">// reference or not. At module finalization we add the empty</span></div>
+<div class="line"><a name="l02675"></a><span class="lineno"> 2675</span>     <span class="comment">// contents for protocols which were referenced but never defined.</span></div>
+<div class="line"><a name="l02676"></a><span class="lineno"> 2676</span>     Entry =</div>
+<div class="line"><a name="l02677"></a><span class="lineno"> 2677</span>       <span class="keyword">new</span> llvm::GlobalVariable(CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a908409c9231b015784ca008fd6bcb961">getModule</a>(), ObjCTypes.ProtocolTy, <span class="keyword">false</span>,</div>
+<div class="line"><a name="l02678"></a><span class="lineno"> 2678</span>                                <a class="code" href="namespaceclang.html#a78aadfeaf316ded55fdd2d1a9c8815b6abf301cfab14d2b8fac6176f45e6bb54a" title="External linkage, which indicates that the entity can be referred to from other translation units...">llvm::GlobalValue::ExternalLinkage</a>,</div>
+<div class="line"><a name="l02679"></a><span class="lineno"> 2679</span>                                0,</div>
+<div class="line"><a name="l02680"></a><span class="lineno"> 2680</span>                                <span class="stringliteral">"\01L_OBJC_PROTOCOL_"</span> + PD-><a class="code" href="classclang_1_1NamedDecl.html#aaf790590f634520a99e0b45699fc45c3">getName</a>());</div>
+<div class="line"><a name="l02681"></a><span class="lineno"> 2681</span>     Entry->setSection(<span class="stringliteral">"__OBJC,__protocol,regular,no_dead_strip"</span>);</div>
+<div class="line"><a name="l02682"></a><span class="lineno"> 2682</span>     <span class="comment">// FIXME: Is this necessary? Why only for protocol?</span></div>
+<div class="line"><a name="l02683"></a><span class="lineno"> 2683</span>     Entry->setAlignment(4);</div>
+<div class="line"><a name="l02684"></a><span class="lineno"> 2684</span>   }</div>
+<div class="line"><a name="l02685"></a><span class="lineno"> 2685</span> </div>
+<div class="line"><a name="l02686"></a><span class="lineno"> 2686</span>   <span class="keywordflow">return</span> Entry;</div>
+<div class="line"><a name="l02687"></a><span class="lineno"> 2687</span> }</div>
+<div class="line"><a name="l02688"></a><span class="lineno"> 2688</span> </div>
+<div class="line"><a name="l02689"></a><span class="lineno"> 2689</span> <span class="comment">/*</span></div>
+<div class="line"><a name="l02690"></a><span class="lineno"> 2690</span> <span class="comment">  struct _objc_protocol_extension {</span></div>
+<div class="line"><a name="l02691"></a><span class="lineno"> 2691</span> <span class="comment">  uint32_t size;</span></div>
+<div class="line"><a name="l02692"></a><span class="lineno"> 2692</span> <span class="comment">  struct objc_method_description_list *optional_instance_methods;</span></div>
+<div class="line"><a name="l02693"></a><span class="lineno"> 2693</span> <span class="comment">  struct objc_method_description_list *optional_class_methods;</span></div>
+<div class="line"><a name="l02694"></a><span class="lineno"> 2694</span> <span class="comment">  struct objc_property_list *instance_properties;</span></div>
+<div class="line"><a name="l02695"></a><span class="lineno"> 2695</span> <span class="comment">  const char ** extendedMethodTypes;</span></div>
+<div class="line"><a name="l02696"></a><span class="lineno"> 2696</span> <span class="comment">  };</span></div>
+<div class="line"><a name="l02697"></a><span class="lineno"> 2697</span> <span class="comment">*/</span></div>
+<div class="line"><a name="l02698"></a><span class="lineno"> 2698</span> llvm::Constant *</div>
+<div class="line"><a name="l02699"></a><span class="lineno"> 2699</span> CGObjCMac::EmitProtocolExtension(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCProtocolDecl.html" title="Represents an Objective-C protocol declaration.">ObjCProtocolDecl</a> *PD,</div>
+<div class="line"><a name="l02700"></a><span class="lineno"> 2700</span>                                  <a class="code" href="classllvm_1_1ArrayRef.html">ArrayRef<llvm::Constant*></a> OptInstanceMethods,</div>
+<div class="line"><a name="l02701"></a><span class="lineno"> 2701</span>                                  <a class="code" href="classllvm_1_1ArrayRef.html">ArrayRef<llvm::Constant*></a> OptClassMethods,</div>
+<div class="line"><a name="l02702"></a><span class="lineno"> 2702</span>                                  <a class="code" href="classllvm_1_1ArrayRef.html">ArrayRef<llvm::Constant*></a> MethodTypesExt) {</div>
+<div class="line"><a name="l02703"></a><span class="lineno"> 2703</span>   uint64_t Size =</div>
+<div class="line"><a name="l02704"></a><span class="lineno"> 2704</span>     CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a7a01d2bf67fc7c685a8648809c0913a7">getDataLayout</a>().getTypeAllocSize(ObjCTypes.ProtocolExtensionTy);</div>
+<div class="line"><a name="l02705"></a><span class="lineno"> 2705</span>   llvm::Constant *Values[] = {</div>
+<div class="line"><a name="l02706"></a><span class="lineno"> 2706</span>     llvm::ConstantInt::get(ObjCTypes.IntTy, Size),</div>
+<div class="line"><a name="l02707"></a><span class="lineno"> 2707</span>     EmitMethodDescList(<span class="stringliteral">"\01L_OBJC_PROTOCOL_INSTANCE_METHODS_OPT_"</span></div>
+<div class="line"><a name="l02708"></a><span class="lineno"> 2708</span>                        + PD-><a class="code" href="classclang_1_1NamedDecl.html#aaf790590f634520a99e0b45699fc45c3">getName</a>(),</div>
+<div class="line"><a name="l02709"></a><span class="lineno"> 2709</span>                        <span class="stringliteral">"__OBJC,__cat_inst_meth,regular,no_dead_strip"</span>,</div>
+<div class="line"><a name="l02710"></a><span class="lineno"> 2710</span>                        OptInstanceMethods),</div>
+<div class="line"><a name="l02711"></a><span class="lineno"> 2711</span>     EmitMethodDescList(<span class="stringliteral">"\01L_OBJC_PROTOCOL_CLASS_METHODS_OPT_"</span> + PD-><a class="code" href="classclang_1_1NamedDecl.html#aaf790590f634520a99e0b45699fc45c3">getName</a>(),</div>
+<div class="line"><a name="l02712"></a><span class="lineno"> 2712</span>                        <span class="stringliteral">"__OBJC,__cat_cls_meth,regular,no_dead_strip"</span>,</div>
+<div class="line"><a name="l02713"></a><span class="lineno"> 2713</span>                        OptClassMethods),</div>
+<div class="line"><a name="l02714"></a><span class="lineno"> 2714</span>     EmitPropertyList(<span class="stringliteral">"\01L_OBJC_$_PROP_PROTO_LIST_"</span> + PD-><a class="code" href="classclang_1_1NamedDecl.html#aaf790590f634520a99e0b45699fc45c3">getName</a>(), 0, PD,</div>
+<div class="line"><a name="l02715"></a><span class="lineno"> 2715</span>                      ObjCTypes),</div>
+<div class="line"><a name="l02716"></a><span class="lineno"> 2716</span>     EmitProtocolMethodTypes(<span class="stringliteral">"\01L_OBJC_PROTOCOL_METHOD_TYPES_"</span> + PD-><a class="code" href="classclang_1_1NamedDecl.html#aaf790590f634520a99e0b45699fc45c3">getName</a>(),</div>
+<div class="line"><a name="l02717"></a><span class="lineno"> 2717</span>                             MethodTypesExt, ObjCTypes)</div>
+<div class="line"><a name="l02718"></a><span class="lineno"> 2718</span>   };</div>
+<div class="line"><a name="l02719"></a><span class="lineno"> 2719</span> </div>
+<div class="line"><a name="l02720"></a><span class="lineno"> 2720</span>   <span class="comment">// Return null if no extension bits are used.</span></div>
+<div class="line"><a name="l02721"></a><span class="lineno"> 2721</span>   <span class="keywordflow">if</span> (Values[1]->isNullValue() && Values[2]->isNullValue() &&</div>
+<div class="line"><a name="l02722"></a><span class="lineno"> 2722</span>       Values[3]->isNullValue() && Values[4]->isNullValue())</div>
+<div class="line"><a name="l02723"></a><span class="lineno"> 2723</span>     <span class="keywordflow">return</span> llvm::Constant::getNullValue(ObjCTypes.ProtocolExtensionPtrTy);</div>
+<div class="line"><a name="l02724"></a><span class="lineno"> 2724</span> </div>
+<div class="line"><a name="l02725"></a><span class="lineno"> 2725</span>   llvm::Constant *Init =</div>
+<div class="line"><a name="l02726"></a><span class="lineno"> 2726</span>     llvm::ConstantStruct::get(ObjCTypes.ProtocolExtensionTy, Values);</div>
+<div class="line"><a name="l02727"></a><span class="lineno"> 2727</span> </div>
+<div class="line"><a name="l02728"></a><span class="lineno"> 2728</span>   <span class="comment">// No special section, but goes in llvm.used</span></div>
+<div class="line"><a name="l02729"></a><span class="lineno"> 2729</span>   <span class="keywordflow">return</span> CreateMetadataVar(<span class="stringliteral">"\01L_OBJC_PROTOCOLEXT_"</span> + PD-><a class="code" href="classclang_1_1NamedDecl.html#aaf790590f634520a99e0b45699fc45c3">getName</a>(),</div>
+<div class="line"><a name="l02730"></a><span class="lineno"> 2730</span>                            Init,</div>
+<div class="line"><a name="l02731"></a><span class="lineno"> 2731</span>                            0, 0, <span class="keyword">true</span>);</div>
+<div class="line"><a name="l02732"></a><span class="lineno"> 2732</span> }</div>
+<div class="line"><a name="l02733"></a><span class="lineno"> 2733</span> </div>
+<div class="line"><a name="l02734"></a><span class="lineno"> 2734</span> <span class="comment">/*</span></div>
+<div class="line"><a name="l02735"></a><span class="lineno"> 2735</span> <span class="comment">  struct objc_protocol_list {</span></div>
+<div class="line"><a name="l02736"></a><span class="lineno"> 2736</span> <span class="comment">    struct objc_protocol_list *next;</span></div>
+<div class="line"><a name="l02737"></a><span class="lineno"> 2737</span> <span class="comment">    long count;</span></div>
+<div class="line"><a name="l02738"></a><span class="lineno"> 2738</span> <span class="comment">    Protocol *list[];</span></div>
+<div class="line"><a name="l02739"></a><span class="lineno"> 2739</span> <span class="comment">  };</span></div>
+<div class="line"><a name="l02740"></a><span class="lineno"> 2740</span> <span class="comment">*/</span></div>
+<div class="line"><a name="l02741"></a><span class="lineno"> 2741</span> llvm::Constant *</div>
+<div class="line"><a name="l02742"></a><span class="lineno"> 2742</span> CGObjCMac::EmitProtocolList(Twine Name,</div>
+<div class="line"><a name="l02743"></a><span class="lineno"> 2743</span>                             <a class="code" href="classclang_1_1ObjCProtocolDecl.html#adbd4b44a478f573a24072123f93b2fe9">ObjCProtocolDecl::protocol_iterator</a> begin,</div>
+<div class="line"><a name="l02744"></a><span class="lineno"> 2744</span>                             <a class="code" href="classclang_1_1ObjCProtocolDecl.html#adbd4b44a478f573a24072123f93b2fe9">ObjCProtocolDecl::protocol_iterator</a> end) {</div>
+<div class="line"><a name="l02745"></a><span class="lineno"> 2745</span>   <a class="code" href="classllvm_1_1SmallVector.html">SmallVector<llvm::Constant *, 16></a> ProtocolRefs;</div>
+<div class="line"><a name="l02746"></a><span class="lineno"> 2746</span> </div>
+<div class="line"><a name="l02747"></a><span class="lineno"> 2747</span>   <span class="keywordflow">for</span> (; begin != end; ++begin)</div>
+<div class="line"><a name="l02748"></a><span class="lineno"> 2748</span>     ProtocolRefs.push_back(GetProtocolRef(*begin));</div>
+<div class="line"><a name="l02749"></a><span class="lineno"> 2749</span> </div>
+<div class="line"><a name="l02750"></a><span class="lineno"> 2750</span>   <span class="comment">// Just return null for empty protocol lists</span></div>
+<div class="line"><a name="l02751"></a><span class="lineno"> 2751</span>   <span class="keywordflow">if</span> (ProtocolRefs.empty())</div>
+<div class="line"><a name="l02752"></a><span class="lineno"> 2752</span>     <span class="keywordflow">return</span> llvm::Constant::getNullValue(ObjCTypes.ProtocolListPtrTy);</div>
+<div class="line"><a name="l02753"></a><span class="lineno"> 2753</span> </div>
+<div class="line"><a name="l02754"></a><span class="lineno"> 2754</span>   <span class="comment">// This list is null terminated.</span></div>
+<div class="line"><a name="l02755"></a><span class="lineno"> 2755</span>   ProtocolRefs.push_back(llvm::Constant::getNullValue(ObjCTypes.ProtocolPtrTy));</div>
+<div class="line"><a name="l02756"></a><span class="lineno"> 2756</span> </div>
+<div class="line"><a name="l02757"></a><span class="lineno"> 2757</span>   llvm::Constant *Values[3];</div>
+<div class="line"><a name="l02758"></a><span class="lineno"> 2758</span>   <span class="comment">// This field is only used by the runtime.</span></div>
+<div class="line"><a name="l02759"></a><span class="lineno"> 2759</span>   Values[0] = llvm::Constant::getNullValue(ObjCTypes.ProtocolListPtrTy);</div>
+<div class="line"><a name="l02760"></a><span class="lineno"> 2760</span>   Values[1] = llvm::ConstantInt::get(ObjCTypes.LongTy,</div>
+<div class="line"><a name="l02761"></a><span class="lineno"> 2761</span>                                      ProtocolRefs.size() - 1);</div>
+<div class="line"><a name="l02762"></a><span class="lineno"> 2762</span>   Values[2] =</div>
+<div class="line"><a name="l02763"></a><span class="lineno"> 2763</span>     llvm::ConstantArray::get(llvm::ArrayType::get(ObjCTypes.ProtocolPtrTy,</div>
+<div class="line"><a name="l02764"></a><span class="lineno"> 2764</span>                                                   ProtocolRefs.size()),</div>
+<div class="line"><a name="l02765"></a><span class="lineno"> 2765</span>                              ProtocolRefs);</div>
+<div class="line"><a name="l02766"></a><span class="lineno"> 2766</span> </div>
+<div class="line"><a name="l02767"></a><span class="lineno"> 2767</span>   llvm::Constant *Init = llvm::ConstantStruct::getAnon(Values);</div>
+<div class="line"><a name="l02768"></a><span class="lineno"> 2768</span>   llvm::GlobalVariable *GV =</div>
+<div class="line"><a name="l02769"></a><span class="lineno"> 2769</span>     CreateMetadataVar(Name, Init, <span class="stringliteral">"__OBJC,__cat_cls_meth,regular,no_dead_strip"</span>,</div>
+<div class="line"><a name="l02770"></a><span class="lineno"> 2770</span>                       4, <span class="keyword">false</span>);</div>
+<div class="line"><a name="l02771"></a><span class="lineno"> 2771</span>   <span class="keywordflow">return</span> llvm::ConstantExpr::getBitCast(GV, ObjCTypes.ProtocolListPtrTy);</div>
+<div class="line"><a name="l02772"></a><span class="lineno"> 2772</span> }</div>
+<div class="line"><a name="l02773"></a><span class="lineno"> 2773</span> </div>
+<div class="line"><a name="l02774"></a><span class="lineno"> 2774</span> <span class="keywordtype">void</span> CGObjCCommonMac::</div>
+<div class="line"><a name="l02775"></a><span class="lineno"> 2775</span> PushProtocolProperties(llvm::SmallPtrSet<const IdentifierInfo*,16> &PropertySet,</div>
+<div class="line"><a name="l02776"></a><span class="lineno"> 2776</span>                        <a class="code" href="classllvm_1_1SmallVectorImpl.html">SmallVectorImpl<llvm::Constant *></a> &Properties,</div>
+<div class="line"><a name="l02777"></a><span class="lineno"> 2777</span>                        <span class="keyword">const</span> <a class="code" href="classclang_1_1Decl.html">Decl</a> *Container,</div>
+<div class="line"><a name="l02778"></a><span class="lineno"> 2778</span>                        <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCProtocolDecl.html" title="Represents an Objective-C protocol declaration.">ObjCProtocolDecl</a> *PROTO,</div>
+<div class="line"><a name="l02779"></a><span class="lineno"> 2779</span>                        <span class="keyword">const</span> ObjCCommonTypesHelper &ObjCTypes) {</div>
+<div class="line"><a name="l02780"></a><span class="lineno"> 2780</span>   <span class="keywordflow">for</span> (<a class="code" href="classclang_1_1ObjCProtocolDecl.html#adbd4b44a478f573a24072123f93b2fe9">ObjCProtocolDecl::protocol_iterator</a> <a class="code" href="TokenAnnotator_8cpp.html#a0bf8bdaf8596b1161b6ce63c4232a1fb">P</a> = PROTO-><a class="code" href="classclang_1_1ObjCProtocolDecl.html#a199069b3da6c86cd72a6b8fe9f8feec0">protocol_begin</a>(),</div>
+<div class="line"><a name="l02781"></a><span class="lineno"> 2781</span>          E = PROTO-><a class="code" href="classclang_1_1ObjCProtocolDecl.html#a681da3dbfa474479f44d59eee31d0e1e">protocol_end</a>(); <a class="code" href="TokenAnnotator_8cpp.html#a0bf8bdaf8596b1161b6ce63c4232a1fb">P</a> != E; ++<a class="code" href="TokenAnnotator_8cpp.html#a0bf8bdaf8596b1161b6ce63c4232a1fb">P</a>) </div>
+<div class="line"><a name="l02782"></a><span class="lineno"> 2782</span>     PushProtocolProperties(PropertySet, Properties, Container, (*<a class="code" href="TokenAnnotator_8cpp.html#a0bf8bdaf8596b1161b6ce63c4232a1fb">P</a>), ObjCTypes);</div>
+<div class="line"><a name="l02783"></a><span class="lineno"> 2783</span>   <span class="keywordflow">for</span> (<a class="code" href="classclang_1_1DeclContext_1_1specific__decl__iterator.html">ObjCContainerDecl::prop_iterator</a> I = PROTO-><a class="code" href="classclang_1_1ObjCContainerDecl.html#a7d227b3190dce85fee03fea236beebe2">prop_begin</a>(),</div>
+<div class="line"><a name="l02784"></a><span class="lineno"> 2784</span>        E = PROTO-><a class="code" href="classclang_1_1ObjCContainerDecl.html#a38678ed182f7c9ec01f470c7a58f5f19">prop_end</a>(); I != E; ++I) {</div>
+<div class="line"><a name="l02785"></a><span class="lineno"> 2785</span>     <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCPropertyDecl.html" title="Represents one property declaration in an Objective-C interface.">ObjCPropertyDecl</a> *PD = *I;</div>
+<div class="line"><a name="l02786"></a><span class="lineno"> 2786</span>     <span class="keywordflow">if</span> (!PropertySet.insert(PD-><a class="code" href="classclang_1_1NamedDecl.html#a554752f8f43eea0e6288da7205167fe2">getIdentifier</a>()))</div>
+<div class="line"><a name="l02787"></a><span class="lineno"> 2787</span>       <span class="keywordflow">continue</span>;</div>
+<div class="line"><a name="l02788"></a><span class="lineno"> 2788</span>     llvm::Constant *Prop[] = {</div>
+<div class="line"><a name="l02789"></a><span class="lineno"> 2789</span>       GetPropertyName(PD-><a class="code" href="classclang_1_1NamedDecl.html#a554752f8f43eea0e6288da7205167fe2">getIdentifier</a>()),</div>
+<div class="line"><a name="l02790"></a><span class="lineno"> 2790</span>       GetPropertyTypeString(PD, Container)</div>
+<div class="line"><a name="l02791"></a><span class="lineno"> 2791</span>     };</div>
+<div class="line"><a name="l02792"></a><span class="lineno"> 2792</span>     Properties.push_back(llvm::ConstantStruct::get(ObjCTypes.PropertyTy, Prop));</div>
+<div class="line"><a name="l02793"></a><span class="lineno"> 2793</span>   }</div>
+<div class="line"><a name="l02794"></a><span class="lineno"> 2794</span> }</div>
+<div class="line"><a name="l02795"></a><span class="lineno"> 2795</span> </div>
+<div class="line"><a name="l02796"></a><span class="lineno"> 2796</span> <span class="comment">/*</span></div>
+<div class="line"><a name="l02797"></a><span class="lineno"> 2797</span> <span class="comment">  struct _objc_property {</span></div>
+<div class="line"><a name="l02798"></a><span class="lineno"> 2798</span> <span class="comment">    const char * const name;</span></div>
+<div class="line"><a name="l02799"></a><span class="lineno"> 2799</span> <span class="comment">    const char * const attributes;</span></div>
+<div class="line"><a name="l02800"></a><span class="lineno"> 2800</span> <span class="comment">  };</span></div>
+<div class="line"><a name="l02801"></a><span class="lineno"> 2801</span> <span class="comment"></span></div>
+<div class="line"><a name="l02802"></a><span class="lineno"> 2802</span> <span class="comment">  struct _objc_property_list {</span></div>
+<div class="line"><a name="l02803"></a><span class="lineno"> 2803</span> <span class="comment">    uint32_t entsize; // sizeof (struct _objc_property)</span></div>
+<div class="line"><a name="l02804"></a><span class="lineno"> 2804</span> <span class="comment">    uint32_t prop_count;</span></div>
+<div class="line"><a name="l02805"></a><span class="lineno"> 2805</span> <span class="comment">    struct _objc_property[prop_count];</span></div>
+<div class="line"><a name="l02806"></a><span class="lineno"> 2806</span> <span class="comment">  };</span></div>
+<div class="line"><a name="l02807"></a><span class="lineno"> 2807</span> <span class="comment">*/</span></div>
+<div class="line"><a name="l02808"></a><span class="lineno"> 2808</span> llvm::Constant *CGObjCCommonMac::EmitPropertyList(Twine Name,</div>
+<div class="line"><a name="l02809"></a><span class="lineno"> 2809</span>                                        <span class="keyword">const</span> <a class="code" href="classclang_1_1Decl.html">Decl</a> *Container,</div>
+<div class="line"><a name="l02810"></a><span class="lineno"> 2810</span>                                        <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCContainerDecl.html">ObjCContainerDecl</a> *OCD,</div>
+<div class="line"><a name="l02811"></a><span class="lineno"> 2811</span>                                        <span class="keyword">const</span> ObjCCommonTypesHelper &ObjCTypes) {</div>
+<div class="line"><a name="l02812"></a><span class="lineno"> 2812</span>   <a class="code" href="classllvm_1_1SmallVector.html">SmallVector<llvm::Constant *, 16></a> Properties;</div>
+<div class="line"><a name="l02813"></a><span class="lineno"> 2813</span>   llvm::SmallPtrSet<const IdentifierInfo*, 16> PropertySet;</div>
+<div class="line"><a name="l02814"></a><span class="lineno"> 2814</span>   <span class="keywordflow">for</span> (<a class="code" href="classclang_1_1DeclContext_1_1specific__decl__iterator.html">ObjCContainerDecl::prop_iterator</a> I = OCD-><a class="code" href="classclang_1_1ObjCContainerDecl.html#a7d227b3190dce85fee03fea236beebe2">prop_begin</a>(),</div>
+<div class="line"><a name="l02815"></a><span class="lineno"> 2815</span>          E = OCD-><a class="code" href="classclang_1_1ObjCContainerDecl.html#a38678ed182f7c9ec01f470c7a58f5f19">prop_end</a>(); I != E; ++I) {</div>
+<div class="line"><a name="l02816"></a><span class="lineno"> 2816</span>     <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCPropertyDecl.html" title="Represents one property declaration in an Objective-C interface.">ObjCPropertyDecl</a> *PD = *I;</div>
+<div class="line"><a name="l02817"></a><span class="lineno"> 2817</span>     PropertySet.insert(PD-><a class="code" href="classclang_1_1NamedDecl.html#a554752f8f43eea0e6288da7205167fe2">getIdentifier</a>());</div>
+<div class="line"><a name="l02818"></a><span class="lineno"> 2818</span>     llvm::Constant *Prop[] = {</div>
+<div class="line"><a name="l02819"></a><span class="lineno"> 2819</span>       GetPropertyName(PD-><a class="code" href="classclang_1_1NamedDecl.html#a554752f8f43eea0e6288da7205167fe2">getIdentifier</a>()),</div>
+<div class="line"><a name="l02820"></a><span class="lineno"> 2820</span>       GetPropertyTypeString(PD, Container)</div>
+<div class="line"><a name="l02821"></a><span class="lineno"> 2821</span>     };</div>
+<div class="line"><a name="l02822"></a><span class="lineno"> 2822</span>     Properties.push_back(llvm::ConstantStruct::get(ObjCTypes.PropertyTy,</div>
+<div class="line"><a name="l02823"></a><span class="lineno"> 2823</span>                                                    Prop));</div>
+<div class="line"><a name="l02824"></a><span class="lineno"> 2824</span>   }</div>
+<div class="line"><a name="l02825"></a><span class="lineno"> 2825</span>   <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCInterfaceDecl.html" title="Represents an ObjC class declaration.">ObjCInterfaceDecl</a> *OID = dyn_cast<ObjCInterfaceDecl>(OCD)) {</div>
+<div class="line"><a name="l02826"></a><span class="lineno"> 2826</span>     <span class="keywordflow">for</span> (<a class="code" href="classclang_1_1ObjCInterfaceDecl.html#a9da2d6646fb8c8dd1793f81688b6c0f0">ObjCInterfaceDecl::all_protocol_iterator</a></div>
+<div class="line"><a name="l02827"></a><span class="lineno"> 2827</span>          <a class="code" href="TokenAnnotator_8cpp.html#a0bf8bdaf8596b1161b6ce63c4232a1fb">P</a> = OID->all_referenced_protocol_begin(),</div>
+<div class="line"><a name="l02828"></a><span class="lineno"> 2828</span>          E = OID->all_referenced_protocol_end(); <a class="code" href="TokenAnnotator_8cpp.html#a0bf8bdaf8596b1161b6ce63c4232a1fb">P</a> != E; ++<a class="code" href="TokenAnnotator_8cpp.html#a0bf8bdaf8596b1161b6ce63c4232a1fb">P</a>)</div>
+<div class="line"><a name="l02829"></a><span class="lineno"> 2829</span>       PushProtocolProperties(PropertySet, Properties, Container, (*<a class="code" href="TokenAnnotator_8cpp.html#a0bf8bdaf8596b1161b6ce63c4232a1fb">P</a>), </div>
+<div class="line"><a name="l02830"></a><span class="lineno"> 2830</span>                              ObjCTypes);</div>
+<div class="line"><a name="l02831"></a><span class="lineno"> 2831</span>   }</div>
+<div class="line"><a name="l02832"></a><span class="lineno"> 2832</span>   <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCCategoryDecl.html">ObjCCategoryDecl</a> *CD = dyn_cast<ObjCCategoryDecl>(OCD)) {</div>
+<div class="line"><a name="l02833"></a><span class="lineno"> 2833</span>     <span class="keywordflow">for</span> (<a class="code" href="classclang_1_1ObjCCategoryDecl.html#a2838849e5805ca4bce587a4d9c68acb8">ObjCCategoryDecl::protocol_iterator</a> <a class="code" href="TokenAnnotator_8cpp.html#a0bf8bdaf8596b1161b6ce63c4232a1fb">P</a> = CD->protocol_begin(),</div>
+<div class="line"><a name="l02834"></a><span class="lineno"> 2834</span>          E = CD->protocol_end(); <a class="code" href="TokenAnnotator_8cpp.html#a0bf8bdaf8596b1161b6ce63c4232a1fb">P</a> != E; ++<a class="code" href="TokenAnnotator_8cpp.html#a0bf8bdaf8596b1161b6ce63c4232a1fb">P</a>)</div>
+<div class="line"><a name="l02835"></a><span class="lineno"> 2835</span>       PushProtocolProperties(PropertySet, Properties, Container, (*<a class="code" href="TokenAnnotator_8cpp.html#a0bf8bdaf8596b1161b6ce63c4232a1fb">P</a>), </div>
+<div class="line"><a name="l02836"></a><span class="lineno"> 2836</span>                              ObjCTypes);</div>
+<div class="line"><a name="l02837"></a><span class="lineno"> 2837</span>   }</div>
+<div class="line"><a name="l02838"></a><span class="lineno"> 2838</span> </div>
+<div class="line"><a name="l02839"></a><span class="lineno"> 2839</span>   <span class="comment">// Return null for empty list.</span></div>
+<div class="line"><a name="l02840"></a><span class="lineno"> 2840</span>   <span class="keywordflow">if</span> (Properties.empty())</div>
+<div class="line"><a name="l02841"></a><span class="lineno"> 2841</span>     <span class="keywordflow">return</span> llvm::Constant::getNullValue(ObjCTypes.PropertyListPtrTy);</div>
+<div class="line"><a name="l02842"></a><span class="lineno"> 2842</span> </div>
+<div class="line"><a name="l02843"></a><span class="lineno"> 2843</span>   <span class="keywordtype">unsigned</span> PropertySize =</div>
+<div class="line"><a name="l02844"></a><span class="lineno"> 2844</span>     CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a7a01d2bf67fc7c685a8648809c0913a7">getDataLayout</a>().getTypeAllocSize(ObjCTypes.PropertyTy);</div>
+<div class="line"><a name="l02845"></a><span class="lineno"> 2845</span>   llvm::Constant *Values[3];</div>
+<div class="line"><a name="l02846"></a><span class="lineno"> 2846</span>   Values[0] = llvm::ConstantInt::get(ObjCTypes.IntTy, PropertySize);</div>
+<div class="line"><a name="l02847"></a><span class="lineno"> 2847</span>   Values[1] = llvm::ConstantInt::get(ObjCTypes.IntTy, Properties.size());</div>
+<div class="line"><a name="l02848"></a><span class="lineno"> 2848</span>   llvm::ArrayType *AT = llvm::ArrayType::get(ObjCTypes.PropertyTy,</div>
+<div class="line"><a name="l02849"></a><span class="lineno"> 2849</span>                                              Properties.size());</div>
+<div class="line"><a name="l02850"></a><span class="lineno"> 2850</span>   Values[2] = llvm::ConstantArray::get(AT, Properties);</div>
+<div class="line"><a name="l02851"></a><span class="lineno"> 2851</span>   llvm::Constant *Init = llvm::ConstantStruct::getAnon(Values);</div>
+<div class="line"><a name="l02852"></a><span class="lineno"> 2852</span> </div>
+<div class="line"><a name="l02853"></a><span class="lineno"> 2853</span>   llvm::GlobalVariable *GV =</div>
+<div class="line"><a name="l02854"></a><span class="lineno"> 2854</span>     CreateMetadataVar(Name, Init,</div>
+<div class="line"><a name="l02855"></a><span class="lineno"> 2855</span>                       (ObjCABI == 2) ? <span class="stringliteral">"__DATA, __objc_const"</span> :</div>
+<div class="line"><a name="l02856"></a><span class="lineno"> 2856</span>                       <span class="stringliteral">"__OBJC,__property,regular,no_dead_strip"</span>,</div>
+<div class="line"><a name="l02857"></a><span class="lineno"> 2857</span>                       (ObjCABI == 2) ? 8 : 4,</div>
+<div class="line"><a name="l02858"></a><span class="lineno"> 2858</span>                       <span class="keyword">true</span>);</div>
+<div class="line"><a name="l02859"></a><span class="lineno"> 2859</span>   <span class="keywordflow">return</span> llvm::ConstantExpr::getBitCast(GV, ObjCTypes.PropertyListPtrTy);</div>
+<div class="line"><a name="l02860"></a><span class="lineno"> 2860</span> }</div>
+<div class="line"><a name="l02861"></a><span class="lineno"> 2861</span> </div>
+<div class="line"><a name="l02862"></a><span class="lineno"> 2862</span> llvm::Constant *</div>
+<div class="line"><a name="l02863"></a><span class="lineno"> 2863</span> CGObjCCommonMac::EmitProtocolMethodTypes(Twine Name,</div>
+<div class="line"><a name="l02864"></a><span class="lineno"> 2864</span>                                          <a class="code" href="classllvm_1_1ArrayRef.html">ArrayRef<llvm::Constant*></a> MethodTypes,</div>
+<div class="line"><a name="l02865"></a><span class="lineno"> 2865</span>                                          <span class="keyword">const</span> ObjCCommonTypesHelper &ObjCTypes) {</div>
+<div class="line"><a name="l02866"></a><span class="lineno"> 2866</span>   <span class="comment">// Return null for empty list.</span></div>
+<div class="line"><a name="l02867"></a><span class="lineno"> 2867</span>   <span class="keywordflow">if</span> (MethodTypes.empty())</div>
+<div class="line"><a name="l02868"></a><span class="lineno"> 2868</span>     <span class="keywordflow">return</span> llvm::Constant::getNullValue(ObjCTypes.Int8PtrPtrTy);</div>
+<div class="line"><a name="l02869"></a><span class="lineno"> 2869</span> </div>
+<div class="line"><a name="l02870"></a><span class="lineno"> 2870</span>   llvm::ArrayType *AT = llvm::ArrayType::get(ObjCTypes.Int8PtrTy,</div>
+<div class="line"><a name="l02871"></a><span class="lineno"> 2871</span>                                              MethodTypes.size());</div>
+<div class="line"><a name="l02872"></a><span class="lineno"> 2872</span>   llvm::Constant *Init = llvm::ConstantArray::get(AT, MethodTypes);</div>
+<div class="line"><a name="l02873"></a><span class="lineno"> 2873</span> </div>
+<div class="line"><a name="l02874"></a><span class="lineno"> 2874</span>   llvm::GlobalVariable *GV = </div>
+<div class="line"><a name="l02875"></a><span class="lineno"> 2875</span>     CreateMetadataVar(Name, Init,</div>
+<div class="line"><a name="l02876"></a><span class="lineno"> 2876</span>                       (ObjCABI == 2) ? <span class="stringliteral">"__DATA, __objc_const"</span> : 0,</div>
+<div class="line"><a name="l02877"></a><span class="lineno"> 2877</span>                       (ObjCABI == 2) ? 8 : 4,</div>
+<div class="line"><a name="l02878"></a><span class="lineno"> 2878</span>                       <span class="keyword">true</span>);</div>
+<div class="line"><a name="l02879"></a><span class="lineno"> 2879</span>   <span class="keywordflow">return</span> llvm::ConstantExpr::getBitCast(GV, ObjCTypes.Int8PtrPtrTy);</div>
+<div class="line"><a name="l02880"></a><span class="lineno"> 2880</span> }</div>
+<div class="line"><a name="l02881"></a><span class="lineno"> 2881</span> </div>
+<div class="line"><a name="l02882"></a><span class="lineno"> 2882</span> <span class="comment">/*</span></div>
+<div class="line"><a name="l02883"></a><span class="lineno"> 2883</span> <span class="comment">  struct objc_method_description_list {</span></div>
+<div class="line"><a name="l02884"></a><span class="lineno"> 2884</span> <span class="comment">  int count;</span></div>
+<div class="line"><a name="l02885"></a><span class="lineno"> 2885</span> <span class="comment">  struct objc_method_description list[];</span></div>
+<div class="line"><a name="l02886"></a><span class="lineno"> 2886</span> <span class="comment">  };</span></div>
+<div class="line"><a name="l02887"></a><span class="lineno"> 2887</span> <span class="comment">*/</span></div>
+<div class="line"><a name="l02888"></a><span class="lineno"> 2888</span> llvm::Constant *</div>
+<div class="line"><a name="l02889"></a><span class="lineno"> 2889</span> CGObjCMac::GetMethodDescriptionConstant(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCMethodDecl.html">ObjCMethodDecl</a> *MD) {</div>
+<div class="line"><a name="l02890"></a><span class="lineno"> 2890</span>   llvm::Constant *Desc[] = {</div>
+<div class="line"><a name="l02891"></a><span class="lineno"> 2891</span>     llvm::ConstantExpr::getBitCast(GetMethodVarName(MD-><a class="code" href="classclang_1_1ObjCMethodDecl.html#aa91ae093f29f2781c87f725e42fddf98">getSelector</a>()),</div>
+<div class="line"><a name="l02892"></a><span class="lineno"> 2892</span>                                    ObjCTypes.SelectorPtrTy),</div>
+<div class="line"><a name="l02893"></a><span class="lineno"> 2893</span>     GetMethodVarType(MD)</div>
+<div class="line"><a name="l02894"></a><span class="lineno"> 2894</span>   };</div>
+<div class="line"><a name="l02895"></a><span class="lineno"> 2895</span>   <span class="keywordflow">if</span> (!Desc[1])</div>
+<div class="line"><a name="l02896"></a><span class="lineno"> 2896</span>     <span class="keywordflow">return</span> 0;</div>
+<div class="line"><a name="l02897"></a><span class="lineno"> 2897</span>   </div>
+<div class="line"><a name="l02898"></a><span class="lineno"> 2898</span>   <span class="keywordflow">return</span> llvm::ConstantStruct::get(ObjCTypes.MethodDescriptionTy,</div>
+<div class="line"><a name="l02899"></a><span class="lineno"> 2899</span>                                    Desc);</div>
+<div class="line"><a name="l02900"></a><span class="lineno"> 2900</span> }</div>
+<div class="line"><a name="l02901"></a><span class="lineno"> 2901</span> </div>
+<div class="line"><a name="l02902"></a><span class="lineno"> 2902</span> llvm::Constant *</div>
+<div class="line"><a name="l02903"></a><span class="lineno"> 2903</span> CGObjCMac::EmitMethodDescList(Twine Name, <span class="keyword">const</span> <span class="keywordtype">char</span> *Section,</div>
+<div class="line"><a name="l02904"></a><span class="lineno"> 2904</span>                               <a class="code" href="classllvm_1_1ArrayRef.html">ArrayRef<llvm::Constant*></a> Methods) {</div>
+<div class="line"><a name="l02905"></a><span class="lineno"> 2905</span>   <span class="comment">// Return null for empty list.</span></div>
+<div class="line"><a name="l02906"></a><span class="lineno"> 2906</span>   <span class="keywordflow">if</span> (Methods.empty())</div>
+<div class="line"><a name="l02907"></a><span class="lineno"> 2907</span>     <span class="keywordflow">return</span> llvm::Constant::getNullValue(ObjCTypes.MethodDescriptionListPtrTy);</div>
+<div class="line"><a name="l02908"></a><span class="lineno"> 2908</span> </div>
+<div class="line"><a name="l02909"></a><span class="lineno"> 2909</span>   llvm::Constant *Values[2];</div>
+<div class="line"><a name="l02910"></a><span class="lineno"> 2910</span>   Values[0] = llvm::ConstantInt::get(ObjCTypes.IntTy, Methods.size());</div>
+<div class="line"><a name="l02911"></a><span class="lineno"> 2911</span>   llvm::ArrayType *AT = llvm::ArrayType::get(ObjCTypes.MethodDescriptionTy,</div>
+<div class="line"><a name="l02912"></a><span class="lineno"> 2912</span>                                              Methods.size());</div>
+<div class="line"><a name="l02913"></a><span class="lineno"> 2913</span>   Values[1] = llvm::ConstantArray::get(AT, Methods);</div>
+<div class="line"><a name="l02914"></a><span class="lineno"> 2914</span>   llvm::Constant *Init = llvm::ConstantStruct::getAnon(Values);</div>
+<div class="line"><a name="l02915"></a><span class="lineno"> 2915</span> </div>
+<div class="line"><a name="l02916"></a><span class="lineno"> 2916</span>   llvm::GlobalVariable *GV = CreateMetadataVar(Name, Init, Section, 4, <span class="keyword">true</span>);</div>
+<div class="line"><a name="l02917"></a><span class="lineno"> 2917</span>   <span class="keywordflow">return</span> llvm::ConstantExpr::getBitCast(GV,</div>
+<div class="line"><a name="l02918"></a><span class="lineno"> 2918</span>                                         ObjCTypes.MethodDescriptionListPtrTy);</div>
+<div class="line"><a name="l02919"></a><span class="lineno"> 2919</span> }</div>
+<div class="line"><a name="l02920"></a><span class="lineno"> 2920</span> </div>
+<div class="line"><a name="l02921"></a><span class="lineno"> 2921</span> <span class="comment">/*</span></div>
+<div class="line"><a name="l02922"></a><span class="lineno"> 2922</span> <span class="comment">  struct _objc_category {</span></div>
+<div class="line"><a name="l02923"></a><span class="lineno"> 2923</span> <span class="comment">  char *category_name;</span></div>
+<div class="line"><a name="l02924"></a><span class="lineno"> 2924</span> <span class="comment">  char *class_name;</span></div>
+<div class="line"><a name="l02925"></a><span class="lineno"> 2925</span> <span class="comment">  struct _objc_method_list *instance_methods;</span></div>
+<div class="line"><a name="l02926"></a><span class="lineno"> 2926</span> <span class="comment">  struct _objc_method_list *class_methods;</span></div>
+<div class="line"><a name="l02927"></a><span class="lineno"> 2927</span> <span class="comment">  struct _objc_protocol_list *protocols;</span></div>
+<div class="line"><a name="l02928"></a><span class="lineno"> 2928</span> <span class="comment">  uint32_t size; // <rdar://4585769></span></div>
+<div class="line"><a name="l02929"></a><span class="lineno"> 2929</span> <span class="comment">  struct _objc_property_list *instance_properties;</span></div>
+<div class="line"><a name="l02930"></a><span class="lineno"> 2930</span> <span class="comment">  };</span></div>
+<div class="line"><a name="l02931"></a><span class="lineno"> 2931</span> <span class="comment">*/</span></div>
+<div class="line"><a name="l02932"></a><span class="lineno"> 2932</span> <span class="keywordtype">void</span> CGObjCMac::GenerateCategory(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCCategoryImplDecl.html">ObjCCategoryImplDecl</a> *OCD) {</div>
+<div class="line"><a name="l02933"></a><span class="lineno"> 2933</span>   <span class="keywordtype">unsigned</span> Size = CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a7a01d2bf67fc7c685a8648809c0913a7">getDataLayout</a>().getTypeAllocSize(ObjCTypes.CategoryTy);</div>
+<div class="line"><a name="l02934"></a><span class="lineno"> 2934</span> </div>
+<div class="line"><a name="l02935"></a><span class="lineno"> 2935</span>   <span class="comment">// FIXME: This is poor design, the OCD should have a pointer to the category</span></div>
+<div class="line"><a name="l02936"></a><span class="lineno"> 2936</span>   <span class="comment">// decl. Additionally, note that Category can be null for the @implementation</span></div>
+<div class="line"><a name="l02937"></a><span class="lineno"> 2937</span>   <span class="comment">// w/o an @interface case. Sema should just create one for us as it does for</span></div>
+<div class="line"><a name="l02938"></a><span class="lineno"> 2938</span>   <span class="comment">// @implementation so everyone else can live life under a clear blue sky.</span></div>
+<div class="line"><a name="l02939"></a><span class="lineno"> 2939</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCInterfaceDecl.html" title="Represents an ObjC class declaration.">ObjCInterfaceDecl</a> *Interface = OCD-><a class="code" href="classclang_1_1ObjCImplDecl.html#ae3c6fb728fe5a7aee81ca394470493c4">getClassInterface</a>();</div>
+<div class="line"><a name="l02940"></a><span class="lineno"> 2940</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCCategoryDecl.html">ObjCCategoryDecl</a> *Category =</div>
+<div class="line"><a name="l02941"></a><span class="lineno"> 2941</span>     Interface-><a class="code" href="classclang_1_1ObjCInterfaceDecl.html#a38f6341423d6259490b11350838b7b65">FindCategoryDeclaration</a>(OCD-><a class="code" href="classclang_1_1ObjCCategoryImplDecl.html#acfd58b44aa57cb04907fec87b0297f93">getIdentifier</a>());</div>
+<div class="line"><a name="l02942"></a><span class="lineno"> 2942</span> </div>
+<div class="line"><a name="l02943"></a><span class="lineno"> 2943</span>   <a class="code" href="classllvm_1_1SmallString.html">SmallString<256></a> ExtName;</div>
+<div class="line"><a name="l02944"></a><span class="lineno"> 2944</span>   llvm::raw_svector_ostream(ExtName) << Interface-><a class="code" href="classclang_1_1NamedDecl.html#aaf790590f634520a99e0b45699fc45c3">getName</a>() << <span class="charliteral">'_'</span></div>
+<div class="line"><a name="l02945"></a><span class="lineno"> 2945</span>                                      << OCD-><a class="code" href="classclang_1_1ObjCCategoryImplDecl.html#ae84e1df001fa99e5964064972c307ac1">getName</a>();</div>
+<div class="line"><a name="l02946"></a><span class="lineno"> 2946</span> </div>
+<div class="line"><a name="l02947"></a><span class="lineno"> 2947</span>   <a class="code" href="classllvm_1_1SmallVector.html">SmallVector<llvm::Constant *, 16></a> InstanceMethods, ClassMethods;</div>
+<div class="line"><a name="l02948"></a><span class="lineno"> 2948</span>   <span class="keywordflow">for</span> (ObjCCategoryImplDecl::instmeth_iterator</div>
+<div class="line"><a name="l02949"></a><span class="lineno"> 2949</span>          i = OCD-><a class="code" href="classclang_1_1ObjCContainerDecl.html#adb21f3e7fa3b060c5b31b92ae97f957e">instmeth_begin</a>(), e = OCD-><a class="code" href="classclang_1_1ObjCContainerDecl.html#ab363adb39c69750940adf83386f4b923">instmeth_end</a>(); i != e; ++i) {</div>
+<div class="line"><a name="l02950"></a><span class="lineno"> 2950</span>     <span class="comment">// Instance methods should always be defined.</span></div>
+<div class="line"><a name="l02951"></a><span class="lineno"> 2951</span>     InstanceMethods.push_back(GetMethodConstant(*i));</div>
+<div class="line"><a name="l02952"></a><span class="lineno"> 2952</span>   }</div>
+<div class="line"><a name="l02953"></a><span class="lineno"> 2953</span>   <span class="keywordflow">for</span> (ObjCCategoryImplDecl::classmeth_iterator</div>
+<div class="line"><a name="l02954"></a><span class="lineno"> 2954</span>          i = OCD-><a class="code" href="classclang_1_1ObjCContainerDecl.html#a39e0d96e9930f71140afbf01a89004c2">classmeth_begin</a>(), e = OCD-><a class="code" href="classclang_1_1ObjCContainerDecl.html#a004cd19356ad87461ed07eb1e3ecffd4">classmeth_end</a>(); i != e; ++i) {</div>
+<div class="line"><a name="l02955"></a><span class="lineno"> 2955</span>     <span class="comment">// Class methods should always be defined.</span></div>
+<div class="line"><a name="l02956"></a><span class="lineno"> 2956</span>     ClassMethods.push_back(GetMethodConstant(*i));</div>
+<div class="line"><a name="l02957"></a><span class="lineno"> 2957</span>   }</div>
+<div class="line"><a name="l02958"></a><span class="lineno"> 2958</span> </div>
+<div class="line"><a name="l02959"></a><span class="lineno"> 2959</span>   llvm::Constant *Values[7];</div>
+<div class="line"><a name="l02960"></a><span class="lineno"> 2960</span>   Values[0] = GetClassName(OCD-><a class="code" href="classclang_1_1ObjCCategoryImplDecl.html#acfd58b44aa57cb04907fec87b0297f93">getIdentifier</a>());</div>
+<div class="line"><a name="l02961"></a><span class="lineno"> 2961</span>   Values[1] = GetClassName(Interface-><a class="code" href="classclang_1_1NamedDecl.html#a554752f8f43eea0e6288da7205167fe2">getIdentifier</a>());</div>
+<div class="line"><a name="l02962"></a><span class="lineno"> 2962</span>   LazySymbols.insert(Interface-><a class="code" href="classclang_1_1NamedDecl.html#a554752f8f43eea0e6288da7205167fe2">getIdentifier</a>());</div>
+<div class="line"><a name="l02963"></a><span class="lineno"> 2963</span>   Values[2] =</div>
+<div class="line"><a name="l02964"></a><span class="lineno"> 2964</span>     EmitMethodList(<span class="stringliteral">"\01L_OBJC_CATEGORY_INSTANCE_METHODS_"</span> + ExtName.str(),</div>
+<div class="line"><a name="l02965"></a><span class="lineno"> 2965</span>                    <span class="stringliteral">"__OBJC,__cat_inst_meth,regular,no_dead_strip"</span>,</div>
+<div class="line"><a name="l02966"></a><span class="lineno"> 2966</span>                    InstanceMethods);</div>
+<div class="line"><a name="l02967"></a><span class="lineno"> 2967</span>   Values[3] =</div>
+<div class="line"><a name="l02968"></a><span class="lineno"> 2968</span>     EmitMethodList(<span class="stringliteral">"\01L_OBJC_CATEGORY_CLASS_METHODS_"</span> + ExtName.str(),</div>
+<div class="line"><a name="l02969"></a><span class="lineno"> 2969</span>                    <span class="stringliteral">"__OBJC,__cat_cls_meth,regular,no_dead_strip"</span>,</div>
+<div class="line"><a name="l02970"></a><span class="lineno"> 2970</span>                    ClassMethods);</div>
+<div class="line"><a name="l02971"></a><span class="lineno"> 2971</span>   <span class="keywordflow">if</span> (Category) {</div>
+<div class="line"><a name="l02972"></a><span class="lineno"> 2972</span>     Values[4] =</div>
+<div class="line"><a name="l02973"></a><span class="lineno"> 2973</span>       EmitProtocolList(<span class="stringliteral">"\01L_OBJC_CATEGORY_PROTOCOLS_"</span> + ExtName.str(),</div>
+<div class="line"><a name="l02974"></a><span class="lineno"> 2974</span>                        Category-><a class="code" href="classclang_1_1ObjCCategoryDecl.html#a6bf8bb3e8a49ae865175e0f1808e7202">protocol_begin</a>(),</div>
+<div class="line"><a name="l02975"></a><span class="lineno"> 2975</span>                        Category-><a class="code" href="classclang_1_1ObjCCategoryDecl.html#ab7d4fd0806b09c9ed15966e449cb18b2">protocol_end</a>());</div>
+<div class="line"><a name="l02976"></a><span class="lineno"> 2976</span>   } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l02977"></a><span class="lineno"> 2977</span>     Values[4] = llvm::Constant::getNullValue(ObjCTypes.ProtocolListPtrTy);</div>
+<div class="line"><a name="l02978"></a><span class="lineno"> 2978</span>   }</div>
+<div class="line"><a name="l02979"></a><span class="lineno"> 2979</span>   Values[5] = llvm::ConstantInt::get(ObjCTypes.IntTy, Size);</div>
+<div class="line"><a name="l02980"></a><span class="lineno"> 2980</span> </div>
+<div class="line"><a name="l02981"></a><span class="lineno"> 2981</span>   <span class="comment">// If there is no category @interface then there can be no properties.</span></div>
+<div class="line"><a name="l02982"></a><span class="lineno"> 2982</span>   <span class="keywordflow">if</span> (Category) {</div>
+<div class="line"><a name="l02983"></a><span class="lineno"> 2983</span>     Values[6] = EmitPropertyList(<span class="stringliteral">"\01l_OBJC_$_PROP_LIST_"</span> + ExtName.str(),</div>
+<div class="line"><a name="l02984"></a><span class="lineno"> 2984</span>                                  OCD, Category, ObjCTypes);</div>
+<div class="line"><a name="l02985"></a><span class="lineno"> 2985</span>   } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l02986"></a><span class="lineno"> 2986</span>     Values[6] = llvm::Constant::getNullValue(ObjCTypes.PropertyListPtrTy);</div>
+<div class="line"><a name="l02987"></a><span class="lineno"> 2987</span>   }</div>
+<div class="line"><a name="l02988"></a><span class="lineno"> 2988</span> </div>
+<div class="line"><a name="l02989"></a><span class="lineno"> 2989</span>   llvm::Constant *Init = llvm::ConstantStruct::get(ObjCTypes.CategoryTy,</div>
+<div class="line"><a name="l02990"></a><span class="lineno"> 2990</span>                                                    Values);</div>
+<div class="line"><a name="l02991"></a><span class="lineno"> 2991</span> </div>
+<div class="line"><a name="l02992"></a><span class="lineno"> 2992</span>   llvm::GlobalVariable *GV =</div>
+<div class="line"><a name="l02993"></a><span class="lineno"> 2993</span>     CreateMetadataVar(<span class="stringliteral">"\01L_OBJC_CATEGORY_"</span> + ExtName.str(), Init,</div>
+<div class="line"><a name="l02994"></a><span class="lineno"> 2994</span>                       <span class="stringliteral">"__OBJC,__category,regular,no_dead_strip"</span>,</div>
+<div class="line"><a name="l02995"></a><span class="lineno"> 2995</span>                       4, <span class="keyword">true</span>);</div>
+<div class="line"><a name="l02996"></a><span class="lineno"> 2996</span>   DefinedCategories.push_back(GV);</div>
+<div class="line"><a name="l02997"></a><span class="lineno"> 2997</span>   DefinedCategoryNames.insert(ExtName.str());</div>
+<div class="line"><a name="l02998"></a><span class="lineno"> 2998</span>   <span class="comment">// method definition entries must be clear for next implementation.</span></div>
+<div class="line"><a name="l02999"></a><span class="lineno"> 2999</span>   MethodDefinitions.clear();</div>
+<div class="line"><a name="l03000"></a><span class="lineno"> 3000</span> }</div>
+<div class="line"><a name="l03001"></a><span class="lineno"> 3001</span> </div>
+<div class="line"><a name="l03002"></a><span class="lineno"><a class="code" href="CGObjCMac_8cpp.html#a06de0eae9bead31aa75ba0a9e13776a4"> 3002</a></span> <span class="keyword">enum</span> <a class="code" href="CGObjCMac_8cpp.html#a06de0eae9bead31aa75ba0a9e13776a4">FragileClassFlags</a> {</div>
+<div class="line"><a name="l03003"></a><span class="lineno"><a class="code" href="CGObjCMac_8cpp.html#a06de0eae9bead31aa75ba0a9e13776a4ab80b8f7d9aea0861012b856eee48403a"> 3003</a></span>   <a class="code" href="CGObjCMac_8cpp.html#a06de0eae9bead31aa75ba0a9e13776a4ab80b8f7d9aea0861012b856eee48403a">FragileABI_Class_Factory</a>                 = 0x00001,</div>
+<div class="line"><a name="l03004"></a><span class="lineno"><a class="code" href="CGObjCMac_8cpp.html#a06de0eae9bead31aa75ba0a9e13776a4a225dea848285ca2589ada344b5349e22"> 3004</a></span>   <a class="code" href="CGObjCMac_8cpp.html#a06de0eae9bead31aa75ba0a9e13776a4a225dea848285ca2589ada344b5349e22">FragileABI_Class_Meta</a>                    = 0x00002,</div>
+<div class="line"><a name="l03005"></a><span class="lineno"><a class="code" href="CGObjCMac_8cpp.html#a06de0eae9bead31aa75ba0a9e13776a4ac43ffebcdfcb78b332f4c4f5ba6c55d1"> 3005</a></span>   <a class="code" href="CGObjCMac_8cpp.html#a06de0eae9bead31aa75ba0a9e13776a4ac43ffebcdfcb78b332f4c4f5ba6c55d1">FragileABI_Class_HasCXXStructors</a>         = 0x02000,</div>
+<div class="line"><a name="l03006"></a><span class="lineno"><a class="code" href="CGObjCMac_8cpp.html#a06de0eae9bead31aa75ba0a9e13776a4a77d814e43370e2c1930bf4498e3a2a56"> 3006</a></span>   <a class="code" href="CGObjCMac_8cpp.html#a06de0eae9bead31aa75ba0a9e13776a4a77d814e43370e2c1930bf4498e3a2a56">FragileABI_Class_Hidden</a>                  = 0x20000</div>
+<div class="line"><a name="l03007"></a><span class="lineno"> 3007</span> };</div>
+<div class="line"><a name="l03008"></a><span class="lineno"> 3008</span> </div>
+<div class="line"><a name="l03009"></a><span class="lineno"><a class="code" href="CGObjCMac_8cpp.html#acec89c71fa89677323d261a35126e4fc"> 3009</a></span> <span class="keyword">enum</span> <a class="code" href="CGObjCMac_8cpp.html#acec89c71fa89677323d261a35126e4fc">NonFragileClassFlags</a> {<span class="comment"></span></div>
+<div class="line"><a name="l03010"></a><span class="lineno"> 3010</span> <span class="comment">  /// Is a meta-class.</span></div>
+<div class="line"><a name="l03011"></a><span class="lineno"><a class="code" href="CGObjCMac_8cpp.html#acec89c71fa89677323d261a35126e4fcacba7057cd0761150a9172b3cad6ad611"> 3011</a></span> <span class="comment"></span>  <a class="code" href="CGObjCMac_8cpp.html#acec89c71fa89677323d261a35126e4fcacba7057cd0761150a9172b3cad6ad611" title="Is a meta-class.">NonFragileABI_Class_Meta</a>                 = 0x00001,</div>
+<div class="line"><a name="l03012"></a><span class="lineno"> 3012</span> <span class="comment"></span></div>
+<div class="line"><a name="l03013"></a><span class="lineno"> 3013</span> <span class="comment">  /// Is a root class.</span></div>
+<div class="line"><a name="l03014"></a><span class="lineno"><a class="code" href="CGObjCMac_8cpp.html#acec89c71fa89677323d261a35126e4fca92580930659841d440a736caa6cca0b7"> 3014</a></span> <span class="comment"></span>  <a class="code" href="CGObjCMac_8cpp.html#acec89c71fa89677323d261a35126e4fca92580930659841d440a736caa6cca0b7" title="Is a root class.">NonFragileABI_Class_Root</a>                 = 0x00002,</div>
+<div class="line"><a name="l03015"></a><span class="lineno"> 3015</span> <span class="comment"></span></div>
+<div class="line"><a name="l03016"></a><span class="lineno"> 3016</span> <span class="comment">  /// Has a C++ constructor and destructor.</span></div>
+<div class="line"><a name="l03017"></a><span class="lineno"><a class="code" href="CGObjCMac_8cpp.html#acec89c71fa89677323d261a35126e4fca6a344abed57e2ee86969ab17ef59dec9"> 3017</a></span> <span class="comment"></span>  <a class="code" href="CGObjCMac_8cpp.html#acec89c71fa89677323d261a35126e4fca6a344abed57e2ee86969ab17ef59dec9" title="Has a C++ constructor and destructor.">NonFragileABI_Class_HasCXXStructors</a>      = 0x00004,</div>
+<div class="line"><a name="l03018"></a><span class="lineno"> 3018</span> <span class="comment"></span></div>
+<div class="line"><a name="l03019"></a><span class="lineno"> 3019</span> <span class="comment">  /// Has hidden visibility.</span></div>
+<div class="line"><a name="l03020"></a><span class="lineno"><a class="code" href="CGObjCMac_8cpp.html#acec89c71fa89677323d261a35126e4fca565ad5c7adc26a1bb63e444f1f23cbcd"> 3020</a></span> <span class="comment"></span>  <a class="code" href="CGObjCMac_8cpp.html#acec89c71fa89677323d261a35126e4fca565ad5c7adc26a1bb63e444f1f23cbcd" title="Has hidden visibility.">NonFragileABI_Class_Hidden</a>               = 0x00010,</div>
+<div class="line"><a name="l03021"></a><span class="lineno"> 3021</span> <span class="comment"></span></div>
+<div class="line"><a name="l03022"></a><span class="lineno"> 3022</span> <span class="comment">  /// Has the exception attribute.</span></div>
+<div class="line"><a name="l03023"></a><span class="lineno"><a class="code" href="CGObjCMac_8cpp.html#acec89c71fa89677323d261a35126e4fca78920369d03452319463fefed9aa17ba"> 3023</a></span> <span class="comment"></span>  <a class="code" href="CGObjCMac_8cpp.html#acec89c71fa89677323d261a35126e4fca78920369d03452319463fefed9aa17ba" title="Has the exception attribute.">NonFragileABI_Class_Exception</a>            = 0x00020,</div>
+<div class="line"><a name="l03024"></a><span class="lineno"> 3024</span> <span class="comment"></span></div>
+<div class="line"><a name="l03025"></a><span class="lineno"> 3025</span> <span class="comment">  /// (Obsolete) ARC-specific: this class has a .release_ivars method</span></div>
+<div class="line"><a name="l03026"></a><span class="lineno"><a class="code" href="CGObjCMac_8cpp.html#acec89c71fa89677323d261a35126e4fca7c0a5afd60b5635d78124f6e0a5b32f2"> 3026</a></span> <span class="comment"></span>  <a class="code" href="CGObjCMac_8cpp.html#acec89c71fa89677323d261a35126e4fca7c0a5afd60b5635d78124f6e0a5b32f2" title="(Obsolete) ARC-specific: this class has a .release_ivars method">NonFragileABI_Class_HasIvarReleaser</a>      = 0x00040,</div>
+<div class="line"><a name="l03027"></a><span class="lineno"> 3027</span> <span class="comment"></span></div>
+<div class="line"><a name="l03028"></a><span class="lineno"> 3028</span> <span class="comment">  /// Class implementation was compiled under ARC.</span></div>
+<div class="line"><a name="l03029"></a><span class="lineno"><a class="code" href="CGObjCMac_8cpp.html#acec89c71fa89677323d261a35126e4fcafe6664197fcd1507224044d37f8ebd52"> 3029</a></span> <span class="comment"></span>  <a class="code" href="CGObjCMac_8cpp.html#acec89c71fa89677323d261a35126e4fcafe6664197fcd1507224044d37f8ebd52" title="Class implementation was compiled under ARC.">NonFragileABI_Class_CompiledByARC</a>        = 0x00080,</div>
+<div class="line"><a name="l03030"></a><span class="lineno"> 3030</span> <span class="comment"></span></div>
+<div class="line"><a name="l03031"></a><span class="lineno"> 3031</span> <span class="comment">  /// Class has non-trivial destructors, but zero-initialization is okay.</span></div>
+<div class="line"><a name="l03032"></a><span class="lineno"><a class="code" href="CGObjCMac_8cpp.html#acec89c71fa89677323d261a35126e4fca24a19b7d91baebf24f252e5c06e02d61"> 3032</a></span> <span class="comment"></span>  <a class="code" href="CGObjCMac_8cpp.html#acec89c71fa89677323d261a35126e4fca24a19b7d91baebf24f252e5c06e02d61" title="Class has non-trivial destructors, but zero-initialization is okay.">NonFragileABI_Class_HasCXXDestructorOnly</a> = 0x00100</div>
+<div class="line"><a name="l03033"></a><span class="lineno"> 3033</span> };</div>
+<div class="line"><a name="l03034"></a><span class="lineno"> 3034</span> </div>
+<div class="line"><a name="l03035"></a><span class="lineno"> 3035</span> <span class="comment">/*</span></div>
+<div class="line"><a name="l03036"></a><span class="lineno"> 3036</span> <span class="comment">  struct _objc_class {</span></div>
+<div class="line"><a name="l03037"></a><span class="lineno"> 3037</span> <span class="comment">  Class isa;</span></div>
+<div class="line"><a name="l03038"></a><span class="lineno"> 3038</span> <span class="comment">  Class super_class;</span></div>
+<div class="line"><a name="l03039"></a><span class="lineno"> 3039</span> <span class="comment">  const char *name;</span></div>
+<div class="line"><a name="l03040"></a><span class="lineno"> 3040</span> <span class="comment">  long version;</span></div>
+<div class="line"><a name="l03041"></a><span class="lineno"> 3041</span> <span class="comment">  long info;</span></div>
+<div class="line"><a name="l03042"></a><span class="lineno"> 3042</span> <span class="comment">  long instance_size;</span></div>
+<div class="line"><a name="l03043"></a><span class="lineno"> 3043</span> <span class="comment">  struct _objc_ivar_list *ivars;</span></div>
+<div class="line"><a name="l03044"></a><span class="lineno"> 3044</span> <span class="comment">  struct _objc_method_list *methods;</span></div>
+<div class="line"><a name="l03045"></a><span class="lineno"> 3045</span> <span class="comment">  struct _objc_cache *cache;</span></div>
+<div class="line"><a name="l03046"></a><span class="lineno"> 3046</span> <span class="comment">  struct _objc_protocol_list *protocols;</span></div>
+<div class="line"><a name="l03047"></a><span class="lineno"> 3047</span> <span class="comment">  // Objective-C 1.0 extensions (<rdr://4585769>)</span></div>
+<div class="line"><a name="l03048"></a><span class="lineno"> 3048</span> <span class="comment">  const char *ivar_layout;</span></div>
+<div class="line"><a name="l03049"></a><span class="lineno"> 3049</span> <span class="comment">  struct _objc_class_ext *ext;</span></div>
+<div class="line"><a name="l03050"></a><span class="lineno"> 3050</span> <span class="comment">  };</span></div>
+<div class="line"><a name="l03051"></a><span class="lineno"> 3051</span> <span class="comment"></span></div>
+<div class="line"><a name="l03052"></a><span class="lineno"> 3052</span> <span class="comment">  See EmitClassExtension();</span></div>
+<div class="line"><a name="l03053"></a><span class="lineno"> 3053</span> <span class="comment">*/</span></div>
+<div class="line"><a name="l03054"></a><span class="lineno"> 3054</span> <span class="keywordtype">void</span> CGObjCMac::GenerateClass(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCImplementationDecl.html">ObjCImplementationDecl</a> *ID) {</div>
+<div class="line"><a name="l03055"></a><span class="lineno"> 3055</span>   DefinedSymbols.insert(ID-><a class="code" href="classclang_1_1ObjCImplementationDecl.html#a94602bf9ba167278bafe8eeba1cc4ea9">getIdentifier</a>());</div>
+<div class="line"><a name="l03056"></a><span class="lineno"> 3056</span> </div>
+<div class="line"><a name="l03057"></a><span class="lineno"> 3057</span>   std::string ClassName = ID-><a class="code" href="classclang_1_1ObjCImplementationDecl.html#a9e9f56932a958ca202451d9bd38cf596" title="Get the name of the class associated with this interface.">getNameAsString</a>();</div>
+<div class="line"><a name="l03058"></a><span class="lineno"> 3058</span>   <span class="comment">// FIXME: Gross</span></div>
+<div class="line"><a name="l03059"></a><span class="lineno"> 3059</span>   <a class="code" href="classclang_1_1ObjCInterfaceDecl.html" title="Represents an ObjC class declaration.">ObjCInterfaceDecl</a> *Interface =</div>
+<div class="line"><a name="l03060"></a><span class="lineno"> 3060</span>     <span class="keyword">const_cast<</span><a class="code" href="classclang_1_1ObjCInterfaceDecl.html" title="Represents an ObjC class declaration.">ObjCInterfaceDecl</a>*<span class="keyword">></span>(ID-><a class="code" href="classclang_1_1ObjCImplDecl.html#ae3c6fb728fe5a7aee81ca394470493c4">getClassInterface</a>());</div>
+<div class="line"><a name="l03061"></a><span class="lineno"> 3061</span>   llvm::Constant *Protocols =</div>
+<div class="line"><a name="l03062"></a><span class="lineno"> 3062</span>     EmitProtocolList(<span class="stringliteral">"\01L_OBJC_CLASS_PROTOCOLS_"</span> + ID-><a class="code" href="classclang_1_1ObjCImplementationDecl.html#a7b8f2766c15a687c9e177b8450fa6204">getName</a>(),</div>
+<div class="line"><a name="l03063"></a><span class="lineno"> 3063</span>                      Interface-><a class="code" href="classclang_1_1ObjCInterfaceDecl.html#a430f01ff8c8c1294fd13db1d11c2bbd9">all_referenced_protocol_begin</a>(),</div>
+<div class="line"><a name="l03064"></a><span class="lineno"> 3064</span>                      Interface-><a class="code" href="classclang_1_1ObjCInterfaceDecl.html#a6b647c530b962651ef1a0912da0fe121">all_referenced_protocol_end</a>());</div>
+<div class="line"><a name="l03065"></a><span class="lineno"> 3065</span>   <span class="keywordtype">unsigned</span> Flags = <a class="code" href="CGObjCMac_8cpp.html#a06de0eae9bead31aa75ba0a9e13776a4ab80b8f7d9aea0861012b856eee48403a">FragileABI_Class_Factory</a>;</div>
+<div class="line"><a name="l03066"></a><span class="lineno"> 3066</span>   <span class="keywordflow">if</span> (ID-><a class="code" href="classclang_1_1ObjCImplementationDecl.html#aa187157053612843739147b3da3fe4d0">hasNonZeroConstructors</a>() || ID-><a class="code" href="classclang_1_1ObjCImplementationDecl.html#a045f9b44b1ec107f9fdc88f3a261ee25">hasDestructors</a>())</div>
+<div class="line"><a name="l03067"></a><span class="lineno"> 3067</span>     Flags |= <a class="code" href="CGObjCMac_8cpp.html#a06de0eae9bead31aa75ba0a9e13776a4ac43ffebcdfcb78b332f4c4f5ba6c55d1">FragileABI_Class_HasCXXStructors</a>;</div>
+<div class="line"><a name="l03068"></a><span class="lineno"> 3068</span>   <span class="keywordtype">unsigned</span> Size =</div>
+<div class="line"><a name="l03069"></a><span class="lineno"> 3069</span>     CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>().<a class="code" href="classclang_1_1ASTContext.html#af1acdfd23ab715bb4d79a03781cd6d9b" title="Get or compute information about the layout of the specified Objective-C implementation.">getASTObjCImplementationLayout</a>(ID).<a class="code" href="classclang_1_1ASTRecordLayout.html#a43a5213b8bf9e017693c3b25fd0fb767" title="getSize - Get the record size in characters.">getSize</a>().<a class="code" href="classclang_1_1CharUnits.html#a09546c4bc2fefb3cb4d964eb9f25d33a" title="getQuantity - Get the raw integer representation of this quantity.">getQuantity</a>();</div>
+<div class="line"><a name="l03070"></a><span class="lineno"> 3070</span> </div>
+<div class="line"><a name="l03071"></a><span class="lineno"> 3071</span>   <span class="comment">// FIXME: Set CXX-structors flag.</span></div>
+<div class="line"><a name="l03072"></a><span class="lineno"> 3072</span>   <span class="keywordflow">if</span> (ID-><a class="code" href="classclang_1_1ObjCImplDecl.html#ae3c6fb728fe5a7aee81ca394470493c4">getClassInterface</a>()-><a class="code" href="classclang_1_1NamedDecl.html#a9837d299712da9abaabf61b4c64e0631" title="Determines the visibility of this entity.">getVisibility</a>() == <a class="code" href="namespaceclang.html#afbab15cd4aa598c4e6d9192f7ac4f102a6dddfc0d585a6867a79d44a43ad55324">HiddenVisibility</a>)</div>
+<div class="line"><a name="l03073"></a><span class="lineno"> 3073</span>     Flags |= <a class="code" href="CGObjCMac_8cpp.html#a06de0eae9bead31aa75ba0a9e13776a4a77d814e43370e2c1930bf4498e3a2a56">FragileABI_Class_Hidden</a>;</div>
+<div class="line"><a name="l03074"></a><span class="lineno"> 3074</span> </div>
+<div class="line"><a name="l03075"></a><span class="lineno"> 3075</span>   <a class="code" href="classllvm_1_1SmallVector.html">SmallVector<llvm::Constant *, 16></a> InstanceMethods, ClassMethods;</div>
+<div class="line"><a name="l03076"></a><span class="lineno"> 3076</span>   <span class="keywordflow">for</span> (ObjCImplementationDecl::instmeth_iterator</div>
+<div class="line"><a name="l03077"></a><span class="lineno"> 3077</span>          i = ID-><a class="code" href="classclang_1_1ObjCContainerDecl.html#adb21f3e7fa3b060c5b31b92ae97f957e">instmeth_begin</a>(), e = ID-><a class="code" href="classclang_1_1ObjCContainerDecl.html#ab363adb39c69750940adf83386f4b923">instmeth_end</a>(); i != e; ++i) {</div>
+<div class="line"><a name="l03078"></a><span class="lineno"> 3078</span>     <span class="comment">// Instance methods should always be defined.</span></div>
+<div class="line"><a name="l03079"></a><span class="lineno"> 3079</span>     InstanceMethods.push_back(GetMethodConstant(*i));</div>
+<div class="line"><a name="l03080"></a><span class="lineno"> 3080</span>   }</div>
+<div class="line"><a name="l03081"></a><span class="lineno"> 3081</span>   <span class="keywordflow">for</span> (ObjCImplementationDecl::classmeth_iterator</div>
+<div class="line"><a name="l03082"></a><span class="lineno"> 3082</span>          i = ID-><a class="code" href="classclang_1_1ObjCContainerDecl.html#a39e0d96e9930f71140afbf01a89004c2">classmeth_begin</a>(), e = ID-><a class="code" href="classclang_1_1ObjCContainerDecl.html#a004cd19356ad87461ed07eb1e3ecffd4">classmeth_end</a>(); i != e; ++i) {</div>
+<div class="line"><a name="l03083"></a><span class="lineno"> 3083</span>     <span class="comment">// Class methods should always be defined.</span></div>
+<div class="line"><a name="l03084"></a><span class="lineno"> 3084</span>     ClassMethods.push_back(GetMethodConstant(*i));</div>
+<div class="line"><a name="l03085"></a><span class="lineno"> 3085</span>   }</div>
+<div class="line"><a name="l03086"></a><span class="lineno"> 3086</span> </div>
+<div class="line"><a name="l03087"></a><span class="lineno"> 3087</span>   <span class="keywordflow">for</span> (ObjCImplementationDecl::propimpl_iterator</div>
+<div class="line"><a name="l03088"></a><span class="lineno"> 3088</span>          i = ID-><a class="code" href="classclang_1_1ObjCImplDecl.html#a7ee14e0eeb28f7f7b2c99a5be2f95b8e">propimpl_begin</a>(), e = ID-><a class="code" href="classclang_1_1ObjCImplDecl.html#aa2eeebdf41b3d382f99db40c4017b1aa">propimpl_end</a>(); i != e; ++i) {</div>
+<div class="line"><a name="l03089"></a><span class="lineno"> 3089</span>     <a class="code" href="classclang_1_1ObjCPropertyImplDecl.html">ObjCPropertyImplDecl</a> *PID = *i;</div>
+<div class="line"><a name="l03090"></a><span class="lineno"> 3090</span> </div>
+<div class="line"><a name="l03091"></a><span class="lineno"> 3091</span>     <span class="keywordflow">if</span> (PID-><a class="code" href="classclang_1_1ObjCPropertyImplDecl.html#a2abe69de01c6e7b1b74edb61a704032a">getPropertyImplementation</a>() == ObjCPropertyImplDecl::Synthesize) {</div>
+<div class="line"><a name="l03092"></a><span class="lineno"> 3092</span>       <a class="code" href="classclang_1_1ObjCPropertyDecl.html" title="Represents one property declaration in an Objective-C interface.">ObjCPropertyDecl</a> *PD = PID-><a class="code" href="classclang_1_1ObjCPropertyImplDecl.html#a7c47743d3355f901f96c12f3ea552d16">getPropertyDecl</a>();</div>
+<div class="line"><a name="l03093"></a><span class="lineno"> 3093</span> </div>
+<div class="line"><a name="l03094"></a><span class="lineno"> 3094</span>       <span class="keywordflow">if</span> (<a class="code" href="classclang_1_1ObjCMethodDecl.html">ObjCMethodDecl</a> *MD = PD-><a class="code" href="classclang_1_1ObjCPropertyDecl.html#ac7f00c5e70f112c0c7863f93c1872545">getGetterMethodDecl</a>())</div>
+<div class="line"><a name="l03095"></a><span class="lineno"> 3095</span>         <span class="keywordflow">if</span> (llvm::Constant *C = GetMethodConstant(MD))</div>
+<div class="line"><a name="l03096"></a><span class="lineno"> 3096</span>           InstanceMethods.push_back(C);</div>
+<div class="line"><a name="l03097"></a><span class="lineno"> 3097</span>       <span class="keywordflow">if</span> (<a class="code" href="classclang_1_1ObjCMethodDecl.html">ObjCMethodDecl</a> *MD = PD-><a class="code" href="classclang_1_1ObjCPropertyDecl.html#a0deedcad9deaf37c5964646a16a6ef36">getSetterMethodDecl</a>())</div>
+<div class="line"><a name="l03098"></a><span class="lineno"> 3098</span>         <span class="keywordflow">if</span> (llvm::Constant *C = GetMethodConstant(MD))</div>
+<div class="line"><a name="l03099"></a><span class="lineno"> 3099</span>           InstanceMethods.push_back(C);</div>
+<div class="line"><a name="l03100"></a><span class="lineno"> 3100</span>     }</div>
+<div class="line"><a name="l03101"></a><span class="lineno"> 3101</span>   }</div>
+<div class="line"><a name="l03102"></a><span class="lineno"> 3102</span> </div>
+<div class="line"><a name="l03103"></a><span class="lineno"> 3103</span>   llvm::Constant *Values[12];</div>
+<div class="line"><a name="l03104"></a><span class="lineno"> 3104</span>   Values[ 0] = EmitMetaClass(ID, Protocols, ClassMethods);</div>
+<div class="line"><a name="l03105"></a><span class="lineno"> 3105</span>   <span class="keywordflow">if</span> (<a class="code" href="classclang_1_1ObjCInterfaceDecl.html" title="Represents an ObjC class declaration.">ObjCInterfaceDecl</a> *Super = Interface-><a class="code" href="classclang_1_1ObjCInterfaceDecl.html#a5f23eb5cda9e27622e71382d1dc4b95d">getSuperClass</a>()) {</div>
+<div class="line"><a name="l03106"></a><span class="lineno"> 3106</span>     <span class="comment">// Record a reference to the super class.</span></div>
+<div class="line"><a name="l03107"></a><span class="lineno"> 3107</span>     LazySymbols.insert(Super->getIdentifier());</div>
+<div class="line"><a name="l03108"></a><span class="lineno"> 3108</span> </div>
+<div class="line"><a name="l03109"></a><span class="lineno"> 3109</span>     Values[ 1] =</div>
+<div class="line"><a name="l03110"></a><span class="lineno"> 3110</span>       llvm::ConstantExpr::getBitCast(GetClassName(Super->getIdentifier()),</div>
+<div class="line"><a name="l03111"></a><span class="lineno"> 3111</span>                                      ObjCTypes.ClassPtrTy);</div>
+<div class="line"><a name="l03112"></a><span class="lineno"> 3112</span>   } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l03113"></a><span class="lineno"> 3113</span>     Values[ 1] = llvm::Constant::getNullValue(ObjCTypes.ClassPtrTy);</div>
+<div class="line"><a name="l03114"></a><span class="lineno"> 3114</span>   }</div>
+<div class="line"><a name="l03115"></a><span class="lineno"> 3115</span>   Values[ 2] = GetClassName(ID-><a class="code" href="classclang_1_1ObjCImplementationDecl.html#a94602bf9ba167278bafe8eeba1cc4ea9">getIdentifier</a>());</div>
+<div class="line"><a name="l03116"></a><span class="lineno"> 3116</span>   <span class="comment">// Version is always 0.</span></div>
+<div class="line"><a name="l03117"></a><span class="lineno"> 3117</span>   Values[ 3] = llvm::ConstantInt::get(ObjCTypes.LongTy, 0);</div>
+<div class="line"><a name="l03118"></a><span class="lineno"> 3118</span>   Values[ 4] = llvm::ConstantInt::get(ObjCTypes.LongTy, Flags);</div>
+<div class="line"><a name="l03119"></a><span class="lineno"> 3119</span>   Values[ 5] = llvm::ConstantInt::get(ObjCTypes.LongTy, Size);</div>
+<div class="line"><a name="l03120"></a><span class="lineno"> 3120</span>   Values[ 6] = EmitIvarList(ID, <span class="keyword">false</span>);</div>
+<div class="line"><a name="l03121"></a><span class="lineno"> 3121</span>   Values[ 7] =</div>
+<div class="line"><a name="l03122"></a><span class="lineno"> 3122</span>     EmitMethodList(<span class="stringliteral">"\01L_OBJC_INSTANCE_METHODS_"</span> + ID-><a class="code" href="classclang_1_1ObjCImplementationDecl.html#a7b8f2766c15a687c9e177b8450fa6204">getName</a>(),</div>
+<div class="line"><a name="l03123"></a><span class="lineno"> 3123</span>                    <span class="stringliteral">"__OBJC,__inst_meth,regular,no_dead_strip"</span>,</div>
+<div class="line"><a name="l03124"></a><span class="lineno"> 3124</span>                    InstanceMethods);</div>
+<div class="line"><a name="l03125"></a><span class="lineno"> 3125</span>   <span class="comment">// cache is always NULL.</span></div>
+<div class="line"><a name="l03126"></a><span class="lineno"> 3126</span>   Values[ 8] = llvm::Constant::getNullValue(ObjCTypes.CachePtrTy);</div>
+<div class="line"><a name="l03127"></a><span class="lineno"> 3127</span>   Values[ 9] = Protocols;</div>
+<div class="line"><a name="l03128"></a><span class="lineno"> 3128</span>   Values[10] = BuildIvarLayout(ID, <span class="keyword">true</span>);</div>
+<div class="line"><a name="l03129"></a><span class="lineno"> 3129</span>   Values[11] = EmitClassExtension(ID);</div>
+<div class="line"><a name="l03130"></a><span class="lineno"> 3130</span>   llvm::Constant *Init = llvm::ConstantStruct::get(ObjCTypes.ClassTy,</div>
+<div class="line"><a name="l03131"></a><span class="lineno"> 3131</span>                                                    Values);</div>
+<div class="line"><a name="l03132"></a><span class="lineno"> 3132</span>   std::string Name(<span class="stringliteral">"\01L_OBJC_CLASS_"</span>);</div>
+<div class="line"><a name="l03133"></a><span class="lineno"> 3133</span>   Name += ClassName;</div>
+<div class="line"><a name="l03134"></a><span class="lineno"> 3134</span>   <span class="keyword">const</span> <span class="keywordtype">char</span> *Section = <span class="stringliteral">"__OBJC,__class,regular,no_dead_strip"</span>;</div>
+<div class="line"><a name="l03135"></a><span class="lineno"> 3135</span>   <span class="comment">// Check for a forward reference.</span></div>
+<div class="line"><a name="l03136"></a><span class="lineno"> 3136</span>   llvm::GlobalVariable *GV = CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a908409c9231b015784ca008fd6bcb961">getModule</a>().getGlobalVariable(Name);</div>
+<div class="line"><a name="l03137"></a><span class="lineno"> 3137</span>   <span class="keywordflow">if</span> (GV) {</div>
+<div class="line"><a name="l03138"></a><span class="lineno"> 3138</span>     assert(GV->getType()->getElementType() == ObjCTypes.ClassTy &&</div>
+<div class="line"><a name="l03139"></a><span class="lineno"> 3139</span>            <span class="stringliteral">"Forward metaclass reference has incorrect type."</span>);</div>
+<div class="line"><a name="l03140"></a><span class="lineno"> 3140</span>     GV->setLinkage(<a class="code" href="namespaceclang.html#a78aadfeaf316ded55fdd2d1a9c8815b6a140eea3dcce11b617f72600f6644f4a3" title="Internal linkage, which indicates that the entity can be referred to from within the translation unit...">llvm::GlobalValue::InternalLinkage</a>);</div>
+<div class="line"><a name="l03141"></a><span class="lineno"> 3141</span>     GV->setInitializer(Init);</div>
+<div class="line"><a name="l03142"></a><span class="lineno"> 3142</span>     GV->setSection(Section);</div>
+<div class="line"><a name="l03143"></a><span class="lineno"> 3143</span>     GV->setAlignment(4);</div>
+<div class="line"><a name="l03144"></a><span class="lineno"> 3144</span>     CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ab4b3684fe8ae4e70f3205a40d9a2bdb2">AddUsedGlobal</a>(GV);</div>
+<div class="line"><a name="l03145"></a><span class="lineno"> 3145</span>   } </div>
+<div class="line"><a name="l03146"></a><span class="lineno"> 3146</span>   <span class="keywordflow">else</span></div>
+<div class="line"><a name="l03147"></a><span class="lineno"> 3147</span>     GV = CreateMetadataVar(Name, Init, Section, 4, <span class="keyword">true</span>);</div>
+<div class="line"><a name="l03148"></a><span class="lineno"> 3148</span>   DefinedClasses.push_back(GV);</div>
+<div class="line"><a name="l03149"></a><span class="lineno"> 3149</span>   <span class="comment">// method definition entries must be clear for next implementation.</span></div>
+<div class="line"><a name="l03150"></a><span class="lineno"> 3150</span>   MethodDefinitions.clear();</div>
+<div class="line"><a name="l03151"></a><span class="lineno"> 3151</span> }</div>
+<div class="line"><a name="l03152"></a><span class="lineno"> 3152</span> </div>
+<div class="line"><a name="l03153"></a><span class="lineno"> 3153</span> llvm::Constant *CGObjCMac::EmitMetaClass(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCImplementationDecl.html">ObjCImplementationDecl</a> *ID,</div>
+<div class="line"><a name="l03154"></a><span class="lineno"> 3154</span>                                          llvm::Constant *Protocols,</div>
+<div class="line"><a name="l03155"></a><span class="lineno"> 3155</span>                                          <a class="code" href="classllvm_1_1ArrayRef.html">ArrayRef<llvm::Constant*></a> Methods) {</div>
+<div class="line"><a name="l03156"></a><span class="lineno"> 3156</span>   <span class="keywordtype">unsigned</span> Flags = <a class="code" href="CGObjCMac_8cpp.html#a06de0eae9bead31aa75ba0a9e13776a4a225dea848285ca2589ada344b5349e22">FragileABI_Class_Meta</a>;</div>
+<div class="line"><a name="l03157"></a><span class="lineno"> 3157</span>   <span class="keywordtype">unsigned</span> Size = CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a7a01d2bf67fc7c685a8648809c0913a7">getDataLayout</a>().getTypeAllocSize(ObjCTypes.ClassTy);</div>
+<div class="line"><a name="l03158"></a><span class="lineno"> 3158</span> </div>
+<div class="line"><a name="l03159"></a><span class="lineno"> 3159</span>   <span class="keywordflow">if</span> (ID-><a class="code" href="classclang_1_1ObjCImplDecl.html#ae3c6fb728fe5a7aee81ca394470493c4">getClassInterface</a>()-><a class="code" href="classclang_1_1NamedDecl.html#a9837d299712da9abaabf61b4c64e0631" title="Determines the visibility of this entity.">getVisibility</a>() == <a class="code" href="namespaceclang.html#afbab15cd4aa598c4e6d9192f7ac4f102a6dddfc0d585a6867a79d44a43ad55324">HiddenVisibility</a>)</div>
+<div class="line"><a name="l03160"></a><span class="lineno"> 3160</span>     Flags |= <a class="code" href="CGObjCMac_8cpp.html#a06de0eae9bead31aa75ba0a9e13776a4a77d814e43370e2c1930bf4498e3a2a56">FragileABI_Class_Hidden</a>;</div>
+<div class="line"><a name="l03161"></a><span class="lineno"> 3161</span> </div>
+<div class="line"><a name="l03162"></a><span class="lineno"> 3162</span>   llvm::Constant *Values[12];</div>
+<div class="line"><a name="l03163"></a><span class="lineno"> 3163</span>   <span class="comment">// The isa for the metaclass is the root of the hierarchy.</span></div>
+<div class="line"><a name="l03164"></a><span class="lineno"> 3164</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCInterfaceDecl.html" title="Represents an ObjC class declaration.">ObjCInterfaceDecl</a> *Root = ID-><a class="code" href="classclang_1_1ObjCImplDecl.html#ae3c6fb728fe5a7aee81ca394470493c4">getClassInterface</a>();</div>
+<div class="line"><a name="l03165"></a><span class="lineno"> 3165</span>   <span class="keywordflow">while</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCInterfaceDecl.html" title="Represents an ObjC class declaration.">ObjCInterfaceDecl</a> *Super = Root-><a class="code" href="classclang_1_1ObjCInterfaceDecl.html#a5f23eb5cda9e27622e71382d1dc4b95d">getSuperClass</a>())</div>
+<div class="line"><a name="l03166"></a><span class="lineno"> 3166</span>     Root = Super;</div>
+<div class="line"><a name="l03167"></a><span class="lineno"> 3167</span>   Values[ 0] =</div>
+<div class="line"><a name="l03168"></a><span class="lineno"> 3168</span>     llvm::ConstantExpr::getBitCast(GetClassName(Root-><a class="code" href="classclang_1_1NamedDecl.html#a554752f8f43eea0e6288da7205167fe2">getIdentifier</a>()),</div>
+<div class="line"><a name="l03169"></a><span class="lineno"> 3169</span>                                    ObjCTypes.ClassPtrTy);</div>
+<div class="line"><a name="l03170"></a><span class="lineno"> 3170</span>   <span class="comment">// The super class for the metaclass is emitted as the name of the</span></div>
+<div class="line"><a name="l03171"></a><span class="lineno"> 3171</span>   <span class="comment">// super class. The runtime fixes this up to point to the</span></div>
+<div class="line"><a name="l03172"></a><span class="lineno"> 3172</span>   <span class="comment">// *metaclass* for the super class.</span></div>
+<div class="line"><a name="l03173"></a><span class="lineno"> 3173</span>   <span class="keywordflow">if</span> (<a class="code" href="classclang_1_1ObjCInterfaceDecl.html" title="Represents an ObjC class declaration.">ObjCInterfaceDecl</a> *Super = ID-><a class="code" href="classclang_1_1ObjCImplDecl.html#ae3c6fb728fe5a7aee81ca394470493c4">getClassInterface</a>()-><a class="code" href="classclang_1_1ObjCInterfaceDecl.html#a5f23eb5cda9e27622e71382d1dc4b95d">getSuperClass</a>()) {</div>
+<div class="line"><a name="l03174"></a><span class="lineno"> 3174</span>     Values[ 1] =</div>
+<div class="line"><a name="l03175"></a><span class="lineno"> 3175</span>       llvm::ConstantExpr::getBitCast(GetClassName(Super->getIdentifier()),</div>
+<div class="line"><a name="l03176"></a><span class="lineno"> 3176</span>                                      ObjCTypes.ClassPtrTy);</div>
+<div class="line"><a name="l03177"></a><span class="lineno"> 3177</span>   } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l03178"></a><span class="lineno"> 3178</span>     Values[ 1] = llvm::Constant::getNullValue(ObjCTypes.ClassPtrTy);</div>
+<div class="line"><a name="l03179"></a><span class="lineno"> 3179</span>   }</div>
+<div class="line"><a name="l03180"></a><span class="lineno"> 3180</span>   Values[ 2] = GetClassName(ID-><a class="code" href="classclang_1_1ObjCImplementationDecl.html#a94602bf9ba167278bafe8eeba1cc4ea9">getIdentifier</a>());</div>
+<div class="line"><a name="l03181"></a><span class="lineno"> 3181</span>   <span class="comment">// Version is always 0.</span></div>
+<div class="line"><a name="l03182"></a><span class="lineno"> 3182</span>   Values[ 3] = llvm::ConstantInt::get(ObjCTypes.LongTy, 0);</div>
+<div class="line"><a name="l03183"></a><span class="lineno"> 3183</span>   Values[ 4] = llvm::ConstantInt::get(ObjCTypes.LongTy, Flags);</div>
+<div class="line"><a name="l03184"></a><span class="lineno"> 3184</span>   Values[ 5] = llvm::ConstantInt::get(ObjCTypes.LongTy, Size);</div>
+<div class="line"><a name="l03185"></a><span class="lineno"> 3185</span>   Values[ 6] = EmitIvarList(ID, <span class="keyword">true</span>);</div>
+<div class="line"><a name="l03186"></a><span class="lineno"> 3186</span>   Values[ 7] =</div>
+<div class="line"><a name="l03187"></a><span class="lineno"> 3187</span>     EmitMethodList(<span class="stringliteral">"\01L_OBJC_CLASS_METHODS_"</span> + ID-><a class="code" href="classclang_1_1ObjCImplementationDecl.html#a9e9f56932a958ca202451d9bd38cf596" title="Get the name of the class associated with this interface.">getNameAsString</a>(),</div>
+<div class="line"><a name="l03188"></a><span class="lineno"> 3188</span>                    <span class="stringliteral">"__OBJC,__cls_meth,regular,no_dead_strip"</span>,</div>
+<div class="line"><a name="l03189"></a><span class="lineno"> 3189</span>                    Methods);</div>
+<div class="line"><a name="l03190"></a><span class="lineno"> 3190</span>   <span class="comment">// cache is always NULL.</span></div>
+<div class="line"><a name="l03191"></a><span class="lineno"> 3191</span>   Values[ 8] = llvm::Constant::getNullValue(ObjCTypes.CachePtrTy);</div>
+<div class="line"><a name="l03192"></a><span class="lineno"> 3192</span>   Values[ 9] = Protocols;</div>
+<div class="line"><a name="l03193"></a><span class="lineno"> 3193</span>   <span class="comment">// ivar_layout for metaclass is always NULL.</span></div>
+<div class="line"><a name="l03194"></a><span class="lineno"> 3194</span>   Values[10] = llvm::Constant::getNullValue(ObjCTypes.Int8PtrTy);</div>
+<div class="line"><a name="l03195"></a><span class="lineno"> 3195</span>   <span class="comment">// The class extension is always unused for metaclasses.</span></div>
+<div class="line"><a name="l03196"></a><span class="lineno"> 3196</span>   Values[11] = llvm::Constant::getNullValue(ObjCTypes.ClassExtensionPtrTy);</div>
+<div class="line"><a name="l03197"></a><span class="lineno"> 3197</span>   llvm::Constant *Init = llvm::ConstantStruct::get(ObjCTypes.ClassTy,</div>
+<div class="line"><a name="l03198"></a><span class="lineno"> 3198</span>                                                    Values);</div>
+<div class="line"><a name="l03199"></a><span class="lineno"> 3199</span> </div>
+<div class="line"><a name="l03200"></a><span class="lineno"> 3200</span>   std::string Name(<span class="stringliteral">"\01L_OBJC_METACLASS_"</span>);</div>
+<div class="line"><a name="l03201"></a><span class="lineno"> 3201</span>   Name += ID-><a class="code" href="classclang_1_1ObjCImplementationDecl.html#a7b8f2766c15a687c9e177b8450fa6204">getName</a>();</div>
+<div class="line"><a name="l03202"></a><span class="lineno"> 3202</span> </div>
+<div class="line"><a name="l03203"></a><span class="lineno"> 3203</span>   <span class="comment">// Check for a forward reference.</span></div>
+<div class="line"><a name="l03204"></a><span class="lineno"> 3204</span>   llvm::GlobalVariable *GV = CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a908409c9231b015784ca008fd6bcb961">getModule</a>().getGlobalVariable(Name);</div>
+<div class="line"><a name="l03205"></a><span class="lineno"> 3205</span>   <span class="keywordflow">if</span> (GV) {</div>
+<div class="line"><a name="l03206"></a><span class="lineno"> 3206</span>     assert(GV->getType()->getElementType() == ObjCTypes.ClassTy &&</div>
+<div class="line"><a name="l03207"></a><span class="lineno"> 3207</span>            <span class="stringliteral">"Forward metaclass reference has incorrect type."</span>);</div>
+<div class="line"><a name="l03208"></a><span class="lineno"> 3208</span>     GV->setLinkage(<a class="code" href="namespaceclang.html#a78aadfeaf316ded55fdd2d1a9c8815b6a140eea3dcce11b617f72600f6644f4a3" title="Internal linkage, which indicates that the entity can be referred to from within the translation unit...">llvm::GlobalValue::InternalLinkage</a>);</div>
+<div class="line"><a name="l03209"></a><span class="lineno"> 3209</span>     GV->setInitializer(Init);</div>
+<div class="line"><a name="l03210"></a><span class="lineno"> 3210</span>   } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l03211"></a><span class="lineno"> 3211</span>     GV = <span class="keyword">new</span> llvm::GlobalVariable(CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a908409c9231b015784ca008fd6bcb961">getModule</a>(), ObjCTypes.ClassTy, <span class="keyword">false</span>,</div>
+<div class="line"><a name="l03212"></a><span class="lineno"> 3212</span>                                   <a class="code" href="namespaceclang.html#a78aadfeaf316ded55fdd2d1a9c8815b6a140eea3dcce11b617f72600f6644f4a3" title="Internal linkage, which indicates that the entity can be referred to from within the translation unit...">llvm::GlobalValue::InternalLinkage</a>,</div>
+<div class="line"><a name="l03213"></a><span class="lineno"> 3213</span>                                   Init, Name);</div>
+<div class="line"><a name="l03214"></a><span class="lineno"> 3214</span>   }</div>
+<div class="line"><a name="l03215"></a><span class="lineno"> 3215</span>   GV->setSection(<span class="stringliteral">"__OBJC,__meta_class,regular,no_dead_strip"</span>);</div>
+<div class="line"><a name="l03216"></a><span class="lineno"> 3216</span>   GV->setAlignment(4);</div>
+<div class="line"><a name="l03217"></a><span class="lineno"> 3217</span>   CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ab4b3684fe8ae4e70f3205a40d9a2bdb2">AddUsedGlobal</a>(GV);</div>
+<div class="line"><a name="l03218"></a><span class="lineno"> 3218</span> </div>
+<div class="line"><a name="l03219"></a><span class="lineno"> 3219</span>   <span class="keywordflow">return</span> GV;</div>
+<div class="line"><a name="l03220"></a><span class="lineno"> 3220</span> }</div>
+<div class="line"><a name="l03221"></a><span class="lineno"> 3221</span> </div>
+<div class="line"><a name="l03222"></a><span class="lineno"> 3222</span> llvm::Constant *CGObjCMac::EmitMetaClassRef(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCInterfaceDecl.html" title="Represents an ObjC class declaration.">ObjCInterfaceDecl</a> *ID) {</div>
+<div class="line"><a name="l03223"></a><span class="lineno"> 3223</span>   std::string Name = <span class="stringliteral">"\01L_OBJC_METACLASS_"</span> + ID-><a class="code" href="classclang_1_1NamedDecl.html#a99d453b314da693c106d5acbc598fc6c">getNameAsString</a>();</div>
+<div class="line"><a name="l03224"></a><span class="lineno"> 3224</span> </div>
+<div class="line"><a name="l03225"></a><span class="lineno"> 3225</span>   <span class="comment">// FIXME: Should we look these up somewhere other than the module. Its a bit</span></div>
+<div class="line"><a name="l03226"></a><span class="lineno"> 3226</span>   <span class="comment">// silly since we only generate these while processing an implementation, so</span></div>
+<div class="line"><a name="l03227"></a><span class="lineno"> 3227</span>   <span class="comment">// exactly one pointer would work if know when we entered/exitted an</span></div>
+<div class="line"><a name="l03228"></a><span class="lineno"> 3228</span>   <span class="comment">// implementation block.</span></div>
+<div class="line"><a name="l03229"></a><span class="lineno"> 3229</span> </div>
+<div class="line"><a name="l03230"></a><span class="lineno"> 3230</span>   <span class="comment">// Check for an existing forward reference.</span></div>
+<div class="line"><a name="l03231"></a><span class="lineno"> 3231</span>   <span class="comment">// Previously, metaclass with internal linkage may have been defined.</span></div>
+<div class="line"><a name="l03232"></a><span class="lineno"> 3232</span>   <span class="comment">// pass 'true' as 2nd argument so it is returned.</span></div>
+<div class="line"><a name="l03233"></a><span class="lineno"> 3233</span>   <span class="keywordflow">if</span> (llvm::GlobalVariable *GV = CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a908409c9231b015784ca008fd6bcb961">getModule</a>().getGlobalVariable(Name,</div>
+<div class="line"><a name="l03234"></a><span class="lineno"> 3234</span>                                                                    <span class="keyword">true</span>)) {</div>
+<div class="line"><a name="l03235"></a><span class="lineno"> 3235</span>     assert(GV->getType()->getElementType() == ObjCTypes.ClassTy &&</div>
+<div class="line"><a name="l03236"></a><span class="lineno"> 3236</span>            <span class="stringliteral">"Forward metaclass reference has incorrect type."</span>);</div>
+<div class="line"><a name="l03237"></a><span class="lineno"> 3237</span>     <span class="keywordflow">return</span> GV;</div>
+<div class="line"><a name="l03238"></a><span class="lineno"> 3238</span>   } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l03239"></a><span class="lineno"> 3239</span>     <span class="comment">// Generate as an external reference to keep a consistent</span></div>
+<div class="line"><a name="l03240"></a><span class="lineno"> 3240</span>     <span class="comment">// module. This will be patched up when we emit the metaclass.</span></div>
+<div class="line"><a name="l03241"></a><span class="lineno"> 3241</span>     <span class="keywordflow">return</span> <span class="keyword">new</span> llvm::GlobalVariable(CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a908409c9231b015784ca008fd6bcb961">getModule</a>(), ObjCTypes.ClassTy, <span class="keyword">false</span>,</div>
+<div class="line"><a name="l03242"></a><span class="lineno"> 3242</span>                                     <a class="code" href="namespaceclang.html#a78aadfeaf316ded55fdd2d1a9c8815b6abf301cfab14d2b8fac6176f45e6bb54a" title="External linkage, which indicates that the entity can be referred to from other translation units...">llvm::GlobalValue::ExternalLinkage</a>,</div>
+<div class="line"><a name="l03243"></a><span class="lineno"> 3243</span>                                     0,</div>
+<div class="line"><a name="l03244"></a><span class="lineno"> 3244</span>                                     Name);</div>
+<div class="line"><a name="l03245"></a><span class="lineno"> 3245</span>   }</div>
+<div class="line"><a name="l03246"></a><span class="lineno"> 3246</span> }</div>
+<div class="line"><a name="l03247"></a><span class="lineno"> 3247</span> </div>
+<div class="line"><a name="l03248"></a><span class="lineno"> 3248</span> <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *CGObjCMac::EmitSuperClassRef(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCInterfaceDecl.html" title="Represents an ObjC class declaration.">ObjCInterfaceDecl</a> *ID) {</div>
+<div class="line"><a name="l03249"></a><span class="lineno"> 3249</span>   std::string Name = <span class="stringliteral">"\01L_OBJC_CLASS_"</span> + ID-><a class="code" href="classclang_1_1NamedDecl.html#a99d453b314da693c106d5acbc598fc6c">getNameAsString</a>();</div>
+<div class="line"><a name="l03250"></a><span class="lineno"> 3250</span>   </div>
+<div class="line"><a name="l03251"></a><span class="lineno"> 3251</span>   <span class="keywordflow">if</span> (llvm::GlobalVariable *GV = CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a908409c9231b015784ca008fd6bcb961">getModule</a>().getGlobalVariable(Name,</div>
+<div class="line"><a name="l03252"></a><span class="lineno"> 3252</span>                                                                    <span class="keyword">true</span>)) {</div>
+<div class="line"><a name="l03253"></a><span class="lineno"> 3253</span>     assert(GV->getType()->getElementType() == ObjCTypes.ClassTy &&</div>
+<div class="line"><a name="l03254"></a><span class="lineno"> 3254</span>            <span class="stringliteral">"Forward class metadata reference has incorrect type."</span>);</div>
+<div class="line"><a name="l03255"></a><span class="lineno"> 3255</span>     <span class="keywordflow">return</span> GV;</div>
+<div class="line"><a name="l03256"></a><span class="lineno"> 3256</span>   } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l03257"></a><span class="lineno"> 3257</span>     <span class="keywordflow">return</span> <span class="keyword">new</span> llvm::GlobalVariable(CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a908409c9231b015784ca008fd6bcb961">getModule</a>(), ObjCTypes.ClassTy, <span class="keyword">false</span>,</div>
+<div class="line"><a name="l03258"></a><span class="lineno"> 3258</span>                                     <a class="code" href="namespaceclang.html#a78aadfeaf316ded55fdd2d1a9c8815b6abf301cfab14d2b8fac6176f45e6bb54a" title="External linkage, which indicates that the entity can be referred to from other translation units...">llvm::GlobalValue::ExternalLinkage</a>,</div>
+<div class="line"><a name="l03259"></a><span class="lineno"> 3259</span>                                     0,</div>
+<div class="line"><a name="l03260"></a><span class="lineno"> 3260</span>                                     Name);</div>
+<div class="line"><a name="l03261"></a><span class="lineno"> 3261</span>   }</div>
+<div class="line"><a name="l03262"></a><span class="lineno"> 3262</span> }</div>
+<div class="line"><a name="l03263"></a><span class="lineno"> 3263</span> </div>
+<div class="line"><a name="l03264"></a><span class="lineno"> 3264</span> <span class="comment">/*</span></div>
+<div class="line"><a name="l03265"></a><span class="lineno"> 3265</span> <span class="comment">  struct objc_class_ext {</span></div>
+<div class="line"><a name="l03266"></a><span class="lineno"> 3266</span> <span class="comment">  uint32_t size;</span></div>
+<div class="line"><a name="l03267"></a><span class="lineno"> 3267</span> <span class="comment">  const char *weak_ivar_layout;</span></div>
+<div class="line"><a name="l03268"></a><span class="lineno"> 3268</span> <span class="comment">  struct _objc_property_list *properties;</span></div>
+<div class="line"><a name="l03269"></a><span class="lineno"> 3269</span> <span class="comment">  };</span></div>
+<div class="line"><a name="l03270"></a><span class="lineno"> 3270</span> <span class="comment">*/</span></div>
+<div class="line"><a name="l03271"></a><span class="lineno"> 3271</span> llvm::Constant *</div>
+<div class="line"><a name="l03272"></a><span class="lineno"> 3272</span> CGObjCMac::EmitClassExtension(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCImplementationDecl.html">ObjCImplementationDecl</a> *ID) {</div>
+<div class="line"><a name="l03273"></a><span class="lineno"> 3273</span>   uint64_t Size =</div>
+<div class="line"><a name="l03274"></a><span class="lineno"> 3274</span>     CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a7a01d2bf67fc7c685a8648809c0913a7">getDataLayout</a>().getTypeAllocSize(ObjCTypes.ClassExtensionTy);</div>
+<div class="line"><a name="l03275"></a><span class="lineno"> 3275</span> </div>
+<div class="line"><a name="l03276"></a><span class="lineno"> 3276</span>   llvm::Constant *Values[3];</div>
+<div class="line"><a name="l03277"></a><span class="lineno"> 3277</span>   Values[0] = llvm::ConstantInt::get(ObjCTypes.IntTy, Size);</div>
+<div class="line"><a name="l03278"></a><span class="lineno"> 3278</span>   Values[1] = BuildIvarLayout(ID, <span class="keyword">false</span>);</div>
+<div class="line"><a name="l03279"></a><span class="lineno"> 3279</span>   Values[2] = EmitPropertyList(<span class="stringliteral">"\01l_OBJC_$_PROP_LIST_"</span> + ID-><a class="code" href="classclang_1_1ObjCImplementationDecl.html#a7b8f2766c15a687c9e177b8450fa6204">getName</a>(),</div>
+<div class="line"><a name="l03280"></a><span class="lineno"> 3280</span>                                <a class="code" href="namespaceclang_1_1LangAS.html#a78ee38b55acb7cc806cb61e6d2a9f960" title="Defines the set of possible language-specific address spaces.">ID</a>, ID-><a class="code" href="classclang_1_1ObjCImplDecl.html#ae3c6fb728fe5a7aee81ca394470493c4">getClassInterface</a>(), ObjCTypes);</div>
+<div class="line"><a name="l03281"></a><span class="lineno"> 3281</span> </div>
+<div class="line"><a name="l03282"></a><span class="lineno"> 3282</span>   <span class="comment">// Return null if no extension bits are used.</span></div>
+<div class="line"><a name="l03283"></a><span class="lineno"> 3283</span>   <span class="keywordflow">if</span> (Values[1]->isNullValue() && Values[2]->isNullValue())</div>
+<div class="line"><a name="l03284"></a><span class="lineno"> 3284</span>     <span class="keywordflow">return</span> llvm::Constant::getNullValue(ObjCTypes.ClassExtensionPtrTy);</div>
+<div class="line"><a name="l03285"></a><span class="lineno"> 3285</span> </div>
+<div class="line"><a name="l03286"></a><span class="lineno"> 3286</span>   llvm::Constant *Init =</div>
+<div class="line"><a name="l03287"></a><span class="lineno"> 3287</span>     llvm::ConstantStruct::get(ObjCTypes.ClassExtensionTy, Values);</div>
+<div class="line"><a name="l03288"></a><span class="lineno"> 3288</span>   <span class="keywordflow">return</span> CreateMetadataVar(<span class="stringliteral">"\01L_OBJC_CLASSEXT_"</span> + ID-><a class="code" href="classclang_1_1ObjCImplementationDecl.html#a7b8f2766c15a687c9e177b8450fa6204">getName</a>(),</div>
+<div class="line"><a name="l03289"></a><span class="lineno"> 3289</span>                            Init, <span class="stringliteral">"__OBJC,__class_ext,regular,no_dead_strip"</span>,</div>
+<div class="line"><a name="l03290"></a><span class="lineno"> 3290</span>                            4, <span class="keyword">true</span>);</div>
+<div class="line"><a name="l03291"></a><span class="lineno"> 3291</span> }</div>
+<div class="line"><a name="l03292"></a><span class="lineno"> 3292</span> </div>
+<div class="line"><a name="l03293"></a><span class="lineno"> 3293</span> <span class="comment">/*</span></div>
+<div class="line"><a name="l03294"></a><span class="lineno"> 3294</span> <span class="comment">  struct objc_ivar {</span></div>
+<div class="line"><a name="l03295"></a><span class="lineno"> 3295</span> <span class="comment">    char *ivar_name;</span></div>
+<div class="line"><a name="l03296"></a><span class="lineno"> 3296</span> <span class="comment">    char *ivar_type;</span></div>
+<div class="line"><a name="l03297"></a><span class="lineno"> 3297</span> <span class="comment">    int ivar_offset;</span></div>
+<div class="line"><a name="l03298"></a><span class="lineno"> 3298</span> <span class="comment">  };</span></div>
+<div class="line"><a name="l03299"></a><span class="lineno"> 3299</span> <span class="comment"></span></div>
+<div class="line"><a name="l03300"></a><span class="lineno"> 3300</span> <span class="comment">  struct objc_ivar_list {</span></div>
+<div class="line"><a name="l03301"></a><span class="lineno"> 3301</span> <span class="comment">    int ivar_count;</span></div>
+<div class="line"><a name="l03302"></a><span class="lineno"> 3302</span> <span class="comment">    struct objc_ivar list[count];</span></div>
+<div class="line"><a name="l03303"></a><span class="lineno"> 3303</span> <span class="comment">  };</span></div>
+<div class="line"><a name="l03304"></a><span class="lineno"> 3304</span> <span class="comment">*/</span></div>
+<div class="line"><a name="l03305"></a><span class="lineno"> 3305</span> llvm::Constant *CGObjCMac::EmitIvarList(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCImplementationDecl.html">ObjCImplementationDecl</a> *ID,</div>
+<div class="line"><a name="l03306"></a><span class="lineno"> 3306</span>                                         <span class="keywordtype">bool</span> ForClass) {</div>
+<div class="line"><a name="l03307"></a><span class="lineno"> 3307</span>   std::vector<llvm::Constant*> Ivars;</div>
+<div class="line"><a name="l03308"></a><span class="lineno"> 3308</span> </div>
+<div class="line"><a name="l03309"></a><span class="lineno"> 3309</span>   <span class="comment">// When emitting the root class GCC emits ivar entries for the</span></div>
+<div class="line"><a name="l03310"></a><span class="lineno"> 3310</span>   <span class="comment">// actual class structure. It is not clear if we need to follow this</span></div>
+<div class="line"><a name="l03311"></a><span class="lineno"> 3311</span>   <span class="comment">// behavior; for now lets try and get away with not doing it. If so,</span></div>
+<div class="line"><a name="l03312"></a><span class="lineno"> 3312</span>   <span class="comment">// the cleanest solution would be to make up an ObjCInterfaceDecl</span></div>
+<div class="line"><a name="l03313"></a><span class="lineno"> 3313</span>   <span class="comment">// for the class.</span></div>
+<div class="line"><a name="l03314"></a><span class="lineno"> 3314</span>   <span class="keywordflow">if</span> (ForClass)</div>
+<div class="line"><a name="l03315"></a><span class="lineno"> 3315</span>     <span class="keywordflow">return</span> llvm::Constant::getNullValue(ObjCTypes.IvarListPtrTy);</div>
+<div class="line"><a name="l03316"></a><span class="lineno"> 3316</span> </div>
+<div class="line"><a name="l03317"></a><span class="lineno"> 3317</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCInterfaceDecl.html" title="Represents an ObjC class declaration.">ObjCInterfaceDecl</a> *OID = ID-><a class="code" href="classclang_1_1ObjCImplDecl.html#ae3c6fb728fe5a7aee81ca394470493c4">getClassInterface</a>();</div>
+<div class="line"><a name="l03318"></a><span class="lineno"> 3318</span> </div>
+<div class="line"><a name="l03319"></a><span class="lineno"> 3319</span>   <span class="keywordflow">for</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCIvarDecl.html">ObjCIvarDecl</a> *IVD = OID-><a class="code" href="classclang_1_1ObjCInterfaceDecl.html#a33ad0524e4d449655e216893b85910e2">all_declared_ivar_begin</a>(); </div>
+<div class="line"><a name="l03320"></a><span class="lineno"> 3320</span>        IVD; IVD = IVD-><a class="code" href="classclang_1_1ObjCIvarDecl.html#ad4e167798de561f182d039520eb90b29">getNextIvar</a>()) {</div>
+<div class="line"><a name="l03321"></a><span class="lineno"> 3321</span>     <span class="comment">// Ignore unnamed bit-fields.</span></div>
+<div class="line"><a name="l03322"></a><span class="lineno"> 3322</span>     <span class="keywordflow">if</span> (!IVD->getDeclName())</div>
+<div class="line"><a name="l03323"></a><span class="lineno"> 3323</span>       <span class="keywordflow">continue</span>;</div>
+<div class="line"><a name="l03324"></a><span class="lineno"> 3324</span>     llvm::Constant *Ivar[] = {</div>
+<div class="line"><a name="l03325"></a><span class="lineno"> 3325</span>       GetMethodVarName(IVD->getIdentifier()),</div>
+<div class="line"><a name="l03326"></a><span class="lineno"> 3326</span>       GetMethodVarType(IVD),</div>
+<div class="line"><a name="l03327"></a><span class="lineno"> 3327</span>       llvm::ConstantInt::get(ObjCTypes.IntTy,</div>
+<div class="line"><a name="l03328"></a><span class="lineno"> 3328</span>                              ComputeIvarBaseOffset(CGM, OID, IVD))</div>
+<div class="line"><a name="l03329"></a><span class="lineno"> 3329</span>     };</div>
+<div class="line"><a name="l03330"></a><span class="lineno"> 3330</span>     Ivars.push_back(llvm::ConstantStruct::get(ObjCTypes.IvarTy, Ivar));</div>
+<div class="line"><a name="l03331"></a><span class="lineno"> 3331</span>   }</div>
+<div class="line"><a name="l03332"></a><span class="lineno"> 3332</span> </div>
+<div class="line"><a name="l03333"></a><span class="lineno"> 3333</span>   <span class="comment">// Return null for empty list.</span></div>
+<div class="line"><a name="l03334"></a><span class="lineno"> 3334</span>   <span class="keywordflow">if</span> (Ivars.empty())</div>
+<div class="line"><a name="l03335"></a><span class="lineno"> 3335</span>     <span class="keywordflow">return</span> llvm::Constant::getNullValue(ObjCTypes.IvarListPtrTy);</div>
+<div class="line"><a name="l03336"></a><span class="lineno"> 3336</span> </div>
+<div class="line"><a name="l03337"></a><span class="lineno"> 3337</span>   llvm::Constant *Values[2];</div>
+<div class="line"><a name="l03338"></a><span class="lineno"> 3338</span>   Values[0] = llvm::ConstantInt::get(ObjCTypes.IntTy, Ivars.size());</div>
+<div class="line"><a name="l03339"></a><span class="lineno"> 3339</span>   llvm::ArrayType *AT = llvm::ArrayType::get(ObjCTypes.IvarTy,</div>
+<div class="line"><a name="l03340"></a><span class="lineno"> 3340</span>                                              Ivars.size());</div>
+<div class="line"><a name="l03341"></a><span class="lineno"> 3341</span>   Values[1] = llvm::ConstantArray::get(AT, Ivars);</div>
+<div class="line"><a name="l03342"></a><span class="lineno"> 3342</span>   llvm::Constant *Init = llvm::ConstantStruct::getAnon(Values);</div>
+<div class="line"><a name="l03343"></a><span class="lineno"> 3343</span> </div>
+<div class="line"><a name="l03344"></a><span class="lineno"> 3344</span>   llvm::GlobalVariable *GV;</div>
+<div class="line"><a name="l03345"></a><span class="lineno"> 3345</span>   <span class="keywordflow">if</span> (ForClass)</div>
+<div class="line"><a name="l03346"></a><span class="lineno"> 3346</span>     GV = CreateMetadataVar(<span class="stringliteral">"\01L_OBJC_CLASS_VARIABLES_"</span> + ID-><a class="code" href="classclang_1_1ObjCImplementationDecl.html#a7b8f2766c15a687c9e177b8450fa6204">getName</a>(),</div>
+<div class="line"><a name="l03347"></a><span class="lineno"> 3347</span>                            Init, <span class="stringliteral">"__OBJC,__class_vars,regular,no_dead_strip"</span>,</div>
+<div class="line"><a name="l03348"></a><span class="lineno"> 3348</span>                            4, <span class="keyword">true</span>);</div>
+<div class="line"><a name="l03349"></a><span class="lineno"> 3349</span>   <span class="keywordflow">else</span></div>
+<div class="line"><a name="l03350"></a><span class="lineno"> 3350</span>     GV = CreateMetadataVar(<span class="stringliteral">"\01L_OBJC_INSTANCE_VARIABLES_"</span> + ID-><a class="code" href="classclang_1_1ObjCImplementationDecl.html#a7b8f2766c15a687c9e177b8450fa6204">getName</a>(),</div>
+<div class="line"><a name="l03351"></a><span class="lineno"> 3351</span>                            Init, <span class="stringliteral">"__OBJC,__instance_vars,regular,no_dead_strip"</span>,</div>
+<div class="line"><a name="l03352"></a><span class="lineno"> 3352</span>                            4, <span class="keyword">true</span>);</div>
+<div class="line"><a name="l03353"></a><span class="lineno"> 3353</span>   <span class="keywordflow">return</span> llvm::ConstantExpr::getBitCast(GV, ObjCTypes.IvarListPtrTy);</div>
+<div class="line"><a name="l03354"></a><span class="lineno"> 3354</span> }</div>
+<div class="line"><a name="l03355"></a><span class="lineno"> 3355</span> </div>
+<div class="line"><a name="l03356"></a><span class="lineno"> 3356</span> <span class="comment">/*</span></div>
+<div class="line"><a name="l03357"></a><span class="lineno"> 3357</span> <span class="comment">  struct objc_method {</span></div>
+<div class="line"><a name="l03358"></a><span class="lineno"> 3358</span> <span class="comment">  SEL method_name;</span></div>
+<div class="line"><a name="l03359"></a><span class="lineno"> 3359</span> <span class="comment">  char *method_types;</span></div>
+<div class="line"><a name="l03360"></a><span class="lineno"> 3360</span> <span class="comment">  void *method;</span></div>
+<div class="line"><a name="l03361"></a><span class="lineno"> 3361</span> <span class="comment">  };</span></div>
+<div class="line"><a name="l03362"></a><span class="lineno"> 3362</span> <span class="comment"></span></div>
+<div class="line"><a name="l03363"></a><span class="lineno"> 3363</span> <span class="comment">  struct objc_method_list {</span></div>
+<div class="line"><a name="l03364"></a><span class="lineno"> 3364</span> <span class="comment">  struct objc_method_list *obsolete;</span></div>
+<div class="line"><a name="l03365"></a><span class="lineno"> 3365</span> <span class="comment">  int count;</span></div>
+<div class="line"><a name="l03366"></a><span class="lineno"> 3366</span> <span class="comment">  struct objc_method methods_list[count];</span></div>
+<div class="line"><a name="l03367"></a><span class="lineno"> 3367</span> <span class="comment">  };</span></div>
+<div class="line"><a name="l03368"></a><span class="lineno"> 3368</span> <span class="comment">*/</span></div>
+<div class="line"><a name="l03369"></a><span class="lineno"> 3369</span> <span class="comment"></span></div>
+<div class="line"><a name="l03370"></a><span class="lineno"> 3370</span> <span class="comment">/// GetMethodConstant - Return a struct objc_method constant for the</span></div>
+<div class="line"><a name="l03371"></a><span class="lineno"> 3371</span> <span class="comment">/// given method if it has been defined. The result is null if the</span></div>
+<div class="line"><a name="l03372"></a><span class="lineno"> 3372</span> <span class="comment">/// method has not been defined. The return value has type MethodPtrTy.</span></div>
+<div class="line"><a name="l03373"></a><span class="lineno"> 3373</span> <span class="comment"></span>llvm::Constant *CGObjCMac::GetMethodConstant(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCMethodDecl.html">ObjCMethodDecl</a> *MD) {</div>
+<div class="line"><a name="l03374"></a><span class="lineno"> 3374</span>   llvm::Function *Fn = GetMethodDefinition(MD);</div>
+<div class="line"><a name="l03375"></a><span class="lineno"> 3375</span>   <span class="keywordflow">if</span> (!Fn)</div>
+<div class="line"><a name="l03376"></a><span class="lineno"> 3376</span>     <span class="keywordflow">return</span> 0;</div>
+<div class="line"><a name="l03377"></a><span class="lineno"> 3377</span> </div>
+<div class="line"><a name="l03378"></a><span class="lineno"> 3378</span>   llvm::Constant *Method[] = {</div>
+<div class="line"><a name="l03379"></a><span class="lineno"> 3379</span>     llvm::ConstantExpr::getBitCast(GetMethodVarName(MD-><a class="code" href="classclang_1_1ObjCMethodDecl.html#aa91ae093f29f2781c87f725e42fddf98">getSelector</a>()),</div>
+<div class="line"><a name="l03380"></a><span class="lineno"> 3380</span>                                    ObjCTypes.SelectorPtrTy),</div>
+<div class="line"><a name="l03381"></a><span class="lineno"> 3381</span>     GetMethodVarType(MD),</div>
+<div class="line"><a name="l03382"></a><span class="lineno"> 3382</span>     llvm::ConstantExpr::getBitCast(Fn, ObjCTypes.Int8PtrTy)</div>
+<div class="line"><a name="l03383"></a><span class="lineno"> 3383</span>   };</div>
+<div class="line"><a name="l03384"></a><span class="lineno"> 3384</span>   <span class="keywordflow">return</span> llvm::ConstantStruct::get(ObjCTypes.MethodTy, Method);</div>
+<div class="line"><a name="l03385"></a><span class="lineno"> 3385</span> }</div>
+<div class="line"><a name="l03386"></a><span class="lineno"> 3386</span> </div>
+<div class="line"><a name="l03387"></a><span class="lineno"> 3387</span> llvm::Constant *CGObjCMac::EmitMethodList(Twine Name,</div>
+<div class="line"><a name="l03388"></a><span class="lineno"> 3388</span>                                           <span class="keyword">const</span> <span class="keywordtype">char</span> *Section,</div>
+<div class="line"><a name="l03389"></a><span class="lineno"> 3389</span>                                           <a class="code" href="classllvm_1_1ArrayRef.html">ArrayRef<llvm::Constant*></a> Methods) {</div>
+<div class="line"><a name="l03390"></a><span class="lineno"> 3390</span>   <span class="comment">// Return null for empty list.</span></div>
+<div class="line"><a name="l03391"></a><span class="lineno"> 3391</span>   <span class="keywordflow">if</span> (Methods.empty())</div>
+<div class="line"><a name="l03392"></a><span class="lineno"> 3392</span>     <span class="keywordflow">return</span> llvm::Constant::getNullValue(ObjCTypes.MethodListPtrTy);</div>
+<div class="line"><a name="l03393"></a><span class="lineno"> 3393</span> </div>
+<div class="line"><a name="l03394"></a><span class="lineno"> 3394</span>   llvm::Constant *Values[3];</div>
+<div class="line"><a name="l03395"></a><span class="lineno"> 3395</span>   Values[0] = llvm::Constant::getNullValue(ObjCTypes.Int8PtrTy);</div>
+<div class="line"><a name="l03396"></a><span class="lineno"> 3396</span>   Values[1] = llvm::ConstantInt::get(ObjCTypes.IntTy, Methods.size());</div>
+<div class="line"><a name="l03397"></a><span class="lineno"> 3397</span>   llvm::ArrayType *AT = llvm::ArrayType::get(ObjCTypes.MethodTy,</div>
+<div class="line"><a name="l03398"></a><span class="lineno"> 3398</span>                                              Methods.size());</div>
+<div class="line"><a name="l03399"></a><span class="lineno"> 3399</span>   Values[2] = llvm::ConstantArray::get(AT, Methods);</div>
+<div class="line"><a name="l03400"></a><span class="lineno"> 3400</span>   llvm::Constant *Init = llvm::ConstantStruct::getAnon(Values);</div>
+<div class="line"><a name="l03401"></a><span class="lineno"> 3401</span> </div>
+<div class="line"><a name="l03402"></a><span class="lineno"> 3402</span>   llvm::GlobalVariable *GV = CreateMetadataVar(Name, Init, Section, 4, <span class="keyword">true</span>);</div>
+<div class="line"><a name="l03403"></a><span class="lineno"> 3403</span>   <span class="keywordflow">return</span> llvm::ConstantExpr::getBitCast(GV, ObjCTypes.MethodListPtrTy);</div>
+<div class="line"><a name="l03404"></a><span class="lineno"> 3404</span> }</div>
+<div class="line"><a name="l03405"></a><span class="lineno"> 3405</span> </div>
+<div class="line"><a name="l03406"></a><span class="lineno"> 3406</span> llvm::Function *CGObjCCommonMac::GenerateMethod(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCMethodDecl.html">ObjCMethodDecl</a> *OMD,</div>
+<div class="line"><a name="l03407"></a><span class="lineno"> 3407</span>                                                 <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCContainerDecl.html">ObjCContainerDecl</a> *CD) {</div>
+<div class="line"><a name="l03408"></a><span class="lineno"> 3408</span>   <a class="code" href="classllvm_1_1SmallString.html">SmallString<256></a> Name;</div>
+<div class="line"><a name="l03409"></a><span class="lineno"> 3409</span>   GetNameForMethod(OMD, CD, Name);</div>
+<div class="line"><a name="l03410"></a><span class="lineno"> 3410</span> </div>
+<div class="line"><a name="l03411"></a><span class="lineno"> 3411</span>   <a class="code" href="classclang_1_1CodeGen_1_1CodeGenTypes.html">CodeGenTypes</a> &Types = CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a1325760f10142c1da8521b53734858ef">getTypes</a>();</div>
+<div class="line"><a name="l03412"></a><span class="lineno"> 3412</span>   llvm::FunctionType *MethodTy =</div>
+<div class="line"><a name="l03413"></a><span class="lineno"> 3413</span>     Types.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenTypes.html#a5e6c7473f14643c5a5b45ac9c0bb2ef8" title="GetFunctionType - Get the LLVM function type for.">GetFunctionType</a>(Types.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenTypes.html#aa0a3712dac69644328d7d9ca209c18ac">arrangeObjCMethodDeclaration</a>(OMD));</div>
+<div class="line"><a name="l03414"></a><span class="lineno"> 3414</span>   llvm::Function *Method =</div>
+<div class="line"><a name="l03415"></a><span class="lineno"> 3415</span>     llvm::Function::Create(MethodTy,</div>
+<div class="line"><a name="l03416"></a><span class="lineno"> 3416</span>                            <a class="code" href="namespaceclang.html#a78aadfeaf316ded55fdd2d1a9c8815b6a140eea3dcce11b617f72600f6644f4a3" title="Internal linkage, which indicates that the entity can be referred to from within the translation unit...">llvm::GlobalValue::InternalLinkage</a>,</div>
+<div class="line"><a name="l03417"></a><span class="lineno"> 3417</span>                            Name.str(),</div>
+<div class="line"><a name="l03418"></a><span class="lineno"> 3418</span>                            &CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a908409c9231b015784ca008fd6bcb961">getModule</a>());</div>
+<div class="line"><a name="l03419"></a><span class="lineno"> 3419</span>   MethodDefinitions.insert(std::make_pair(OMD, Method));</div>
+<div class="line"><a name="l03420"></a><span class="lineno"> 3420</span> </div>
+<div class="line"><a name="l03421"></a><span class="lineno"> 3421</span>   <span class="keywordflow">return</span> Method;</div>
+<div class="line"><a name="l03422"></a><span class="lineno"> 3422</span> }</div>
+<div class="line"><a name="l03423"></a><span class="lineno"> 3423</span> </div>
+<div class="line"><a name="l03424"></a><span class="lineno"> 3424</span> llvm::GlobalVariable *</div>
+<div class="line"><a name="l03425"></a><span class="lineno"> 3425</span> CGObjCCommonMac::CreateMetadataVar(Twine Name,</div>
+<div class="line"><a name="l03426"></a><span class="lineno"> 3426</span>                                    llvm::Constant *Init,</div>
+<div class="line"><a name="l03427"></a><span class="lineno"> 3427</span>                                    <span class="keyword">const</span> <span class="keywordtype">char</span> *Section,</div>
+<div class="line"><a name="l03428"></a><span class="lineno"> 3428</span>                                    <span class="keywordtype">unsigned</span> Align,</div>
+<div class="line"><a name="l03429"></a><span class="lineno"> 3429</span>                                    <span class="keywordtype">bool</span> AddToUsed) {</div>
+<div class="line"><a name="l03430"></a><span class="lineno"> 3430</span>   llvm::Type *Ty = Init->getType();</div>
+<div class="line"><a name="l03431"></a><span class="lineno"> 3431</span>   llvm::GlobalVariable *GV =</div>
+<div class="line"><a name="l03432"></a><span class="lineno"> 3432</span>     <span class="keyword">new</span> llvm::GlobalVariable(CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a908409c9231b015784ca008fd6bcb961">getModule</a>(), Ty, <span class="keyword">false</span>,</div>
+<div class="line"><a name="l03433"></a><span class="lineno"> 3433</span>                              <a class="code" href="namespaceclang.html#a78aadfeaf316ded55fdd2d1a9c8815b6a140eea3dcce11b617f72600f6644f4a3" title="Internal linkage, which indicates that the entity can be referred to from within the translation unit...">llvm::GlobalValue::InternalLinkage</a>, Init, Name);</div>
+<div class="line"><a name="l03434"></a><span class="lineno"> 3434</span>   <span class="keywordflow">if</span> (Section)</div>
+<div class="line"><a name="l03435"></a><span class="lineno"> 3435</span>     GV->setSection(Section);</div>
+<div class="line"><a name="l03436"></a><span class="lineno"> 3436</span>   <span class="keywordflow">if</span> (Align)</div>
+<div class="line"><a name="l03437"></a><span class="lineno"> 3437</span>     GV->setAlignment(Align);</div>
+<div class="line"><a name="l03438"></a><span class="lineno"> 3438</span>   <span class="keywordflow">if</span> (AddToUsed)</div>
+<div class="line"><a name="l03439"></a><span class="lineno"> 3439</span>     CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ab4b3684fe8ae4e70f3205a40d9a2bdb2">AddUsedGlobal</a>(GV);</div>
+<div class="line"><a name="l03440"></a><span class="lineno"> 3440</span>   <span class="keywordflow">return</span> GV;</div>
+<div class="line"><a name="l03441"></a><span class="lineno"> 3441</span> }</div>
+<div class="line"><a name="l03442"></a><span class="lineno"> 3442</span> </div>
+<div class="line"><a name="l03443"></a><span class="lineno"> 3443</span> llvm::Function *CGObjCMac::ModuleInitFunction() {</div>
+<div class="line"><a name="l03444"></a><span class="lineno"> 3444</span>   <span class="comment">// Abuse this interface function as a place to finalize.</span></div>
+<div class="line"><a name="l03445"></a><span class="lineno"> 3445</span>   FinishModule();</div>
+<div class="line"><a name="l03446"></a><span class="lineno"> 3446</span>   <span class="keywordflow">return</span> <a class="code" href="stddef_8h.html#a070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>;</div>
+<div class="line"><a name="l03447"></a><span class="lineno"> 3447</span> }</div>
+<div class="line"><a name="l03448"></a><span class="lineno"> 3448</span> </div>
+<div class="line"><a name="l03449"></a><span class="lineno"> 3449</span> llvm::Constant *CGObjCMac::GetPropertyGetFunction() {</div>
+<div class="line"><a name="l03450"></a><span class="lineno"> 3450</span>   <span class="keywordflow">return</span> ObjCTypes.getGetPropertyFn();</div>
+<div class="line"><a name="l03451"></a><span class="lineno"> 3451</span> }</div>
+<div class="line"><a name="l03452"></a><span class="lineno"> 3452</span> </div>
+<div class="line"><a name="l03453"></a><span class="lineno"> 3453</span> llvm::Constant *CGObjCMac::GetPropertySetFunction() {</div>
+<div class="line"><a name="l03454"></a><span class="lineno"> 3454</span>   <span class="keywordflow">return</span> ObjCTypes.getSetPropertyFn();</div>
+<div class="line"><a name="l03455"></a><span class="lineno"> 3455</span> }</div>
+<div class="line"><a name="l03456"></a><span class="lineno"> 3456</span> </div>
+<div class="line"><a name="l03457"></a><span class="lineno"> 3457</span> llvm::Constant *CGObjCMac::GetOptimizedPropertySetFunction(<span class="keywordtype">bool</span> atomic, </div>
+<div class="line"><a name="l03458"></a><span class="lineno"> 3458</span>                                                            <span class="keywordtype">bool</span> copy) {</div>
+<div class="line"><a name="l03459"></a><span class="lineno"> 3459</span>   <span class="keywordflow">return</span> ObjCTypes.getOptimizedSetPropertyFn(atomic, copy);</div>
+<div class="line"><a name="l03460"></a><span class="lineno"> 3460</span> }</div>
+<div class="line"><a name="l03461"></a><span class="lineno"> 3461</span> </div>
+<div class="line"><a name="l03462"></a><span class="lineno"> 3462</span> llvm::Constant *CGObjCMac::GetGetStructFunction() {</div>
+<div class="line"><a name="l03463"></a><span class="lineno"> 3463</span>   <span class="keywordflow">return</span> ObjCTypes.getCopyStructFn();</div>
+<div class="line"><a name="l03464"></a><span class="lineno"> 3464</span> }</div>
+<div class="line"><a name="l03465"></a><span class="lineno"> 3465</span> llvm::Constant *CGObjCMac::GetSetStructFunction() {</div>
+<div class="line"><a name="l03466"></a><span class="lineno"> 3466</span>   <span class="keywordflow">return</span> ObjCTypes.getCopyStructFn();</div>
+<div class="line"><a name="l03467"></a><span class="lineno"> 3467</span> }</div>
+<div class="line"><a name="l03468"></a><span class="lineno"> 3468</span> </div>
+<div class="line"><a name="l03469"></a><span class="lineno"> 3469</span> llvm::Constant *CGObjCMac::GetCppAtomicObjectGetFunction() {</div>
+<div class="line"><a name="l03470"></a><span class="lineno"> 3470</span>   <span class="keywordflow">return</span> ObjCTypes.getCppAtomicObjectFunction();</div>
+<div class="line"><a name="l03471"></a><span class="lineno"> 3471</span> }</div>
+<div class="line"><a name="l03472"></a><span class="lineno"> 3472</span> llvm::Constant *CGObjCMac::GetCppAtomicObjectSetFunction() {</div>
+<div class="line"><a name="l03473"></a><span class="lineno"> 3473</span>   <span class="keywordflow">return</span> ObjCTypes.getCppAtomicObjectFunction();</div>
+<div class="line"><a name="l03474"></a><span class="lineno"> 3474</span> }</div>
+<div class="line"><a name="l03475"></a><span class="lineno"> 3475</span> </div>
+<div class="line"><a name="l03476"></a><span class="lineno"> 3476</span> llvm::Constant *CGObjCMac::EnumerationMutationFunction() {</div>
+<div class="line"><a name="l03477"></a><span class="lineno"> 3477</span>   <span class="keywordflow">return</span> ObjCTypes.getEnumerationMutationFn();</div>
+<div class="line"><a name="l03478"></a><span class="lineno"> 3478</span> }</div>
+<div class="line"><a name="l03479"></a><span class="lineno"> 3479</span> </div>
+<div class="line"><a name="l03480"></a><span class="lineno"> 3480</span> <span class="keywordtype">void</span> CGObjCMac::EmitTryStmt(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGenFunction</a> &CGF, <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCAtTryStmt.html" title="Represents Objective-C's @try ... @catch ... @finally statement.">ObjCAtTryStmt</a> &<a class="code" href="AnalysisBasedWarnings_8cpp.html#a33dc45a03958a0bf07b5da2dec4db648">S</a>) {</div>
+<div class="line"><a name="l03481"></a><span class="lineno"> 3481</span>   <span class="keywordflow">return</span> EmitTryOrSynchronizedStmt(CGF, S);</div>
+<div class="line"><a name="l03482"></a><span class="lineno"> 3482</span> }</div>
+<div class="line"><a name="l03483"></a><span class="lineno"> 3483</span> </div>
+<div class="line"><a name="l03484"></a><span class="lineno"> 3484</span> <span class="keywordtype">void</span> CGObjCMac::EmitSynchronizedStmt(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGenFunction</a> &CGF,</div>
+<div class="line"><a name="l03485"></a><span class="lineno"> 3485</span>                                      <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCAtSynchronizedStmt.html" title="Represents Objective-C's @synchronized statement.">ObjCAtSynchronizedStmt</a> &<a class="code" href="AnalysisBasedWarnings_8cpp.html#a33dc45a03958a0bf07b5da2dec4db648">S</a>) {</div>
+<div class="line"><a name="l03486"></a><span class="lineno"> 3486</span>   <span class="keywordflow">return</span> EmitTryOrSynchronizedStmt(CGF, S);</div>
+<div class="line"><a name="l03487"></a><span class="lineno"> 3487</span> }</div>
+<div class="line"><a name="l03488"></a><span class="lineno"> 3488</span> </div>
+<div class="line"><a name="l03489"></a><span class="lineno"> 3489</span> <span class="keyword">namespace </span>{</div>
+<div class="line"><a name="l03490"></a><span class="lineno"> 3490</span>   <span class="keyword">struct </span>PerformFragileFinally : <a class="code" href="classclang_1_1CodeGen_1_1EHScopeStack_1_1Cleanup.html">EHScopeStack::Cleanup</a> {</div>
+<div class="line"><a name="l03491"></a><span class="lineno"> 3491</span>     <span class="keyword">const</span> <a class="code" href="classclang_1_1Stmt.html">Stmt</a> &<a class="code" href="AnalysisBasedWarnings_8cpp.html#a33dc45a03958a0bf07b5da2dec4db648">S</a>;</div>
+<div class="line"><a name="l03492"></a><span class="lineno"> 3492</span>     <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *SyncArgSlot;</div>
+<div class="line"><a name="l03493"></a><span class="lineno"> 3493</span>     <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *CallTryExitVar;</div>
+<div class="line"><a name="l03494"></a><span class="lineno"> 3494</span>     <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *ExceptionData;</div>
+<div class="line"><a name="l03495"></a><span class="lineno"> 3495</span>     ObjCTypesHelper &ObjCTypes;</div>
+<div class="line"><a name="l03496"></a><span class="lineno"> 3496</span>     PerformFragileFinally(<span class="keyword">const</span> <a class="code" href="classclang_1_1Stmt.html">Stmt</a> *<a class="code" href="AnalysisBasedWarnings_8cpp.html#a33dc45a03958a0bf07b5da2dec4db648">S</a>,</div>
+<div class="line"><a name="l03497"></a><span class="lineno"> 3497</span>                           <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *SyncArgSlot,</div>
+<div class="line"><a name="l03498"></a><span class="lineno"> 3498</span>                           <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *CallTryExitVar,</div>
+<div class="line"><a name="l03499"></a><span class="lineno"> 3499</span>                           <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *ExceptionData,</div>
+<div class="line"><a name="l03500"></a><span class="lineno"> 3500</span>                           ObjCTypesHelper *ObjCTypes)</div>
+<div class="line"><a name="l03501"></a><span class="lineno"> 3501</span>       : S(*S), SyncArgSlot(SyncArgSlot), CallTryExitVar(CallTryExitVar),</div>
+<div class="line"><a name="l03502"></a><span class="lineno"> 3502</span>         ExceptionData(ExceptionData), ObjCTypes(*ObjCTypes) {}</div>
+<div class="line"><a name="l03503"></a><span class="lineno"> 3503</span> </div>
+<div class="line"><a name="l03504"></a><span class="lineno"> 3504</span>     <span class="keywordtype">void</span> <a class="code" href="classclang_1_1CodeGen_1_1EHScopeStack_1_1Cleanup.html#a8ee9056bf3af5a30a1bd2b9a7e152550">Emit</a>(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGenFunction</a> &CGF, Flags flags) {</div>
+<div class="line"><a name="l03505"></a><span class="lineno"> 3505</span>       <span class="comment">// Check whether we need to call objc_exception_try_exit.</span></div>
+<div class="line"><a name="l03506"></a><span class="lineno"> 3506</span>       <span class="comment">// In optimized code, this branch will always be folded.</span></div>
+<div class="line"><a name="l03507"></a><span class="lineno"> 3507</span>       llvm::BasicBlock *FinallyCallExit =</div>
+<div class="line"><a name="l03508"></a><span class="lineno"> 3508</span>         CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a9d442ba1c516ff4a2fbf1e118359cb52" title="createBasicBlock - Create an LLVM basic block.">createBasicBlock</a>(<span class="stringliteral">"finally.call_exit"</span>);</div>
+<div class="line"><a name="l03509"></a><span class="lineno"> 3509</span>       llvm::BasicBlock *FinallyNoCallExit =</div>
+<div class="line"><a name="l03510"></a><span class="lineno"> 3510</span>         CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a9d442ba1c516ff4a2fbf1e118359cb52" title="createBasicBlock - Create an LLVM basic block.">createBasicBlock</a>(<span class="stringliteral">"finally.no_call_exit"</span>);</div>
+<div class="line"><a name="l03511"></a><span class="lineno"> 3511</span>       CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a982c1e3091df3de75723921687460d3d">Builder</a>.CreateCondBr(CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a982c1e3091df3de75723921687460d3d">Builder</a>.CreateLoad(CallTryExitVar),</div>
+<div class="line"><a name="l03512"></a><span class="lineno"> 3512</span>                                FinallyCallExit, FinallyNoCallExit);</div>
+<div class="line"><a name="l03513"></a><span class="lineno"> 3513</span> </div>
+<div class="line"><a name="l03514"></a><span class="lineno"> 3514</span>       CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#afdec5412ab40bb1923c689fe093f8871">EmitBlock</a>(FinallyCallExit);</div>
+<div class="line"><a name="l03515"></a><span class="lineno"> 3515</span>       CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a76d925109b30811e708f705a63541075">EmitNounwindRuntimeCall</a>(ObjCTypes.getExceptionTryExitFn(),</div>
+<div class="line"><a name="l03516"></a><span class="lineno"> 3516</span>                                   ExceptionData);</div>
+<div class="line"><a name="l03517"></a><span class="lineno"> 3517</span> </div>
+<div class="line"><a name="l03518"></a><span class="lineno"> 3518</span>       CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#afdec5412ab40bb1923c689fe093f8871">EmitBlock</a>(FinallyNoCallExit);</div>
+<div class="line"><a name="l03519"></a><span class="lineno"> 3519</span> </div>
+<div class="line"><a name="l03520"></a><span class="lineno"> 3520</span>       <span class="keywordflow">if</span> (isa<ObjCAtTryStmt>(<a class="code" href="AnalysisBasedWarnings_8cpp.html#a33dc45a03958a0bf07b5da2dec4db648">S</a>)) {</div>
+<div class="line"><a name="l03521"></a><span class="lineno"> 3521</span>         <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCAtFinallyStmt.html" title="Represents Objective-C's @finally statement.">ObjCAtFinallyStmt</a>* FinallyStmt =</div>
+<div class="line"><a name="l03522"></a><span class="lineno"> 3522</span>               cast<ObjCAtTryStmt>(<a class="code" href="AnalysisBasedWarnings_8cpp.html#a33dc45a03958a0bf07b5da2dec4db648">S</a>).getFinallyStmt()) {</div>
+<div class="line"><a name="l03523"></a><span class="lineno"> 3523</span>           <span class="comment">// Don't try to do the @finally if this is an EH cleanup.</span></div>
+<div class="line"><a name="l03524"></a><span class="lineno"> 3524</span>           <span class="keywordflow">if</span> (flags.isForEHCleanup()) <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l03525"></a><span class="lineno"> 3525</span> </div>
+<div class="line"><a name="l03526"></a><span class="lineno"> 3526</span>           <span class="comment">// Save the current cleanup destination in case there's</span></div>
+<div class="line"><a name="l03527"></a><span class="lineno"> 3527</span>           <span class="comment">// control flow inside the finally statement.</span></div>
+<div class="line"><a name="l03528"></a><span class="lineno"> 3528</span>           <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *CurCleanupDest =</div>
+<div class="line"><a name="l03529"></a><span class="lineno"> 3529</span>             CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a982c1e3091df3de75723921687460d3d">Builder</a>.CreateLoad(CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#aa45b27474b994180eefebad5b1e5632d">getNormalCleanupDestSlot</a>());</div>
+<div class="line"><a name="l03530"></a><span class="lineno"> 3530</span> </div>
+<div class="line"><a name="l03531"></a><span class="lineno"> 3531</span>           CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#ab625dabfdcc8082335d64c4cbd009ef0">EmitStmt</a>(FinallyStmt->getFinallyBody());</div>
+<div class="line"><a name="l03532"></a><span class="lineno"> 3532</span> </div>
+<div class="line"><a name="l03533"></a><span class="lineno"> 3533</span>           <span class="keywordflow">if</span> (CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#ac5f30cf7d71aada81975f4a079203b01">HaveInsertPoint</a>()) {</div>
+<div class="line"><a name="l03534"></a><span class="lineno"> 3534</span>             CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a982c1e3091df3de75723921687460d3d">Builder</a>.CreateStore(CurCleanupDest,</div>
+<div class="line"><a name="l03535"></a><span class="lineno"> 3535</span>                                     CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#aa45b27474b994180eefebad5b1e5632d">getNormalCleanupDestSlot</a>());</div>
+<div class="line"><a name="l03536"></a><span class="lineno"> 3536</span>           } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l03537"></a><span class="lineno"> 3537</span>             <span class="comment">// Currently, the end of the cleanup must always exist.</span></div>
+<div class="line"><a name="l03538"></a><span class="lineno"> 3538</span>             CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#aebc753533aefb02b31dc6d12b1fb6e06">EnsureInsertPoint</a>();</div>
+<div class="line"><a name="l03539"></a><span class="lineno"> 3539</span>           }</div>
+<div class="line"><a name="l03540"></a><span class="lineno"> 3540</span>         }</div>
+<div class="line"><a name="l03541"></a><span class="lineno"> 3541</span>       } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l03542"></a><span class="lineno"> 3542</span>         <span class="comment">// Emit objc_sync_exit(expr); as finally's sole statement for</span></div>
+<div class="line"><a name="l03543"></a><span class="lineno"> 3543</span>         <span class="comment">// @synchronized.</span></div>
+<div class="line"><a name="l03544"></a><span class="lineno"> 3544</span>         <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *SyncArg = CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a982c1e3091df3de75723921687460d3d">Builder</a>.CreateLoad(SyncArgSlot);</div>
+<div class="line"><a name="l03545"></a><span class="lineno"> 3545</span>         CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a76d925109b30811e708f705a63541075">EmitNounwindRuntimeCall</a>(ObjCTypes.getSyncExitFn(), SyncArg);</div>
+<div class="line"><a name="l03546"></a><span class="lineno"> 3546</span>       }</div>
+<div class="line"><a name="l03547"></a><span class="lineno"> 3547</span>     }</div>
+<div class="line"><a name="l03548"></a><span class="lineno"> 3548</span>   };</div>
+<div class="line"><a name="l03549"></a><span class="lineno"> 3549</span> </div>
+<div class="line"><a name="l03550"></a><span class="lineno"> 3550</span>   <span class="keyword">class </span>FragileHazards {</div>
+<div class="line"><a name="l03551"></a><span class="lineno"> 3551</span>     <a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGenFunction</a> &CGF;</div>
+<div class="line"><a name="l03552"></a><span class="lineno"> 3552</span>     <a class="code" href="classllvm_1_1SmallVector.html">SmallVector<llvm::Value*, 20></a> Locals;</div>
+<div class="line"><a name="l03553"></a><span class="lineno"> 3553</span>     <a class="code" href="classllvm_1_1DenseSet.html">llvm::DenseSet<llvm::BasicBlock*></a> BlocksBeforeTry;</div>
+<div class="line"><a name="l03554"></a><span class="lineno"> 3554</span> </div>
+<div class="line"><a name="l03555"></a><span class="lineno"> 3555</span>     llvm::InlineAsm *ReadHazard;</div>
+<div class="line"><a name="l03556"></a><span class="lineno"> 3556</span>     llvm::InlineAsm *WriteHazard;</div>
+<div class="line"><a name="l03557"></a><span class="lineno"> 3557</span> </div>
+<div class="line"><a name="l03558"></a><span class="lineno"> 3558</span>     llvm::FunctionType *GetAsmFnType();</div>
+<div class="line"><a name="l03559"></a><span class="lineno"> 3559</span> </div>
+<div class="line"><a name="l03560"></a><span class="lineno"> 3560</span>     <span class="keywordtype">void</span> collectLocals();</div>
+<div class="line"><a name="l03561"></a><span class="lineno"> 3561</span>     <span class="keywordtype">void</span> emitReadHazard(<a class="code" href="namespaceclang_1_1CodeGen.html#a5b4df39d75df3cedee71cc42402cc621">CGBuilderTy</a> &<a class="code" href="ASTMatchFinder_8cpp.html#a4cd8cc8f712cd1e4ebf8cb152b8a1531">Builder</a>);</div>
+<div class="line"><a name="l03562"></a><span class="lineno"> 3562</span> </div>
+<div class="line"><a name="l03563"></a><span class="lineno"> 3563</span>   <span class="keyword">public</span>:</div>
+<div class="line"><a name="l03564"></a><span class="lineno"> 3564</span>     FragileHazards(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGenFunction</a> &CGF);</div>
+<div class="line"><a name="l03565"></a><span class="lineno"> 3565</span> </div>
+<div class="line"><a name="l03566"></a><span class="lineno"> 3566</span>     <span class="keywordtype">void</span> emitWriteHazard();</div>
+<div class="line"><a name="l03567"></a><span class="lineno"> 3567</span>     <span class="keywordtype">void</span> emitHazardsInNewBlocks();</div>
+<div class="line"><a name="l03568"></a><span class="lineno"> 3568</span>   };</div>
+<div class="line"><a name="l03569"></a><span class="lineno"> 3569</span> }</div>
+<div class="line"><a name="l03570"></a><span class="lineno"> 3570</span> <span class="comment"></span></div>
+<div class="line"><a name="l03571"></a><span class="lineno"> 3571</span> <span class="comment">/// Create the fragile-ABI read and write hazards based on the current</span></div>
+<div class="line"><a name="l03572"></a><span class="lineno"> 3572</span> <span class="comment">/// state of the function, which is presumed to be immediately prior</span></div>
+<div class="line"><a name="l03573"></a><span class="lineno"> 3573</span> <span class="comment">/// to a @try block.  These hazards are used to maintain correct</span></div>
+<div class="line"><a name="l03574"></a><span class="lineno"> 3574</span> <span class="comment">/// semantics in the face of optimization and the fragile ABI's</span></div>
+<div class="line"><a name="l03575"></a><span class="lineno"> 3575</span> <span class="comment">/// cavalier use of setjmp/longjmp.</span></div>
+<div class="line"><a name="l03576"></a><span class="lineno"> 3576</span> <span class="comment"></span>FragileHazards::FragileHazards(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGenFunction</a> &CGF) : CGF(CGF) {</div>
+<div class="line"><a name="l03577"></a><span class="lineno"> 3577</span>   collectLocals();</div>
+<div class="line"><a name="l03578"></a><span class="lineno"> 3578</span> </div>
+<div class="line"><a name="l03579"></a><span class="lineno"> 3579</span>   <span class="keywordflow">if</span> (Locals.empty()) <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l03580"></a><span class="lineno"> 3580</span> </div>
+<div class="line"><a name="l03581"></a><span class="lineno"> 3581</span>   <span class="comment">// Collect all the blocks in the function.</span></div>
+<div class="line"><a name="l03582"></a><span class="lineno"> 3582</span>   <span class="keywordflow">for</span> (llvm::Function::iterator</div>
+<div class="line"><a name="l03583"></a><span class="lineno"> 3583</span>          I = CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#ade1be93e4c11e1945ef1c0d8bbc61ff8">CurFn</a>->begin(), E = CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#ade1be93e4c11e1945ef1c0d8bbc61ff8">CurFn</a>->end(); I != E; ++I)</div>
+<div class="line"><a name="l03584"></a><span class="lineno"> 3584</span>     BlocksBeforeTry.insert(&*I);</div>
+<div class="line"><a name="l03585"></a><span class="lineno"> 3585</span> </div>
+<div class="line"><a name="l03586"></a><span class="lineno"> 3586</span>   llvm::FunctionType *AsmFnTy = GetAsmFnType();</div>
+<div class="line"><a name="l03587"></a><span class="lineno"> 3587</span> </div>
+<div class="line"><a name="l03588"></a><span class="lineno"> 3588</span>   <span class="comment">// Create a read hazard for the allocas.  This inhibits dead-store</span></div>
+<div class="line"><a name="l03589"></a><span class="lineno"> 3589</span>   <span class="comment">// optimizations and forces the values to memory.  This hazard is</span></div>
+<div class="line"><a name="l03590"></a><span class="lineno"> 3590</span>   <span class="comment">// inserted before any 'throwing' calls in the protected scope to</span></div>
+<div class="line"><a name="l03591"></a><span class="lineno"> 3591</span>   <span class="comment">// reflect the possibility that the variables might be read from the</span></div>
+<div class="line"><a name="l03592"></a><span class="lineno"> 3592</span>   <span class="comment">// catch block if the call throws.</span></div>
+<div class="line"><a name="l03593"></a><span class="lineno"> 3593</span>   {</div>
+<div class="line"><a name="l03594"></a><span class="lineno"> 3594</span>     std::string Constraint;</div>
+<div class="line"><a name="l03595"></a><span class="lineno"> 3595</span>     <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> I = 0, E = Locals.size(); I != E; ++I) {</div>
+<div class="line"><a name="l03596"></a><span class="lineno"> 3596</span>       <span class="keywordflow">if</span> (I) Constraint += <span class="charliteral">','</span>;</div>
+<div class="line"><a name="l03597"></a><span class="lineno"> 3597</span>       Constraint += <span class="stringliteral">"*m"</span>;</div>
+<div class="line"><a name="l03598"></a><span class="lineno"> 3598</span>     }</div>
+<div class="line"><a name="l03599"></a><span class="lineno"> 3599</span> </div>
+<div class="line"><a name="l03600"></a><span class="lineno"> 3600</span>     ReadHazard = llvm::InlineAsm::get(AsmFnTy, <span class="stringliteral">""</span>, Constraint, <span class="keyword">true</span>, <span class="keyword">false</span>);</div>
+<div class="line"><a name="l03601"></a><span class="lineno"> 3601</span>   }</div>
+<div class="line"><a name="l03602"></a><span class="lineno"> 3602</span> </div>
+<div class="line"><a name="l03603"></a><span class="lineno"> 3603</span>   <span class="comment">// Create a write hazard for the allocas.  This inhibits folding</span></div>
+<div class="line"><a name="l03604"></a><span class="lineno"> 3604</span>   <span class="comment">// loads across the hazard.  This hazard is inserted at the</span></div>
+<div class="line"><a name="l03605"></a><span class="lineno"> 3605</span>   <span class="comment">// beginning of the catch path to reflect the possibility that the</span></div>
+<div class="line"><a name="l03606"></a><span class="lineno"> 3606</span>   <span class="comment">// variables might have been written within the protected scope.</span></div>
+<div class="line"><a name="l03607"></a><span class="lineno"> 3607</span>   {</div>
+<div class="line"><a name="l03608"></a><span class="lineno"> 3608</span>     std::string Constraint;</div>
+<div class="line"><a name="l03609"></a><span class="lineno"> 3609</span>     <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> I = 0, E = Locals.size(); I != E; ++I) {</div>
+<div class="line"><a name="l03610"></a><span class="lineno"> 3610</span>       <span class="keywordflow">if</span> (I) Constraint += <span class="charliteral">','</span>;</div>
+<div class="line"><a name="l03611"></a><span class="lineno"> 3611</span>       Constraint += <span class="stringliteral">"=*m"</span>;</div>
+<div class="line"><a name="l03612"></a><span class="lineno"> 3612</span>     }</div>
+<div class="line"><a name="l03613"></a><span class="lineno"> 3613</span> </div>
+<div class="line"><a name="l03614"></a><span class="lineno"> 3614</span>     WriteHazard = llvm::InlineAsm::get(AsmFnTy, <span class="stringliteral">""</span>, Constraint, <span class="keyword">true</span>, <span class="keyword">false</span>);</div>
+<div class="line"><a name="l03615"></a><span class="lineno"> 3615</span>   }</div>
+<div class="line"><a name="l03616"></a><span class="lineno"> 3616</span> }</div>
+<div class="line"><a name="l03617"></a><span class="lineno"> 3617</span> <span class="comment"></span></div>
+<div class="line"><a name="l03618"></a><span class="lineno"> 3618</span> <span class="comment">/// Emit a write hazard at the current location.</span></div>
+<div class="line"><a name="l03619"></a><span class="lineno"> 3619</span> <span class="comment"></span><span class="keywordtype">void</span> FragileHazards::emitWriteHazard() {</div>
+<div class="line"><a name="l03620"></a><span class="lineno"> 3620</span>   <span class="keywordflow">if</span> (Locals.empty()) <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l03621"></a><span class="lineno"> 3621</span> </div>
+<div class="line"><a name="l03622"></a><span class="lineno"> 3622</span>   CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a76d925109b30811e708f705a63541075">EmitNounwindRuntimeCall</a>(WriteHazard, Locals);</div>
+<div class="line"><a name="l03623"></a><span class="lineno"> 3623</span> }</div>
+<div class="line"><a name="l03624"></a><span class="lineno"> 3624</span> </div>
+<div class="line"><a name="l03625"></a><span class="lineno"> 3625</span> <span class="keywordtype">void</span> FragileHazards::emitReadHazard(<a class="code" href="namespaceclang_1_1CodeGen.html#a5b4df39d75df3cedee71cc42402cc621">CGBuilderTy</a> &<a class="code" href="ASTMatchFinder_8cpp.html#a4cd8cc8f712cd1e4ebf8cb152b8a1531">Builder</a>) {</div>
+<div class="line"><a name="l03626"></a><span class="lineno"> 3626</span>   assert(!Locals.empty());</div>
+<div class="line"><a name="l03627"></a><span class="lineno"> 3627</span>   llvm::CallInst *call = Builder.CreateCall(ReadHazard, Locals);</div>
+<div class="line"><a name="l03628"></a><span class="lineno"> 3628</span>   call->setDoesNotThrow();</div>
+<div class="line"><a name="l03629"></a><span class="lineno"> 3629</span>   call->setCallingConv(CGF.<a class="code" href="structclang_1_1CodeGen_1_1CodeGenTypeCache.html#a8edd84af31019b2d64b66ddb14e2593b">getRuntimeCC</a>());</div>
+<div class="line"><a name="l03630"></a><span class="lineno"> 3630</span> }</div>
+<div class="line"><a name="l03631"></a><span class="lineno"> 3631</span> <span class="comment"></span></div>
+<div class="line"><a name="l03632"></a><span class="lineno"> 3632</span> <span class="comment">/// Emit read hazards in all the protected blocks, i.e. all the blocks</span></div>
+<div class="line"><a name="l03633"></a><span class="lineno"> 3633</span> <span class="comment">/// which have been inserted since the beginning of the try.</span></div>
+<div class="line"><a name="l03634"></a><span class="lineno"> 3634</span> <span class="comment"></span><span class="keywordtype">void</span> FragileHazards::emitHazardsInNewBlocks() {</div>
+<div class="line"><a name="l03635"></a><span class="lineno"> 3635</span>   <span class="keywordflow">if</span> (Locals.empty()) <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l03636"></a><span class="lineno"> 3636</span> </div>
+<div class="line"><a name="l03637"></a><span class="lineno"> 3637</span>   <a class="code" href="namespaceclang_1_1CodeGen.html#a5b4df39d75df3cedee71cc42402cc621">CGBuilderTy</a> <a class="code" href="ASTMatchFinder_8cpp.html#a4cd8cc8f712cd1e4ebf8cb152b8a1531">Builder</a>(CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a3ab38e48e9cabd4b9b64555c6c825f06">getLLVMContext</a>());</div>
+<div class="line"><a name="l03638"></a><span class="lineno"> 3638</span> </div>
+<div class="line"><a name="l03639"></a><span class="lineno"> 3639</span>   <span class="comment">// Iterate through all blocks, skipping those prior to the try.</span></div>
+<div class="line"><a name="l03640"></a><span class="lineno"> 3640</span>   <span class="keywordflow">for</span> (llvm::Function::iterator</div>
+<div class="line"><a name="l03641"></a><span class="lineno"> 3641</span>          FI = CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#ade1be93e4c11e1945ef1c0d8bbc61ff8">CurFn</a>->begin(), FE = CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#ade1be93e4c11e1945ef1c0d8bbc61ff8">CurFn</a>->end(); FI != FE; ++FI) {</div>
+<div class="line"><a name="l03642"></a><span class="lineno"> 3642</span>     llvm::BasicBlock &BB = *FI;</div>
+<div class="line"><a name="l03643"></a><span class="lineno"> 3643</span>     <span class="keywordflow">if</span> (BlocksBeforeTry.count(&BB)) <span class="keywordflow">continue</span>;</div>
+<div class="line"><a name="l03644"></a><span class="lineno"> 3644</span> </div>
+<div class="line"><a name="l03645"></a><span class="lineno"> 3645</span>     <span class="comment">// Walk through all the calls in the block.</span></div>
+<div class="line"><a name="l03646"></a><span class="lineno"> 3646</span>     <span class="keywordflow">for</span> (llvm::BasicBlock::iterator</div>
+<div class="line"><a name="l03647"></a><span class="lineno"> 3647</span>            BI = BB.begin(), BE = BB.end(); BI != BE; ++BI) {</div>
+<div class="line"><a name="l03648"></a><span class="lineno"> 3648</span>       llvm::Instruction &I = *BI;</div>
+<div class="line"><a name="l03649"></a><span class="lineno"> 3649</span> </div>
+<div class="line"><a name="l03650"></a><span class="lineno"> 3650</span>       <span class="comment">// Ignore instructions that aren't non-intrinsic calls.</span></div>
+<div class="line"><a name="l03651"></a><span class="lineno"> 3651</span>       <span class="comment">// These are the only calls that can possibly call longjmp.</span></div>
+<div class="line"><a name="l03652"></a><span class="lineno"> 3652</span>       <span class="keywordflow">if</span> (!isa<llvm::CallInst>(I) && !isa<llvm::InvokeInst>(I)) <span class="keywordflow">continue</span>;</div>
+<div class="line"><a name="l03653"></a><span class="lineno"> 3653</span>       <span class="keywordflow">if</span> (isa<llvm::IntrinsicInst>(I))</div>
+<div class="line"><a name="l03654"></a><span class="lineno"> 3654</span>         <span class="keywordflow">continue</span>;</div>
+<div class="line"><a name="l03655"></a><span class="lineno"> 3655</span> </div>
+<div class="line"><a name="l03656"></a><span class="lineno"> 3656</span>       <span class="comment">// Ignore call sites marked nounwind.  This may be questionable,</span></div>
+<div class="line"><a name="l03657"></a><span class="lineno"> 3657</span>       <span class="comment">// since 'nounwind' doesn't necessarily mean 'does not call longjmp'.</span></div>
+<div class="line"><a name="l03658"></a><span class="lineno"> 3658</span>       llvm::CallSite CS(&I);</div>
+<div class="line"><a name="l03659"></a><span class="lineno"> 3659</span>       <span class="keywordflow">if</span> (CS.doesNotThrow()) <span class="keywordflow">continue</span>;</div>
+<div class="line"><a name="l03660"></a><span class="lineno"> 3660</span> </div>
+<div class="line"><a name="l03661"></a><span class="lineno"> 3661</span>       <span class="comment">// Insert a read hazard before the call.  This will ensure that</span></div>
+<div class="line"><a name="l03662"></a><span class="lineno"> 3662</span>       <span class="comment">// any writes to the locals are performed before making the</span></div>
+<div class="line"><a name="l03663"></a><span class="lineno"> 3663</span>       <span class="comment">// call.  If the call throws, then this is sufficient to</span></div>
+<div class="line"><a name="l03664"></a><span class="lineno"> 3664</span>       <span class="comment">// guarantee correctness as long as it doesn't also write to any</span></div>
+<div class="line"><a name="l03665"></a><span class="lineno"> 3665</span>       <span class="comment">// locals.</span></div>
+<div class="line"><a name="l03666"></a><span class="lineno"> 3666</span>       Builder.SetInsertPoint(&BB, BI);</div>
+<div class="line"><a name="l03667"></a><span class="lineno"> 3667</span>       emitReadHazard(Builder);</div>
+<div class="line"><a name="l03668"></a><span class="lineno"> 3668</span>     }</div>
+<div class="line"><a name="l03669"></a><span class="lineno"> 3669</span>   }</div>
+<div class="line"><a name="l03670"></a><span class="lineno"> 3670</span> }</div>
+<div class="line"><a name="l03671"></a><span class="lineno"> 3671</span> </div>
+<div class="line"><a name="l03672"></a><span class="lineno"><a class="code" href="CGObjCMac_8cpp.html#ae8359d606c697fa55c74695c2b1ace91"> 3672</a></span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="CGObjCMac_8cpp.html#ae8359d606c697fa55c74695c2b1ace91">addIfPresent</a>(<a class="code" href="classllvm_1_1DenseSet.html">llvm::DenseSet<llvm::Value*></a> &<a class="code" href="AnalysisBasedWarnings_8cpp.html#a33dc45a03958a0bf07b5da2dec4db648">S</a>, <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *V) {</div>
+<div class="line"><a name="l03673"></a><span class="lineno"> 3673</span>   <span class="keywordflow">if</span> (V) S.insert(V);</div>
+<div class="line"><a name="l03674"></a><span class="lineno"> 3674</span> }</div>
+<div class="line"><a name="l03675"></a><span class="lineno"> 3675</span> </div>
+<div class="line"><a name="l03676"></a><span class="lineno"> 3676</span> <span class="keywordtype">void</span> FragileHazards::collectLocals() {</div>
+<div class="line"><a name="l03677"></a><span class="lineno"> 3677</span>   <span class="comment">// Compute a set of allocas to ignore.</span></div>
+<div class="line"><a name="l03678"></a><span class="lineno"> 3678</span>   <a class="code" href="classllvm_1_1DenseSet.html">llvm::DenseSet<llvm::Value*></a> AllocasToIgnore;</div>
+<div class="line"><a name="l03679"></a><span class="lineno"> 3679</span>   <a class="code" href="CGObjCMac_8cpp.html#ae8359d606c697fa55c74695c2b1ace91">addIfPresent</a>(AllocasToIgnore, CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a1eb2b28a846f4bcb0c7db1f39813d1af">ReturnValue</a>);</div>
+<div class="line"><a name="l03680"></a><span class="lineno"> 3680</span>   <a class="code" href="CGObjCMac_8cpp.html#ae8359d606c697fa55c74695c2b1ace91">addIfPresent</a>(AllocasToIgnore, CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a502f8729f31601e16df454b5d19d24c6" title="i32s containing the indexes of the cleanup destinations.">NormalCleanupDest</a>);</div>
+<div class="line"><a name="l03681"></a><span class="lineno"> 3681</span> </div>
+<div class="line"><a name="l03682"></a><span class="lineno"> 3682</span>   <span class="comment">// Collect all the allocas currently in the function.  This is</span></div>
+<div class="line"><a name="l03683"></a><span class="lineno"> 3683</span>   <span class="comment">// probably way too aggressive.</span></div>
+<div class="line"><a name="l03684"></a><span class="lineno"> 3684</span>   llvm::BasicBlock &Entry = CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#ade1be93e4c11e1945ef1c0d8bbc61ff8">CurFn</a>->getEntryBlock();</div>
+<div class="line"><a name="l03685"></a><span class="lineno"> 3685</span>   <span class="keywordflow">for</span> (llvm::BasicBlock::iterator</div>
+<div class="line"><a name="l03686"></a><span class="lineno"> 3686</span>          I = Entry.begin(), E = Entry.end(); I != E; ++I)</div>
+<div class="line"><a name="l03687"></a><span class="lineno"> 3687</span>     <span class="keywordflow">if</span> (isa<llvm::AllocaInst>(*I) && !AllocasToIgnore.count(&*I))</div>
+<div class="line"><a name="l03688"></a><span class="lineno"> 3688</span>       Locals.push_back(&*I);</div>
+<div class="line"><a name="l03689"></a><span class="lineno"> 3689</span> }</div>
+<div class="line"><a name="l03690"></a><span class="lineno"> 3690</span> </div>
+<div class="line"><a name="l03691"></a><span class="lineno"> 3691</span> llvm::FunctionType *FragileHazards::GetAsmFnType() {</div>
+<div class="line"><a name="l03692"></a><span class="lineno"> 3692</span>   <a class="code" href="classllvm_1_1SmallVector.html">SmallVector<llvm::Type *, 16></a> tys(Locals.size());</div>
+<div class="line"><a name="l03693"></a><span class="lineno"> 3693</span>   <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> i = 0, e = Locals.size(); i != e; ++i)</div>
+<div class="line"><a name="l03694"></a><span class="lineno"> 3694</span>     tys[i] = Locals[i]->getType();</div>
+<div class="line"><a name="l03695"></a><span class="lineno"> 3695</span>   <span class="keywordflow">return</span> llvm::FunctionType::get(CGF.<a class="code" href="structclang_1_1CodeGen_1_1CodeGenTypeCache.html#ad2e842be873196b0fab39b1479223209" title="void">VoidTy</a>, tys, <span class="keyword">false</span>);</div>
+<div class="line"><a name="l03696"></a><span class="lineno"> 3696</span> }</div>
+<div class="line"><a name="l03697"></a><span class="lineno"> 3697</span> </div>
+<div class="line"><a name="l03698"></a><span class="lineno"> 3698</span> <span class="comment">/*</span></div>
+<div class="line"><a name="l03699"></a><span class="lineno"> 3699</span> <span class="comment"></span></div>
+<div class="line"><a name="l03700"></a><span class="lineno"> 3700</span> <span class="comment">  Objective-C setjmp-longjmp (sjlj) Exception Handling</span></div>
+<div class="line"><a name="l03701"></a><span class="lineno"> 3701</span> <span class="comment">  --</span></div>
+<div class="line"><a name="l03702"></a><span class="lineno"> 3702</span> <span class="comment"></span></div>
+<div class="line"><a name="l03703"></a><span class="lineno"> 3703</span> <span class="comment">  A catch buffer is a setjmp buffer plus:</span></div>
+<div class="line"><a name="l03704"></a><span class="lineno"> 3704</span> <span class="comment">    - a pointer to the exception that was caught</span></div>
+<div class="line"><a name="l03705"></a><span class="lineno"> 3705</span> <span class="comment">    - a pointer to the previous exception data buffer</span></div>
+<div class="line"><a name="l03706"></a><span class="lineno"> 3706</span> <span class="comment">    - two pointers of reserved storage</span></div>
+<div class="line"><a name="l03707"></a><span class="lineno"> 3707</span> <span class="comment">  Therefore catch buffers form a stack, with a pointer to the top</span></div>
+<div class="line"><a name="l03708"></a><span class="lineno"> 3708</span> <span class="comment">  of the stack kept in thread-local storage.</span></div>
+<div class="line"><a name="l03709"></a><span class="lineno"> 3709</span> <span class="comment"></span></div>
+<div class="line"><a name="l03710"></a><span class="lineno"> 3710</span> <span class="comment">  objc_exception_try_enter pushes a catch buffer onto the EH stack.</span></div>
+<div class="line"><a name="l03711"></a><span class="lineno"> 3711</span> <span class="comment">  objc_exception_try_exit pops the given catch buffer, which is</span></div>
+<div class="line"><a name="l03712"></a><span class="lineno"> 3712</span> <span class="comment">    required to be the top of the EH stack.</span></div>
+<div class="line"><a name="l03713"></a><span class="lineno"> 3713</span> <span class="comment">  objc_exception_throw pops the top of the EH stack, writes the</span></div>
+<div class="line"><a name="l03714"></a><span class="lineno"> 3714</span> <span class="comment">    thrown exception into the appropriate field, and longjmps</span></div>
+<div class="line"><a name="l03715"></a><span class="lineno"> 3715</span> <span class="comment">    to the setjmp buffer.  It crashes the process (with a printf</span></div>
+<div class="line"><a name="l03716"></a><span class="lineno"> 3716</span> <span class="comment">    and an abort()) if there are no catch buffers on the stack.</span></div>
+<div class="line"><a name="l03717"></a><span class="lineno"> 3717</span> <span class="comment">  objc_exception_extract just reads the exception pointer out of the</span></div>
+<div class="line"><a name="l03718"></a><span class="lineno"> 3718</span> <span class="comment">    catch buffer.</span></div>
+<div class="line"><a name="l03719"></a><span class="lineno"> 3719</span> <span class="comment"></span></div>
+<div class="line"><a name="l03720"></a><span class="lineno"> 3720</span> <span class="comment">  There's no reason an implementation couldn't use a light-weight</span></div>
+<div class="line"><a name="l03721"></a><span class="lineno"> 3721</span> <span class="comment">  setjmp here --- something like __builtin_setjmp, but API-compatible</span></div>
+<div class="line"><a name="l03722"></a><span class="lineno"> 3722</span> <span class="comment">  with the heavyweight setjmp.  This will be more important if we ever</span></div>
+<div class="line"><a name="l03723"></a><span class="lineno"> 3723</span> <span class="comment">  want to implement correct ObjC/C++ exception interactions for the</span></div>
+<div class="line"><a name="l03724"></a><span class="lineno"> 3724</span> <span class="comment">  fragile ABI.</span></div>
+<div class="line"><a name="l03725"></a><span class="lineno"> 3725</span> <span class="comment"></span></div>
+<div class="line"><a name="l03726"></a><span class="lineno"> 3726</span> <span class="comment">  Note that for this use of setjmp/longjmp to be correct, we may need</span></div>
+<div class="line"><a name="l03727"></a><span class="lineno"> 3727</span> <span class="comment">  to mark some local variables volatile: if a non-volatile local</span></div>
+<div class="line"><a name="l03728"></a><span class="lineno"> 3728</span> <span class="comment">  variable is modified between the setjmp and the longjmp, it has</span></div>
+<div class="line"><a name="l03729"></a><span class="lineno"> 3729</span> <span class="comment">  indeterminate value.  For the purposes of LLVM IR, it may be</span></div>
+<div class="line"><a name="l03730"></a><span class="lineno"> 3730</span> <span class="comment">  sufficient to make loads and stores within the @try (to variables</span></div>
+<div class="line"><a name="l03731"></a><span class="lineno"> 3731</span> <span class="comment">  declared outside the @try) volatile.  This is necessary for</span></div>
+<div class="line"><a name="l03732"></a><span class="lineno"> 3732</span> <span class="comment">  optimized correctness, but is not currently being done; this is</span></div>
+<div class="line"><a name="l03733"></a><span class="lineno"> 3733</span> <span class="comment">  being tracked as rdar://problem/8160285</span></div>
+<div class="line"><a name="l03734"></a><span class="lineno"> 3734</span> <span class="comment"></span></div>
+<div class="line"><a name="l03735"></a><span class="lineno"> 3735</span> <span class="comment">  The basic framework for a @try-catch-finally is as follows:</span></div>
+<div class="line"><a name="l03736"></a><span class="lineno"> 3736</span> <span class="comment">  {</span></div>
+<div class="line"><a name="l03737"></a><span class="lineno"> 3737</span> <span class="comment">  objc_exception_data d;</span></div>
+<div class="line"><a name="l03738"></a><span class="lineno"> 3738</span> <span class="comment">  id _rethrow = null;</span></div>
+<div class="line"><a name="l03739"></a><span class="lineno"> 3739</span> <span class="comment">  bool _call_try_exit = true;</span></div>
+<div class="line"><a name="l03740"></a><span class="lineno"> 3740</span> <span class="comment"></span></div>
+<div class="line"><a name="l03741"></a><span class="lineno"> 3741</span> <span class="comment">  objc_exception_try_enter(&d);</span></div>
+<div class="line"><a name="l03742"></a><span class="lineno"> 3742</span> <span class="comment">  if (!setjmp(d.jmp_buf)) {</span></div>
+<div class="line"><a name="l03743"></a><span class="lineno"> 3743</span> <span class="comment">  ... try body ...</span></div>
+<div class="line"><a name="l03744"></a><span class="lineno"> 3744</span> <span class="comment">  } else {</span></div>
+<div class="line"><a name="l03745"></a><span class="lineno"> 3745</span> <span class="comment">  // exception path</span></div>
+<div class="line"><a name="l03746"></a><span class="lineno"> 3746</span> <span class="comment">  id _caught = objc_exception_extract(&d);</span></div>
+<div class="line"><a name="l03747"></a><span class="lineno"> 3747</span> <span class="comment"></span></div>
+<div class="line"><a name="l03748"></a><span class="lineno"> 3748</span> <span class="comment">  // enter new try scope for handlers</span></div>
+<div class="line"><a name="l03749"></a><span class="lineno"> 3749</span> <span class="comment">  if (!setjmp(d.jmp_buf)) {</span></div>
+<div class="line"><a name="l03750"></a><span class="lineno"> 3750</span> <span class="comment">  ... match exception and execute catch blocks ...</span></div>
+<div class="line"><a name="l03751"></a><span class="lineno"> 3751</span> <span class="comment"></span></div>
+<div class="line"><a name="l03752"></a><span class="lineno"> 3752</span> <span class="comment">  // fell off end, rethrow.</span></div>
+<div class="line"><a name="l03753"></a><span class="lineno"> 3753</span> <span class="comment">  _rethrow = _caught;</span></div>
+<div class="line"><a name="l03754"></a><span class="lineno"> 3754</span> <span class="comment">  ... jump-through-finally to finally_rethrow ...</span></div>
+<div class="line"><a name="l03755"></a><span class="lineno"> 3755</span> <span class="comment">  } else {</span></div>
+<div class="line"><a name="l03756"></a><span class="lineno"> 3756</span> <span class="comment">  // exception in catch block</span></div>
+<div class="line"><a name="l03757"></a><span class="lineno"> 3757</span> <span class="comment">  _rethrow = objc_exception_extract(&d);</span></div>
+<div class="line"><a name="l03758"></a><span class="lineno"> 3758</span> <span class="comment">  _call_try_exit = false;</span></div>
+<div class="line"><a name="l03759"></a><span class="lineno"> 3759</span> <span class="comment">  ... jump-through-finally to finally_rethrow ...</span></div>
+<div class="line"><a name="l03760"></a><span class="lineno"> 3760</span> <span class="comment">  }</span></div>
+<div class="line"><a name="l03761"></a><span class="lineno"> 3761</span> <span class="comment">  }</span></div>
+<div class="line"><a name="l03762"></a><span class="lineno"> 3762</span> <span class="comment">  ... jump-through-finally to finally_end ...</span></div>
+<div class="line"><a name="l03763"></a><span class="lineno"> 3763</span> <span class="comment"></span></div>
+<div class="line"><a name="l03764"></a><span class="lineno"> 3764</span> <span class="comment">  finally:</span></div>
+<div class="line"><a name="l03765"></a><span class="lineno"> 3765</span> <span class="comment">  if (_call_try_exit)</span></div>
+<div class="line"><a name="l03766"></a><span class="lineno"> 3766</span> <span class="comment">  objc_exception_try_exit(&d);</span></div>
+<div class="line"><a name="l03767"></a><span class="lineno"> 3767</span> <span class="comment"></span></div>
+<div class="line"><a name="l03768"></a><span class="lineno"> 3768</span> <span class="comment">  ... finally block ....</span></div>
+<div class="line"><a name="l03769"></a><span class="lineno"> 3769</span> <span class="comment">  ... dispatch to finally destination ...</span></div>
+<div class="line"><a name="l03770"></a><span class="lineno"> 3770</span> <span class="comment"></span></div>
+<div class="line"><a name="l03771"></a><span class="lineno"> 3771</span> <span class="comment">  finally_rethrow:</span></div>
+<div class="line"><a name="l03772"></a><span class="lineno"> 3772</span> <span class="comment">  objc_exception_throw(_rethrow);</span></div>
+<div class="line"><a name="l03773"></a><span class="lineno"> 3773</span> <span class="comment"></span></div>
+<div class="line"><a name="l03774"></a><span class="lineno"> 3774</span> <span class="comment">  finally_end:</span></div>
+<div class="line"><a name="l03775"></a><span class="lineno"> 3775</span> <span class="comment">  }</span></div>
+<div class="line"><a name="l03776"></a><span class="lineno"> 3776</span> <span class="comment"></span></div>
+<div class="line"><a name="l03777"></a><span class="lineno"> 3777</span> <span class="comment">  This framework differs slightly from the one gcc uses, in that gcc</span></div>
+<div class="line"><a name="l03778"></a><span class="lineno"> 3778</span> <span class="comment">  uses _rethrow to determine if objc_exception_try_exit should be called</span></div>
+<div class="line"><a name="l03779"></a><span class="lineno"> 3779</span> <span class="comment">  and if the object should be rethrown. This breaks in the face of</span></div>
+<div class="line"><a name="l03780"></a><span class="lineno"> 3780</span> <span class="comment">  throwing nil and introduces unnecessary branches.</span></div>
+<div class="line"><a name="l03781"></a><span class="lineno"> 3781</span> <span class="comment"></span></div>
+<div class="line"><a name="l03782"></a><span class="lineno"> 3782</span> <span class="comment">  We specialize this framework for a few particular circumstances:</span></div>
+<div class="line"><a name="l03783"></a><span class="lineno"> 3783</span> <span class="comment"></span></div>
+<div class="line"><a name="l03784"></a><span class="lineno"> 3784</span> <span class="comment">  - If there are no catch blocks, then we avoid emitting the second</span></div>
+<div class="line"><a name="l03785"></a><span class="lineno"> 3785</span> <span class="comment">  exception handling context.</span></div>
+<div class="line"><a name="l03786"></a><span class="lineno"> 3786</span> <span class="comment"></span></div>
+<div class="line"><a name="l03787"></a><span class="lineno"> 3787</span> <span class="comment">  - If there is a catch-all catch block (i.e. @catch(...) or @catch(id</span></div>
+<div class="line"><a name="l03788"></a><span class="lineno"> 3788</span> <span class="comment">  e)) we avoid emitting the code to rethrow an uncaught exception.</span></div>
+<div class="line"><a name="l03789"></a><span class="lineno"> 3789</span> <span class="comment"></span></div>
+<div class="line"><a name="l03790"></a><span class="lineno"> 3790</span> <span class="comment">  - FIXME: If there is no @finally block we can do a few more</span></div>
+<div class="line"><a name="l03791"></a><span class="lineno"> 3791</span> <span class="comment">  simplifications.</span></div>
+<div class="line"><a name="l03792"></a><span class="lineno"> 3792</span> <span class="comment"></span></div>
+<div class="line"><a name="l03793"></a><span class="lineno"> 3793</span> <span class="comment">  Rethrows and Jumps-Through-Finally</span></div>
+<div class="line"><a name="l03794"></a><span class="lineno"> 3794</span> <span class="comment">  --</span></div>
+<div class="line"><a name="l03795"></a><span class="lineno"> 3795</span> <span class="comment"></span></div>
+<div class="line"><a name="l03796"></a><span class="lineno"> 3796</span> <span class="comment">  '@throw;' is supported by pushing the currently-caught exception</span></div>
+<div class="line"><a name="l03797"></a><span class="lineno"> 3797</span> <span class="comment">  onto ObjCEHStack while the @catch blocks are emitted.</span></div>
+<div class="line"><a name="l03798"></a><span class="lineno"> 3798</span> <span class="comment"></span></div>
+<div class="line"><a name="l03799"></a><span class="lineno"> 3799</span> <span class="comment">  Branches through the @finally block are handled with an ordinary</span></div>
+<div class="line"><a name="l03800"></a><span class="lineno"> 3800</span> <span class="comment">  normal cleanup.  We do not register an EH cleanup; fragile-ABI ObjC</span></div>
+<div class="line"><a name="l03801"></a><span class="lineno"> 3801</span> <span class="comment">  exceptions are not compatible with C++ exceptions, and this is</span></div>
+<div class="line"><a name="l03802"></a><span class="lineno"> 3802</span> <span class="comment">  hardly the only place where this will go wrong.</span></div>
+<div class="line"><a name="l03803"></a><span class="lineno"> 3803</span> <span class="comment"></span></div>
+<div class="line"><a name="l03804"></a><span class="lineno"> 3804</span> <span class="comment">  @synchronized(expr) { stmt; } is emitted as if it were:</span></div>
+<div class="line"><a name="l03805"></a><span class="lineno"> 3805</span> <span class="comment">    id synch_value = expr;</span></div>
+<div class="line"><a name="l03806"></a><span class="lineno"> 3806</span> <span class="comment">    objc_sync_enter(synch_value);</span></div>
+<div class="line"><a name="l03807"></a><span class="lineno"> 3807</span> <span class="comment">    @try { stmt; } @finally { objc_sync_exit(synch_value); }</span></div>
+<div class="line"><a name="l03808"></a><span class="lineno"> 3808</span> <span class="comment">*/</span></div>
+<div class="line"><a name="l03809"></a><span class="lineno"> 3809</span> </div>
+<div class="line"><a name="l03810"></a><span class="lineno"> 3810</span> <span class="keywordtype">void</span> CGObjCMac::EmitTryOrSynchronizedStmt(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGen::CodeGenFunction</a> &CGF,</div>
+<div class="line"><a name="l03811"></a><span class="lineno"> 3811</span>                                           <span class="keyword">const</span> <a class="code" href="classclang_1_1Stmt.html">Stmt</a> &<a class="code" href="AnalysisBasedWarnings_8cpp.html#a33dc45a03958a0bf07b5da2dec4db648">S</a>) {</div>
+<div class="line"><a name="l03812"></a><span class="lineno"> 3812</span>   <span class="keywordtype">bool</span> isTry = isa<ObjCAtTryStmt>(<a class="code" href="AnalysisBasedWarnings_8cpp.html#a33dc45a03958a0bf07b5da2dec4db648">S</a>);</div>
+<div class="line"><a name="l03813"></a><span class="lineno"> 3813</span> </div>
+<div class="line"><a name="l03814"></a><span class="lineno"> 3814</span>   <span class="comment">// A destination for the fall-through edges of the catch handlers to</span></div>
+<div class="line"><a name="l03815"></a><span class="lineno"> 3815</span>   <span class="comment">// jump to.</span></div>
+<div class="line"><a name="l03816"></a><span class="lineno"> 3816</span>   <a class="code" href="structclang_1_1CodeGen_1_1CodeGenFunction_1_1JumpDest.html">CodeGenFunction::JumpDest</a> FinallyEnd =</div>
+<div class="line"><a name="l03817"></a><span class="lineno"> 3817</span>     CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a0e99acb67867ef0ac1b5e8d3b1e18fee">getJumpDestInCurrentScope</a>(<span class="stringliteral">"finally.end"</span>);</div>
+<div class="line"><a name="l03818"></a><span class="lineno"> 3818</span> </div>
+<div class="line"><a name="l03819"></a><span class="lineno"> 3819</span>   <span class="comment">// A destination for the rethrow edge of the catch handlers to jump</span></div>
+<div class="line"><a name="l03820"></a><span class="lineno"> 3820</span>   <span class="comment">// to.</span></div>
+<div class="line"><a name="l03821"></a><span class="lineno"> 3821</span>   <a class="code" href="structclang_1_1CodeGen_1_1CodeGenFunction_1_1JumpDest.html">CodeGenFunction::JumpDest</a> FinallyRethrow =</div>
+<div class="line"><a name="l03822"></a><span class="lineno"> 3822</span>     CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a0e99acb67867ef0ac1b5e8d3b1e18fee">getJumpDestInCurrentScope</a>(<span class="stringliteral">"finally.rethrow"</span>);</div>
+<div class="line"><a name="l03823"></a><span class="lineno"> 3823</span> </div>
+<div class="line"><a name="l03824"></a><span class="lineno"> 3824</span>   <span class="comment">// For @synchronized, call objc_sync_enter(sync.expr). The</span></div>
+<div class="line"><a name="l03825"></a><span class="lineno"> 3825</span>   <span class="comment">// evaluation of the expression must occur before we enter the</span></div>
+<div class="line"><a name="l03826"></a><span class="lineno"> 3826</span>   <span class="comment">// @synchronized.  We can't avoid a temp here because we need the</span></div>
+<div class="line"><a name="l03827"></a><span class="lineno"> 3827</span>   <span class="comment">// value to be preserved.  If the backend ever does liveness</span></div>
+<div class="line"><a name="l03828"></a><span class="lineno"> 3828</span>   <span class="comment">// correctly after setjmp, this will be unnecessary.</span></div>
+<div class="line"><a name="l03829"></a><span class="lineno"> 3829</span>   <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *SyncArgSlot = 0;</div>
+<div class="line"><a name="l03830"></a><span class="lineno"> 3830</span>   <span class="keywordflow">if</span> (!isTry) {</div>
+<div class="line"><a name="l03831"></a><span class="lineno"> 3831</span>     <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *SyncArg =</div>
+<div class="line"><a name="l03832"></a><span class="lineno"> 3832</span>       CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#ada2bbe60d33f290a0ef688d71c491ca8">EmitScalarExpr</a>(cast<ObjCAtSynchronizedStmt>(S).getSynchExpr());</div>
+<div class="line"><a name="l03833"></a><span class="lineno"> 3833</span>     SyncArg = CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a982c1e3091df3de75723921687460d3d">Builder</a>.CreateBitCast(SyncArg, ObjCTypes.ObjectPtrTy);</div>
+<div class="line"><a name="l03834"></a><span class="lineno"> 3834</span>     CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a76d925109b30811e708f705a63541075">EmitNounwindRuntimeCall</a>(ObjCTypes.getSyncEnterFn(), SyncArg);</div>
+<div class="line"><a name="l03835"></a><span class="lineno"> 3835</span> </div>
+<div class="line"><a name="l03836"></a><span class="lineno"> 3836</span>     SyncArgSlot = CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a1c72e741c84049695bde11b7df94c332">CreateTempAlloca</a>(SyncArg->getType(), <span class="stringliteral">"sync.arg"</span>);</div>
+<div class="line"><a name="l03837"></a><span class="lineno"> 3837</span>     CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a982c1e3091df3de75723921687460d3d">Builder</a>.CreateStore(SyncArg, SyncArgSlot);</div>
+<div class="line"><a name="l03838"></a><span class="lineno"> 3838</span>   }</div>
+<div class="line"><a name="l03839"></a><span class="lineno"> 3839</span> </div>
+<div class="line"><a name="l03840"></a><span class="lineno"> 3840</span>   <span class="comment">// Allocate memory for the setjmp buffer.  This needs to be kept</span></div>
+<div class="line"><a name="l03841"></a><span class="lineno"> 3841</span>   <span class="comment">// live throughout the try and catch blocks.</span></div>
+<div class="line"><a name="l03842"></a><span class="lineno"> 3842</span>   <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *ExceptionData = CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a1c72e741c84049695bde11b7df94c332">CreateTempAlloca</a>(ObjCTypes.ExceptionDataTy,</div>
+<div class="line"><a name="l03843"></a><span class="lineno"> 3843</span>                                                     <span class="stringliteral">"exceptiondata.ptr"</span>);</div>
+<div class="line"><a name="l03844"></a><span class="lineno"> 3844</span> </div>
+<div class="line"><a name="l03845"></a><span class="lineno"> 3845</span>   <span class="comment">// Create the fragile hazards.  Note that this will not capture any</span></div>
+<div class="line"><a name="l03846"></a><span class="lineno"> 3846</span>   <span class="comment">// of the allocas required for exception processing, but will</span></div>
+<div class="line"><a name="l03847"></a><span class="lineno"> 3847</span>   <span class="comment">// capture the current basic block (which extends all the way to the</span></div>
+<div class="line"><a name="l03848"></a><span class="lineno"> 3848</span>   <span class="comment">// setjmp call) as "before the @try".</span></div>
+<div class="line"><a name="l03849"></a><span class="lineno"> 3849</span>   FragileHazards Hazards(CGF);</div>
+<div class="line"><a name="l03850"></a><span class="lineno"> 3850</span> </div>
+<div class="line"><a name="l03851"></a><span class="lineno"> 3851</span>   <span class="comment">// Create a flag indicating whether the cleanup needs to call</span></div>
+<div class="line"><a name="l03852"></a><span class="lineno"> 3852</span>   <span class="comment">// objc_exception_try_exit.  This is true except when</span></div>
+<div class="line"><a name="l03853"></a><span class="lineno"> 3853</span>   <span class="comment">//   - no catches match and we're branching through the cleanup</span></div>
+<div class="line"><a name="l03854"></a><span class="lineno"> 3854</span>   <span class="comment">//     just to rethrow the exception, or</span></div>
+<div class="line"><a name="l03855"></a><span class="lineno"> 3855</span>   <span class="comment">//   - a catch matched and we're falling out of the catch handler.</span></div>
+<div class="line"><a name="l03856"></a><span class="lineno"> 3856</span>   <span class="comment">// The setjmp-safety rule here is that we should always store to this</span></div>
+<div class="line"><a name="l03857"></a><span class="lineno"> 3857</span>   <span class="comment">// variable in a place that dominates the branch through the cleanup</span></div>
+<div class="line"><a name="l03858"></a><span class="lineno"> 3858</span>   <span class="comment">// without passing through any setjmps.</span></div>
+<div class="line"><a name="l03859"></a><span class="lineno"> 3859</span>   <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *CallTryExitVar = CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a1c72e741c84049695bde11b7df94c332">CreateTempAlloca</a>(CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a982c1e3091df3de75723921687460d3d">Builder</a>.getInt1Ty(),</div>
+<div class="line"><a name="l03860"></a><span class="lineno"> 3860</span>                                                      <span class="stringliteral">"_call_try_exit"</span>);</div>
+<div class="line"><a name="l03861"></a><span class="lineno"> 3861</span> </div>
+<div class="line"><a name="l03862"></a><span class="lineno"> 3862</span>   <span class="comment">// A slot containing the exception to rethrow.  Only needed when we</span></div>
+<div class="line"><a name="l03863"></a><span class="lineno"> 3863</span>   <span class="comment">// have both a @catch and a @finally.</span></div>
+<div class="line"><a name="l03864"></a><span class="lineno"> 3864</span>   <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *PropagatingExnVar = 0;</div>
+<div class="line"><a name="l03865"></a><span class="lineno"> 3865</span> </div>
+<div class="line"><a name="l03866"></a><span class="lineno"> 3866</span>   <span class="comment">// Push a normal cleanup to leave the try scope.</span></div>
+<div class="line"><a name="l03867"></a><span class="lineno"> 3867</span>   CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a9b8530f063bc2736b570c0b56a705d37">EHStack</a>.pushCleanup<PerformFragileFinally>(<a class="code" href="namespaceclang_1_1CodeGen.html#a2186970022771224a80dc9baa7d8ba6fa142bdd64990b3ca421f185b630db66c8">NormalAndEHCleanup</a>, &<a class="code" href="AnalysisBasedWarnings_8cpp.html#a33dc45a03958a0bf07b5da2dec4db648">S</a>,</div>
+<div class="line"><a name="l03868"></a><span class="lineno"> 3868</span>                                                  SyncArgSlot,</div>
+<div class="line"><a name="l03869"></a><span class="lineno"> 3869</span>                                                  CallTryExitVar,</div>
+<div class="line"><a name="l03870"></a><span class="lineno"> 3870</span>                                                  ExceptionData,</div>
+<div class="line"><a name="l03871"></a><span class="lineno"> 3871</span>                                                  &ObjCTypes);</div>
+<div class="line"><a name="l03872"></a><span class="lineno"> 3872</span> </div>
+<div class="line"><a name="l03873"></a><span class="lineno"> 3873</span>   <span class="comment">// Enter a try block:</span></div>
+<div class="line"><a name="l03874"></a><span class="lineno"> 3874</span>   <span class="comment">//  - Call objc_exception_try_enter to push ExceptionData on top of</span></div>
+<div class="line"><a name="l03875"></a><span class="lineno"> 3875</span>   <span class="comment">//    the EH stack.</span></div>
+<div class="line"><a name="l03876"></a><span class="lineno"> 3876</span>   CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a76d925109b30811e708f705a63541075">EmitNounwindRuntimeCall</a>(ObjCTypes.getExceptionTryEnterFn(), ExceptionData);</div>
+<div class="line"><a name="l03877"></a><span class="lineno"> 3877</span> </div>
+<div class="line"><a name="l03878"></a><span class="lineno"> 3878</span>   <span class="comment">//  - Call setjmp on the exception data buffer.</span></div>
+<div class="line"><a name="l03879"></a><span class="lineno"> 3879</span>   llvm::Constant *Zero = llvm::ConstantInt::get(CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a982c1e3091df3de75723921687460d3d">Builder</a>.getInt32Ty(), 0);</div>
+<div class="line"><a name="l03880"></a><span class="lineno"> 3880</span>   <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *GEPIndexes[] = { Zero, Zero, Zero };</div>
+<div class="line"><a name="l03881"></a><span class="lineno"> 3881</span>   <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *SetJmpBuffer =</div>
+<div class="line"><a name="l03882"></a><span class="lineno"> 3882</span>     CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a982c1e3091df3de75723921687460d3d">Builder</a>.CreateGEP(ExceptionData, GEPIndexes, <span class="stringliteral">"setjmp_buffer"</span>);</div>
+<div class="line"><a name="l03883"></a><span class="lineno"> 3883</span>   llvm::CallInst *SetJmpResult =</div>
+<div class="line"><a name="l03884"></a><span class="lineno"> 3884</span>     CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a76d925109b30811e708f705a63541075">EmitNounwindRuntimeCall</a>(ObjCTypes.getSetJmpFn(), SetJmpBuffer, <span class="stringliteral">"setjmp_result"</span>);</div>
+<div class="line"><a name="l03885"></a><span class="lineno"> 3885</span>   SetJmpResult->setCanReturnTwice();</div>
+<div class="line"><a name="l03886"></a><span class="lineno"> 3886</span> </div>
+<div class="line"><a name="l03887"></a><span class="lineno"> 3887</span>   <span class="comment">// If setjmp returned 0, enter the protected block; otherwise,</span></div>
+<div class="line"><a name="l03888"></a><span class="lineno"> 3888</span>   <span class="comment">// branch to the handler.</span></div>
+<div class="line"><a name="l03889"></a><span class="lineno"> 3889</span>   llvm::BasicBlock *TryBlock = CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a9d442ba1c516ff4a2fbf1e118359cb52" title="createBasicBlock - Create an LLVM basic block.">createBasicBlock</a>(<span class="stringliteral">"try"</span>);</div>
+<div class="line"><a name="l03890"></a><span class="lineno"> 3890</span>   llvm::BasicBlock *TryHandler = CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a9d442ba1c516ff4a2fbf1e118359cb52" title="createBasicBlock - Create an LLVM basic block.">createBasicBlock</a>(<span class="stringliteral">"try.handler"</span>);</div>
+<div class="line"><a name="l03891"></a><span class="lineno"> 3891</span>   <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *DidCatch =</div>
+<div class="line"><a name="l03892"></a><span class="lineno"> 3892</span>     CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a982c1e3091df3de75723921687460d3d">Builder</a>.CreateIsNotNull(SetJmpResult, <span class="stringliteral">"did_catch_exception"</span>);</div>
+<div class="line"><a name="l03893"></a><span class="lineno"> 3893</span>   CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a982c1e3091df3de75723921687460d3d">Builder</a>.CreateCondBr(DidCatch, TryHandler, TryBlock);</div>
+<div class="line"><a name="l03894"></a><span class="lineno"> 3894</span> </div>
+<div class="line"><a name="l03895"></a><span class="lineno"> 3895</span>   <span class="comment">// Emit the protected block.</span></div>
+<div class="line"><a name="l03896"></a><span class="lineno"> 3896</span>   CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#afdec5412ab40bb1923c689fe093f8871">EmitBlock</a>(TryBlock);</div>
+<div class="line"><a name="l03897"></a><span class="lineno"> 3897</span>   CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a982c1e3091df3de75723921687460d3d">Builder</a>.CreateStore(CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a982c1e3091df3de75723921687460d3d">Builder</a>.getTrue(), CallTryExitVar);</div>
+<div class="line"><a name="l03898"></a><span class="lineno"> 3898</span>   CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#ab625dabfdcc8082335d64c4cbd009ef0">EmitStmt</a>(isTry ? cast<ObjCAtTryStmt>(S).getTryBody()</div>
+<div class="line"><a name="l03899"></a><span class="lineno"> 3899</span>                      : cast<ObjCAtSynchronizedStmt>(S).getSynchBody());</div>
+<div class="line"><a name="l03900"></a><span class="lineno"> 3900</span> </div>
+<div class="line"><a name="l03901"></a><span class="lineno"> 3901</span>   CGBuilderTy::InsertPoint TryFallthroughIP = CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a982c1e3091df3de75723921687460d3d">Builder</a>.saveAndClearIP();</div>
+<div class="line"><a name="l03902"></a><span class="lineno"> 3902</span> </div>
+<div class="line"><a name="l03903"></a><span class="lineno"> 3903</span>   <span class="comment">// Emit the exception handler block.</span></div>
+<div class="line"><a name="l03904"></a><span class="lineno"> 3904</span>   CGF.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#afdec5412ab40bb1923c689fe093f8871">EmitBlock</a>(TryHandler);</div>
+<div class="line"><a name="l03905"></a><span class="lineno"> 3905</span> </div>
+<div class="line"><a name="l03906"></a><span class="lineno"> 3906</span>   <span class="comment">// Don't optimize loads of the in-scope locals across this point.</span></div>
+<div class="line"><a name="l03907"></a><span class="lineno"> 3907</span>   Hazards.emitWriteHazard();</div>
+<div class="line"><a name="l03908"></a><span class="lineno"> 3908</span> </div>
+<div class="line"><a name="l03909"></a><span class="lineno"> 3909</span>   <span class="comment">// For a @synchronized (or a @try with no catches), just branch</span></div>
+<div class="line"><a name="l03910"></a><span class="lineno"> 3910</span>   <span class="comment">// through the cleanup to the rethrow block.</span></div>
+<div class="line"><a name="l03911"></a><span class="lineno"> 3911</span>   <span class="keywordflow">if</span> (!isTry || !cast<ObjCAtTryStmt>(S).getNumCatchStmts()) {</div>
+<div class="line"><a name="l03912"></a><span class="lineno"> 3912</span>     <span class="comment">// Tell the cleanup not to re-pop the exit.</span></div>
+<div class="line"><a name="l03913"></