[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/CodeGenModule_8cpp_source.html
URL: http://llvm.org/viewvc/llvm-project/www-releases/trunk/3.5.1/tools/clang/docs/doxygen/html/CodeGenModule_8cpp_source.html?rev=225843&view=auto
==============================================================================
--- www-releases/trunk/3.5.1/tools/clang/docs/doxygen/html/CodeGenModule_8cpp_source.html (added)
+++ www-releases/trunk/3.5.1/tools/clang/docs/doxygen/html/CodeGenModule_8cpp_source.html Tue Jan 13 16:55:20 2015
@@ -0,0 +1,3281 @@
+<!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: CodeGenModule.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">CodeGenModule.cpp</div>  </div>
+</div><!--header-->
+<div class="contents">
+<a href="CodeGenModule_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">//===--- CodeGenModule.cpp - Emit LLVM Code from ASTs for a Module --------===//</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 coordinates the per-module state used while generating code.</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="CodeGenModule_8h.html">CodeGenModule.h</a>"</span></div>
+<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="preprocessor">#include "<a class="code" href="CGCUDARuntime_8h.html">CGCUDARuntime.h</a>"</span></div>
+<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="preprocessor">#include "<a class="code" href="CGCXXABI_8h.html">CGCXXABI.h</a>"</span></div>
+<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="preprocessor">#include "<a class="code" href="CGCall_8h.html">CGCall.h</a>"</span></div>
+<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="preprocessor">#include "<a class="code" href="CGDebugInfo_8h.html">CGDebugInfo.h</a>"</span></div>
+<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="preprocessor">#include "<a class="code" href="CGObjCRuntime_8h.html">CGObjCRuntime.h</a>"</span></div>
+<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="preprocessor">#include "<a class="code" href="CGOpenCLRuntime_8h.html">CGOpenCLRuntime.h</a>"</span></div>
+<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="preprocessor">#include "<a class="code" href="CodeGenFunction_8h.html">CodeGenFunction.h</a>"</span></div>
+<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="preprocessor">#include "<a class="code" href="CodeGenTBAA_8h.html">CodeGenTBAA.h</a>"</span></div>
+<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="preprocessor">#include "<a class="code" href="include_2clang_2Basic_2TargetInfo_8h.html" title="Defines the clang::TargetInfo interface.">TargetInfo.h</a>"</span></div>
+<div class="line"><a name="l00024"></a><span class="lineno">   24</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="l00025"></a><span class="lineno">   25</span> <span class="preprocessor">#include "<a class="code" href="CharUnits_8h.html">clang/AST/CharUnits.h</a>"</span></div>
+<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="preprocessor">#include "<a class="code" href="DeclCXX_8h.html" title="Defines the C++ Decl subclasses, other than those for templates (found in DeclTemplate.h) and friends (in DeclFriend.h).">clang/AST/DeclCXX.h</a>"</span></div>
+<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="preprocessor">#include "<a class="code" href="DeclObjC_8h.html">clang/AST/DeclObjC.h</a>"</span></div>
+<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="preprocessor">#include "<a class="code" href="DeclTemplate_8h.html" title="Defines the C++ template declaration subclasses.">clang/AST/DeclTemplate.h</a>"</span></div>
+<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="preprocessor">#include "<a class="code" href="Mangle_8h.html">clang/AST/Mangle.h</a>"</span></div>
+<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="preprocessor">#include "<a class="code" href="RecordLayout_8h.html">clang/AST/RecordLayout.h</a>"</span></div>
+<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="preprocessor">#include "<a class="code" href="RecursiveASTVisitor_8h.html">clang/AST/RecursiveASTVisitor.h</a>"</span></div>
+<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="preprocessor">#include "<a class="code" href="Builtins_8h.html" title="Defines enum values for all the target-independent builtin functions.">clang/Basic/Builtins.h</a>"</span></div>
+<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="preprocessor">#include "<a class="code" href="CharInfo_8h.html">clang/Basic/CharInfo.h</a>"</span></div>
+<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="preprocessor">#include "<a class="code" href="Diagnostic_8h.html" title="Defines the Diagnostic-related interfaces.">clang/Basic/Diagnostic.h</a>"</span></div>
+<div class="line"><a name="l00035"></a><span class="lineno">   35</span> <span class="preprocessor">#include "<a class="code" href="Basic_2Module_8h.html" title="Defines the clang::Module class, which describes a module in the source code.">clang/Basic/Module.h</a>"</span></div>
+<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="preprocessor">#include "<a class="code" href="SourceManager_8h.html" title="Defines the SourceManager interface.">clang/Basic/SourceManager.h</a>"</span></div>
+<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor">#include "<a class="code" href="include_2clang_2Basic_2TargetInfo_8h.html" title="Defines the clang::TargetInfo interface.">clang/Basic/TargetInfo.h</a>"</span></div>
+<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="preprocessor">#include "<a class="code" href="Version_8h.html" title="Defines version macros and version-related utility functions for Clang.">clang/Basic/Version.h</a>"</span></div>
+<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="preprocessor">#include "<a class="code" href="CodeGenOptions_8h.html">clang/Frontend/CodeGenOptions.h</a>"</span></div>
+<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="preprocessor">#include "<a class="code" href="SemaDiagnostic_8h.html">clang/Sema/SemaDiagnostic.h</a>"</span></div>
+<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="preprocessor">#include "llvm/ADT/APSInt.h"</span></div>
+<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="preprocessor">#include "llvm/ADT/Triple.h"</span></div>
+<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="preprocessor">#include "llvm/IR/CallingConv.h"</span></div>
+<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="preprocessor">#include "llvm/IR/DataLayout.h"</span></div>
+<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="preprocessor">#include "llvm/IR/Intrinsics.h"</span></div>
+<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="preprocessor">#include "llvm/IR/LLVMContext.h"</span></div>
+<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="preprocessor">#include "llvm/IR/Module.h"</span></div>
+<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="preprocessor">#include "llvm/Support/CallSite.h"</span></div>
+<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="preprocessor">#include "llvm/Support/ConvertUTF.h"</span></div>
+<div class="line"><a name="l00050"></a><span class="lineno">   50</span> <span class="preprocessor">#include "llvm/Support/ErrorHandling.h"</span></div>
+<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="preprocessor">#include "llvm/Target/Mangler.h"</span></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">using namespace </span>clang;</div>
+<div class="line"><a name="l00054"></a><span class="lineno">   54</span> <span class="keyword">using namespace </span>CodeGen;</div>
+<div class="line"><a name="l00055"></a><span class="lineno">   55</span> </div>
+<div class="line"><a name="l00056"></a><span class="lineno"><a class="code" href="CodeGenModule_8cpp.html#a5d4bd8280873f6da00e1ba854290301a">   56</a></span> <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> <a class="code" href="CodeGenModule_8cpp.html#a5d4bd8280873f6da00e1ba854290301a">AnnotationSection</a>[] = <span class="stringliteral">"llvm.metadata"</span>;</div>
+<div class="line"><a name="l00057"></a><span class="lineno">   57</span> </div>
+<div class="line"><a name="l00058"></a><span class="lineno"><a class="code" href="CodeGenModule_8cpp.html#a24e66ca07034259d8bd300623d2b8c04">   58</a></span> <span class="keyword">static</span> <a class="code" href="classclang_1_1CodeGen_1_1CGCXXABI.html" title="Implements C++ ABI-specific code generation functions.">CGCXXABI</a> &<a class="code" href="CodeGenModule_8cpp.html#a24e66ca07034259d8bd300623d2b8c04">createCXXABI</a>(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html">CodeGenModule</a> &CGM) {</div>
+<div class="line"><a name="l00059"></a><span class="lineno">   59</span>   <span class="keywordflow">switch</span> (CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a0256b70c5f3ad3812e767f745196fa3f">getTarget</a>().<a class="code" href="classclang_1_1TargetInfo.html#a775f59ee5320dd4b20abde5d724a43f3" title="Get the C++ ABI currently in use.">getCXXABI</a>().<a class="code" href="classclang_1_1TargetCXXABI.html#aaca8cbc064362d76b5800e4b5ffcacee">getKind</a>()) {</div>
+<div class="line"><a name="l00060"></a><span class="lineno">   60</span>   <span class="keywordflow">case</span> <a class="code" href="classclang_1_1TargetCXXABI.html#ace0aba180cab1d18b093a540a11ca4eba66e5cb24d5e363a525df122b32d30f20">TargetCXXABI::GenericAArch64</a>:</div>
+<div class="line"><a name="l00061"></a><span class="lineno">   61</span>   <span class="keywordflow">case</span> <a class="code" href="classclang_1_1TargetCXXABI.html#ace0aba180cab1d18b093a540a11ca4eba6e0bdc095e9710eff7deafab930f12d7">TargetCXXABI::GenericARM</a>:</div>
+<div class="line"><a name="l00062"></a><span class="lineno">   62</span>   <span class="keywordflow">case</span> <a class="code" href="classclang_1_1TargetCXXABI.html#ace0aba180cab1d18b093a540a11ca4eba8df39aa651b6d2f9c126895f11ddd3de">TargetCXXABI::iOS</a>:</div>
+<div class="line"><a name="l00063"></a><span class="lineno">   63</span>   <span class="keywordflow">case</span> <a class="code" href="classclang_1_1TargetCXXABI.html#ace0aba180cab1d18b093a540a11ca4ebacf21c8838eb41d517c3f27c3c9c66ea9">TargetCXXABI::GenericItanium</a>:</div>
+<div class="line"><a name="l00064"></a><span class="lineno">   64</span>     <span class="keywordflow">return</span> *<a class="code" href="namespaceclang_1_1CodeGen.html#affd5e26bdb431e095a4cf72929b0161d" title="Creates an Itanium-family ABI.">CreateItaniumCXXABI</a>(CGM);</div>
+<div class="line"><a name="l00065"></a><span class="lineno">   65</span>   <span class="keywordflow">case</span> <a class="code" href="classclang_1_1TargetCXXABI.html#ace0aba180cab1d18b093a540a11ca4eba9832ee860c2b6d4050727dda508e5234">TargetCXXABI::Microsoft</a>:</div>
+<div class="line"><a name="l00066"></a><span class="lineno">   66</span>     <span class="keywordflow">return</span> *<a class="code" href="namespaceclang_1_1CodeGen.html#aefad9804fcec4bf28c8c010a38840db7" title="Creates a Microsoft-family ABI.">CreateMicrosoftCXXABI</a>(CGM);</div>
+<div class="line"><a name="l00067"></a><span class="lineno">   67</span>   }</div>
+<div class="line"><a name="l00068"></a><span class="lineno">   68</span> </div>
+<div class="line"><a name="l00069"></a><span class="lineno">   69</span>   llvm_unreachable(<span class="stringliteral">"invalid C++ ABI kind"</span>);</div>
+<div class="line"><a name="l00070"></a><span class="lineno">   70</span> }</div>
+<div class="line"><a name="l00071"></a><span class="lineno">   71</span> </div>
+<div class="line"><a name="l00072"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a190bc6c67b3eaafcaeb299851f4cffe6">   72</a></span> CodeGenModule::CodeGenModule(<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> &C, <span class="keyword">const</span> <a class="code" href="classclang_1_1CodeGenOptions.html">CodeGenOptions</a> &CGO,</div>
+<div class="line"><a name="l00073"></a><span class="lineno">   73</span>                              llvm::Module &M, <span class="keyword">const</span> llvm::DataLayout &TD,</div>
+<div class="line"><a name="l00074"></a><span class="lineno">   74</span>                              <a class="code" href="classclang_1_1DiagnosticsEngine.html" title="Concrete class used by the front-end to report problems and issues.">DiagnosticsEngine</a> &diags)</div>
+<div class="line"><a name="l00075"></a><span class="lineno">   75</span>     : <a class="code" href="ASTMatchFinder_8cpp.html#a779280869b9fac47a9bc391e7709171f">Context</a>(C), LangOpts(C.getLangOpts()), CodeGenOpts(CGO), TheModule(M),</div>
+<div class="line"><a name="l00076"></a><span class="lineno">   76</span>       Diags(diags), TheDataLayout(TD), Target(C.getTargetInfo()),</div>
+<div class="line"><a name="l00077"></a><span class="lineno">   77</span>       ABI(<a class="code" href="CodeGenModule_8cpp.html#a24e66ca07034259d8bd300623d2b8c04">createCXXABI</a>(*this)), VMContext(M.getContext()), TBAA(0),</div>
+<div class="line"><a name="l00078"></a><span class="lineno">   78</span>       TheTargetCodeGenInfo(0), Types(*this), VTables(*this), <a class="code" href="classclang_1_1ObjCRuntime.html" title="The basic abstraction for the target Objective-C runtime.">ObjCRuntime</a>(0),</div>
+<div class="line"><a name="l00079"></a><span class="lineno">   79</span>       OpenCLRuntime(0), CUDARuntime(0), DebugInfo(0), ARCData(0),</div>
+<div class="line"><a name="l00080"></a><span class="lineno">   80</span>       NoObjCARCExceptionsMetadata(0), RRData(0), CFConstantStringClassRef(0),</div>
+<div class="line"><a name="l00081"></a><span class="lineno">   81</span>       ConstantStringClassRef(0), NSConstantStringType(0),</div>
+<div class="line"><a name="l00082"></a><span class="lineno">   82</span>       NSConcreteGlobalBlock(0), NSConcreteStackBlock(0), BlockObjectAssign(0),</div>
+<div class="line"><a name="l00083"></a><span class="lineno">   83</span>       BlockObjectDispose(0), BlockDescriptorType(0), GenericBlockLiteralType(0),</div>
+<div class="line"><a name="l00084"></a><span class="lineno">   84</span>       LifetimeStartFn(0), LifetimeEndFn(0),</div>
+<div class="line"><a name="l00085"></a><span class="lineno">   85</span>       SanitizerBlacklist(</div>
+<div class="line"><a name="l00086"></a><span class="lineno">   86</span>           llvm::SpecialCaseList::createOrDie(CGO.SanitizerBlacklistFile)),</div>
+<div class="line"><a name="l00087"></a><span class="lineno">   87</span>       SanOpts(SanitizerBlacklist->isIn(M) ? <a class="code" href="structclang_1_1SanitizerOptions.html">SanitizerOptions</a>::Disabled</div>
+<div class="line"><a name="l00088"></a><span class="lineno">   88</span>                                           : LangOpts.Sanitize) {</div>
+<div class="line"><a name="l00089"></a><span class="lineno">   89</span> </div>
+<div class="line"><a name="l00090"></a><span class="lineno">   90</span>   <span class="comment">// Initialize the type cache.</span></div>
+<div class="line"><a name="l00091"></a><span class="lineno">   91</span>   llvm::LLVMContext &LLVMContext = M.getContext();</div>
+<div class="line"><a name="l00092"></a><span class="lineno">   92</span>   <a class="code" href="structclang_1_1CodeGen_1_1CodeGenTypeCache.html#ad2e842be873196b0fab39b1479223209" title="void">VoidTy</a> = llvm::Type::getVoidTy(LLVMContext);</div>
+<div class="line"><a name="l00093"></a><span class="lineno">   93</span>   <a class="code" href="structclang_1_1CodeGen_1_1CodeGenTypeCache.html#a329e1a1ea4a981895ad14b70611e163b" title="i8, i16, i32, and i64">Int8Ty</a> = llvm::Type::getInt8Ty(LLVMContext);</div>
+<div class="line"><a name="l00094"></a><span class="lineno">   94</span>   <a class="code" href="structclang_1_1CodeGen_1_1CodeGenTypeCache.html#aa5aa690f05d199fd0cbc08bae591354e">Int16Ty</a> = llvm::Type::getInt16Ty(LLVMContext);</div>
+<div class="line"><a name="l00095"></a><span class="lineno">   95</span>   <a class="code" href="structclang_1_1CodeGen_1_1CodeGenTypeCache.html#a9b70851ea2ff034ca9a5443ce213a81c">Int32Ty</a> = llvm::Type::getInt32Ty(LLVMContext);</div>
+<div class="line"><a name="l00096"></a><span class="lineno">   96</span>   <a class="code" href="structclang_1_1CodeGen_1_1CodeGenTypeCache.html#a06114f0bc840b61c0b2c60bb284e46fb">Int64Ty</a> = llvm::Type::getInt64Ty(LLVMContext);</div>
+<div class="line"><a name="l00097"></a><span class="lineno">   97</span>   <a class="code" href="structclang_1_1CodeGen_1_1CodeGenTypeCache.html#a29b015bcf473b0f87ef7f22e948d0e2e" title="float, double">FloatTy</a> = llvm::Type::getFloatTy(LLVMContext);</div>
+<div class="line"><a name="l00098"></a><span class="lineno">   98</span>   <a class="code" href="structclang_1_1CodeGen_1_1CodeGenTypeCache.html#a3e0fb92809c4d44df65f05b0d0c6cbef">DoubleTy</a> = llvm::Type::getDoubleTy(LLVMContext);</div>
+<div class="line"><a name="l00099"></a><span class="lineno">   99</span>   <a class="code" href="structclang_1_1CodeGen_1_1CodeGenTypeCache.html#a410493ce9d596d51ba4979d315e35e51" title="The width of a pointer into the generic address space.">PointerWidthInBits</a> = C.<a class="code" href="classclang_1_1ASTContext.html#a1f86013f3f8d32eec61a74c21d26b2a4">getTargetInfo</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="l00100"></a><span class="lineno">  100</span>   <a class="code" href="structclang_1_1CodeGen_1_1CodeGenTypeCache.html#abae4acd5bac9daf9bffb74d6ef40d4a6">PointerAlignInBytes</a> =</div>
+<div class="line"><a name="l00101"></a><span class="lineno">  101</span>   C.<a class="code" href="classclang_1_1ASTContext.html#a5d5f812ba1100ca9ef1c1a812b2f5a24" title="Convert a size in bits to a size in characters.">toCharUnitsFromBits</a>(C.<a class="code" href="classclang_1_1ASTContext.html#a1f86013f3f8d32eec61a74c21d26b2a4">getTargetInfo</a>().<a class="code" href="classclang_1_1TargetInfo.html#acf5517fa75c8217085536ea21d68d4e9">getPointerAlign</a>(0)).getQuantity();</div>
+<div class="line"><a name="l00102"></a><span class="lineno">  102</span>   <a class="code" href="structclang_1_1CodeGen_1_1CodeGenTypeCache.html#aa0d14821b268a724ecc3a9add2f290e6" title="int">IntTy</a> = llvm::IntegerType::get(LLVMContext, C.<a class="code" href="classclang_1_1ASTContext.html#a1f86013f3f8d32eec61a74c21d26b2a4">getTargetInfo</a>().<a class="code" href="classclang_1_1TargetInfo.html#a72ec6d14f6a06a1524488c8f2e604546">getIntWidth</a>());</div>
+<div class="line"><a name="l00103"></a><span class="lineno">  103</span>   <a class="code" href="structclang_1_1CodeGen_1_1CodeGenTypeCache.html#a9cce048bcd175a468127b4eb05c050d2">IntPtrTy</a> = llvm::IntegerType::get(LLVMContext, <a class="code" href="structclang_1_1CodeGen_1_1CodeGenTypeCache.html#a410493ce9d596d51ba4979d315e35e51" title="The width of a pointer into the generic address space.">PointerWidthInBits</a>);</div>
+<div class="line"><a name="l00104"></a><span class="lineno">  104</span>   <a class="code" href="structclang_1_1CodeGen_1_1CodeGenTypeCache.html#ac3ec7e3938996c5354dbee1a103ed4d2">Int8PtrTy</a> = <a class="code" href="structclang_1_1CodeGen_1_1CodeGenTypeCache.html#a329e1a1ea4a981895ad14b70611e163b" title="i8, i16, i32, and i64">Int8Ty</a>->getPointerTo(0);</div>
+<div class="line"><a name="l00105"></a><span class="lineno">  105</span>   <a class="code" href="structclang_1_1CodeGen_1_1CodeGenTypeCache.html#a0b64321ef8f3e8f6c70c218bfb4203ce">Int8PtrPtrTy</a> = <a class="code" href="structclang_1_1CodeGen_1_1CodeGenTypeCache.html#ac3ec7e3938996c5354dbee1a103ed4d2">Int8PtrTy</a>->getPointerTo(0);</div>
+<div class="line"><a name="l00106"></a><span class="lineno">  106</span> </div>
+<div class="line"><a name="l00107"></a><span class="lineno">  107</span>   <a class="code" href="structclang_1_1CodeGen_1_1CodeGenTypeCache.html#a03809f622c42b0694045cbec6df9b92e">RuntimeCC</a> = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ac098ad9054632d2c6c4bf4c243cb04b1">getTargetCodeGenInfo</a>().<a class="code" href="classclang_1_1TargetCodeGenInfo.html#a3d67ec94e6808363935670f13f03f16b" title="getABIInfo() - Returns ABI info helper for the target.">getABIInfo</a>().<a class="code" href="classclang_1_1ABIInfo.html#a89c71379d1fa133f01da9daae5ab678d">getRuntimeCC</a>();</div>
+<div class="line"><a name="l00108"></a><span class="lineno">  108</span> </div>
+<div class="line"><a name="l00109"></a><span class="lineno">  109</span>   <span class="keywordflow">if</span> (LangOpts.ObjC1)</div>
+<div class="line"><a name="l00110"></a><span class="lineno">  110</span>     createObjCRuntime();</div>
+<div class="line"><a name="l00111"></a><span class="lineno">  111</span>   <span class="keywordflow">if</span> (LangOpts.OpenCL)</div>
+<div class="line"><a name="l00112"></a><span class="lineno">  112</span>     createOpenCLRuntime();</div>
+<div class="line"><a name="l00113"></a><span class="lineno">  113</span>   <span class="keywordflow">if</span> (LangOpts.CUDA)</div>
+<div class="line"><a name="l00114"></a><span class="lineno">  114</span>     createCUDARuntime();</div>
+<div class="line"><a name="l00115"></a><span class="lineno">  115</span> </div>
+<div class="line"><a name="l00116"></a><span class="lineno">  116</span>   <span class="comment">// Enable TBAA unless it's suppressed. ThreadSanitizer needs TBAA even at O0.</span></div>
+<div class="line"><a name="l00117"></a><span class="lineno">  117</span>   <span class="keywordflow">if</span> (SanOpts.Thread ||</div>
+<div class="line"><a name="l00118"></a><span class="lineno">  118</span>       (!CodeGenOpts.RelaxedAliasing && CodeGenOpts.OptimizationLevel > 0))</div>
+<div class="line"><a name="l00119"></a><span class="lineno">  119</span>     TBAA = <span class="keyword">new</span> <a class="code" href="classclang_1_1CodeGen_1_1CodeGenTBAA.html">CodeGenTBAA</a>(Context, VMContext, CodeGenOpts, <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#abae1594027ce284ce5b7f06c66d24ea7">getLangOpts</a>(),</div>
+<div class="line"><a name="l00120"></a><span class="lineno">  120</span>                            ABI.<a class="code" href="classclang_1_1CodeGen_1_1CGCXXABI.html#a81a311530d5d52bac2afe472091b3e6b" title="Gets the mangle context.">getMangleContext</a>());</div>
+<div class="line"><a name="l00121"></a><span class="lineno">  121</span> </div>
+<div class="line"><a name="l00122"></a><span class="lineno">  122</span>   <span class="comment">// If debug info or coverage generation is enabled, create the CGDebugInfo</span></div>
+<div class="line"><a name="l00123"></a><span class="lineno">  123</span>   <span class="comment">// object.</span></div>
+<div class="line"><a name="l00124"></a><span class="lineno">  124</span>   <span class="keywordflow">if</span> (CodeGenOpts.getDebugInfo() != <a class="code" href="classclang_1_1CodeGenOptions.html#ab49a2a2a0a68577a07a9c0b730fb3cf6a92d75b29d3c936f01974b7b291b59fad">CodeGenOptions::NoDebugInfo</a> ||</div>
+<div class="line"><a name="l00125"></a><span class="lineno">  125</span>       CodeGenOpts.EmitGcovArcs ||</div>
+<div class="line"><a name="l00126"></a><span class="lineno">  126</span>       CodeGenOpts.EmitGcovNotes)</div>
+<div class="line"><a name="l00127"></a><span class="lineno">  127</span>     DebugInfo = <span class="keyword">new</span> <a class="code" href="classclang_1_1CodeGen_1_1CGDebugInfo.html">CGDebugInfo</a>(*<span class="keyword">this</span>);</div>
+<div class="line"><a name="l00128"></a><span class="lineno">  128</span> </div>
+<div class="line"><a name="l00129"></a><span class="lineno">  129</span>   Block.GlobalUniqueCount = 0;</div>
+<div class="line"><a name="l00130"></a><span class="lineno">  130</span> </div>
+<div class="line"><a name="l00131"></a><span class="lineno">  131</span>   <span class="keywordflow">if</span> (C.<a class="code" href="classclang_1_1ASTContext.html#a3faa7b5a5e8d1637c53dea680acca0ff">getLangOpts</a>().ObjCAutoRefCount)</div>
+<div class="line"><a name="l00132"></a><span class="lineno">  132</span>     ARCData = <span class="keyword">new</span> <a class="code" href="structclang_1_1CodeGen_1_1ARCEntrypoints.html">ARCEntrypoints</a>();</div>
+<div class="line"><a name="l00133"></a><span class="lineno">  133</span>   RRData = <span class="keyword">new</span> <a class="code" href="structclang_1_1CodeGen_1_1RREntrypoints.html">RREntrypoints</a>();</div>
+<div class="line"><a name="l00134"></a><span class="lineno">  134</span> }</div>
+<div class="line"><a name="l00135"></a><span class="lineno">  135</span> </div>
+<div class="line"><a name="l00136"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a971112295dd1b7a537a235bfb66807a4">  136</a></span> <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a971112295dd1b7a537a235bfb66807a4">CodeGenModule::~CodeGenModule</a>() {</div>
+<div class="line"><a name="l00137"></a><span class="lineno">  137</span>   <span class="keyword">delete</span> <a class="code" href="classclang_1_1ObjCRuntime.html" title="The basic abstraction for the target Objective-C runtime.">ObjCRuntime</a>;</div>
+<div class="line"><a name="l00138"></a><span class="lineno">  138</span>   <span class="keyword">delete</span> OpenCLRuntime;</div>
+<div class="line"><a name="l00139"></a><span class="lineno">  139</span>   <span class="keyword">delete</span> CUDARuntime;</div>
+<div class="line"><a name="l00140"></a><span class="lineno">  140</span>   <span class="keyword">delete</span> TheTargetCodeGenInfo;</div>
+<div class="line"><a name="l00141"></a><span class="lineno">  141</span>   <span class="keyword">delete</span> &ABI;</div>
+<div class="line"><a name="l00142"></a><span class="lineno">  142</span>   <span class="keyword">delete</span> TBAA;</div>
+<div class="line"><a name="l00143"></a><span class="lineno">  143</span>   <span class="keyword">delete</span> DebugInfo;</div>
+<div class="line"><a name="l00144"></a><span class="lineno">  144</span>   <span class="keyword">delete</span> ARCData;</div>
+<div class="line"><a name="l00145"></a><span class="lineno">  145</span>   <span class="keyword">delete</span> RRData;</div>
+<div class="line"><a name="l00146"></a><span class="lineno">  146</span> }</div>
+<div class="line"><a name="l00147"></a><span class="lineno">  147</span> </div>
+<div class="line"><a name="l00148"></a><span class="lineno">  148</span> <span class="keywordtype">void</span> CodeGenModule::createObjCRuntime() {</div>
+<div class="line"><a name="l00149"></a><span class="lineno">  149</span>   <span class="comment">// This is just isGNUFamily(), but we want to force implementors of</span></div>
+<div class="line"><a name="l00150"></a><span class="lineno">  150</span>   <span class="comment">// new ABIs to decide how best to do this.</span></div>
+<div class="line"><a name="l00151"></a><span class="lineno">  151</span>   <span class="keywordflow">switch</span> (LangOpts.<a class="code" href="classclang_1_1LangOptions.html#a34a8b84f730051971c84c36daa84dda7">ObjCRuntime</a>.<a class="code" href="classclang_1_1ObjCRuntime.html#a46efae9a73b620f46708e58fa01ffce5">getKind</a>()) {</div>
+<div class="line"><a name="l00152"></a><span class="lineno">  152</span>   <span class="keywordflow">case</span> <a class="code" href="classclang_1_1ObjCRuntime.html#af19fe070a7073df4ecc666b44137c4e5a5dfe8699581b92217d6597cb08f276b1" title="'gnustep' is the modern non-fragile GNUstep runtime.">ObjCRuntime::GNUstep</a>:</div>
+<div class="line"><a name="l00153"></a><span class="lineno">  153</span>   <span class="keywordflow">case</span> <a class="code" href="classclang_1_1ObjCRuntime.html#af19fe070a7073df4ecc666b44137c4e5ac1168dccf97ce5daa48810083475788e">ObjCRuntime::GCC</a>:</div>
+<div class="line"><a name="l00154"></a><span class="lineno">  154</span>   <span class="keywordflow">case</span> <a class="code" href="classclang_1_1ObjCRuntime.html#af19fe070a7073df4ecc666b44137c4e5aafc7b4e2467d7524e1c012dc5149cbfa" title="'objfw' is the Objective-C runtime included in ObjFW">ObjCRuntime::ObjFW</a>:</div>
+<div class="line"><a name="l00155"></a><span class="lineno">  155</span>     <a class="code" href="classclang_1_1ObjCRuntime.html" title="The basic abstraction for the target Objective-C runtime.">ObjCRuntime</a> = <a class="code" href="namespaceclang_1_1CodeGen.html#aa1cd18b8632357c67eef47b27b3d3ce4" title="Creates an instance of an Objective-C runtime class.">CreateGNUObjCRuntime</a>(*<span class="keyword">this</span>);</div>
+<div class="line"><a name="l00156"></a><span class="lineno">  156</span>     <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l00157"></a><span class="lineno">  157</span> </div>
+<div class="line"><a name="l00158"></a><span class="lineno">  158</span>   <span class="keywordflow">case</span> <a class="code" href="classclang_1_1ObjCRuntime.html#af19fe070a7073df4ecc666b44137c4e5a474ce19ff8ba88056218287c3366fcc6">ObjCRuntime::FragileMacOSX</a>:</div>
+<div class="line"><a name="l00159"></a><span class="lineno">  159</span>   <span class="keywordflow">case</span> <a class="code" href="classclang_1_1ObjCRuntime.html#af19fe070a7073df4ecc666b44137c4e5a46968d42f6c5fa744f330c91478611dc">ObjCRuntime::MacOSX</a>:</div>
+<div class="line"><a name="l00160"></a><span class="lineno">  160</span>   <span class="keywordflow">case</span> <a class="code" href="classclang_1_1ObjCRuntime.html#af19fe070a7073df4ecc666b44137c4e5ab49a7401e9237d39dd1a49ceefaad8d6">ObjCRuntime::iOS</a>:</div>
+<div class="line"><a name="l00161"></a><span class="lineno">  161</span>     <a class="code" href="classclang_1_1ObjCRuntime.html" title="The basic abstraction for the target Objective-C runtime.">ObjCRuntime</a> = <a class="code" href="namespaceclang_1_1CodeGen.html#aafc84f69c1d1f305773727f49e7abc9c">CreateMacObjCRuntime</a>(*<span class="keyword">this</span>);</div>
+<div class="line"><a name="l00162"></a><span class="lineno">  162</span>     <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l00163"></a><span class="lineno">  163</span>   }</div>
+<div class="line"><a name="l00164"></a><span class="lineno">  164</span>   llvm_unreachable(<span class="stringliteral">"bad runtime kind"</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> </div>
+<div class="line"><a name="l00167"></a><span class="lineno">  167</span> <span class="keywordtype">void</span> CodeGenModule::createOpenCLRuntime() {</div>
+<div class="line"><a name="l00168"></a><span class="lineno">  168</span>   OpenCLRuntime = <span class="keyword">new</span> <a class="code" href="classclang_1_1CodeGen_1_1CGOpenCLRuntime.html">CGOpenCLRuntime</a>(*<span class="keyword">this</span>);</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="keywordtype">void</span> CodeGenModule::createCUDARuntime() {</div>
+<div class="line"><a name="l00172"></a><span class="lineno">  172</span>   CUDARuntime = <a class="code" href="namespaceclang_1_1CodeGen.html#ae55bcc1605c98bf4609d14f43be083db" title="Creates an instance of a CUDA runtime class.">CreateNVCUDARuntime</a>(*<span class="keyword">this</span>);</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> </div>
+<div class="line"><a name="l00175"></a><span class="lineno">  175</span> <span class="keywordtype">void</span> CodeGenModule::applyReplacements() {</div>
+<div class="line"><a name="l00176"></a><span class="lineno">  176</span>   <span class="keywordflow">for</span> (ReplacementsTy::iterator I = Replacements.begin(),</div>
+<div class="line"><a name="l00177"></a><span class="lineno">  177</span>                                 E = Replacements.end();</div>
+<div class="line"><a name="l00178"></a><span class="lineno">  178</span>        I != E; ++I) {</div>
+<div class="line"><a name="l00179"></a><span class="lineno">  179</span>     StringRef MangledName = I->first();</div>
+<div class="line"><a name="l00180"></a><span class="lineno">  180</span>     llvm::Constant *Replacement = I->second;</div>
+<div class="line"><a name="l00181"></a><span class="lineno">  181</span>     llvm::GlobalValue *Entry = GetGlobalValue(MangledName);</div>
+<div class="line"><a name="l00182"></a><span class="lineno">  182</span>     <span class="keywordflow">if</span> (!Entry)</div>
+<div class="line"><a name="l00183"></a><span class="lineno">  183</span>       <span class="keywordflow">continue</span>;</div>
+<div class="line"><a name="l00184"></a><span class="lineno">  184</span>     llvm::Function *OldF = cast<llvm::Function>(Entry);</div>
+<div class="line"><a name="l00185"></a><span class="lineno">  185</span>     llvm::Function *NewF = dyn_cast<llvm::Function>(Replacement);</div>
+<div class="line"><a name="l00186"></a><span class="lineno">  186</span>     <span class="keywordflow">if</span> (!NewF) {</div>
+<div class="line"><a name="l00187"></a><span class="lineno">  187</span>       llvm::ConstantExpr *CE = cast<llvm::ConstantExpr>(Replacement);</div>
+<div class="line"><a name="l00188"></a><span class="lineno">  188</span>       assert(CE->getOpcode() == llvm::Instruction::BitCast ||</div>
+<div class="line"><a name="l00189"></a><span class="lineno">  189</span>              CE->getOpcode() == llvm::Instruction::GetElementPtr);</div>
+<div class="line"><a name="l00190"></a><span class="lineno">  190</span>       NewF = dyn_cast<llvm::Function>(CE->getOperand(0));</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> </div>
+<div class="line"><a name="l00193"></a><span class="lineno">  193</span>     <span class="comment">// Replace old with new, but keep the old order.</span></div>
+<div class="line"><a name="l00194"></a><span class="lineno">  194</span>     OldF->replaceAllUsesWith(Replacement);</div>
+<div class="line"><a name="l00195"></a><span class="lineno">  195</span>     <span class="keywordflow">if</span> (NewF) {</div>
+<div class="line"><a name="l00196"></a><span class="lineno">  196</span>       NewF->removeFromParent();</div>
+<div class="line"><a name="l00197"></a><span class="lineno">  197</span>       OldF->getParent()->getFunctionList().insertAfter(OldF, NewF);</div>
+<div class="line"><a name="l00198"></a><span class="lineno">  198</span>     }</div>
+<div class="line"><a name="l00199"></a><span class="lineno">  199</span>     OldF->eraseFromParent();</div>
+<div class="line"><a name="l00200"></a><span class="lineno">  200</span>   }</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="keywordtype">void</span> CodeGenModule::checkAliases() {</div>
+<div class="line"><a name="l00204"></a><span class="lineno">  204</span>   <span class="keywordtype">bool</span> <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a780cdd48671d865670b7c51536e9664d" title="Error - Emit a general error that something can't be done.">Error</a> = <span class="keyword">false</span>;</div>
+<div class="line"><a name="l00205"></a><span class="lineno">  205</span>   <span class="keywordflow">for</span> (std::vector<GlobalDecl>::iterator I = Aliases.begin(),</div>
+<div class="line"><a name="l00206"></a><span class="lineno">  206</span>          E = Aliases.end(); I != E; ++I) {</div>
+<div class="line"><a name="l00207"></a><span class="lineno">  207</span>     <span class="keyword">const</span> <a class="code" href="classclang_1_1GlobalDecl.html">GlobalDecl</a> &GD = *I;</div>
+<div class="line"><a name="l00208"></a><span class="lineno">  208</span>     <span class="keyword">const</span> <a class="code" href="classclang_1_1ValueDecl.html">ValueDecl</a> *D = cast<ValueDecl>(GD.<a class="code" href="classclang_1_1GlobalDecl.html#a3971ce53aef50b4c3d829615a5ecd0a0">getDecl</a>());</div>
+<div class="line"><a name="l00209"></a><span class="lineno">  209</span>     <span class="keyword">const</span> <a class="code" href="classclang_1_1AliasAttr.html">AliasAttr</a> *AA = D-><a class="code" href="classclang_1_1Decl.html#a6a041df02fad17a6fabe51af5de0ea3c">getAttr</a><<a class="code" href="classclang_1_1AliasAttr.html">AliasAttr</a>>();</div>
+<div class="line"><a name="l00210"></a><span class="lineno">  210</span>     StringRef MangledName = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ac2e5fda10002d34cd7f20fc0c2615a51">getMangledName</a>(GD);</div>
+<div class="line"><a name="l00211"></a><span class="lineno">  211</span>     llvm::GlobalValue *Entry = GetGlobalValue(MangledName);</div>
+<div class="line"><a name="l00212"></a><span class="lineno">  212</span>     llvm::GlobalAlias *Alias = cast<llvm::GlobalAlias>(Entry);</div>
+<div class="line"><a name="l00213"></a><span class="lineno">  213</span>     llvm::GlobalValue *GV = Alias->getAliasedGlobal();</div>
+<div class="line"><a name="l00214"></a><span class="lineno">  214</span>     <span class="keywordflow">if</span> (GV->isDeclaration()) {</div>
+<div class="line"><a name="l00215"></a><span class="lineno">  215</span>       Error = <span class="keyword">true</span>;</div>
+<div class="line"><a name="l00216"></a><span class="lineno">  216</span>       <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a0be90fe263387e16942ad91f70b6af26">getDiags</a>().<a class="code" href="classclang_1_1DiagnosticsEngine.html#a03686c59442babd725417ff740b397b4" title="Issue the message to the client.">Report</a>(AA->getLocation(), diag::err_alias_to_undefined);</div>
+<div class="line"><a name="l00217"></a><span class="lineno">  217</span>     } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!Alias->resolveAliasedGlobal(<span class="comment">/*stopOnWeak*/</span> <span class="keyword">false</span>)) {</div>
+<div class="line"><a name="l00218"></a><span class="lineno">  218</span>       Error = <span class="keyword">true</span>;</div>
+<div class="line"><a name="l00219"></a><span class="lineno">  219</span>       <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a0be90fe263387e16942ad91f70b6af26">getDiags</a>().<a class="code" href="classclang_1_1DiagnosticsEngine.html#a03686c59442babd725417ff740b397b4" title="Issue the message to the client.">Report</a>(AA->getLocation(), diag::err_cyclic_alias);</div>
+<div class="line"><a name="l00220"></a><span class="lineno">  220</span>     }</div>
+<div class="line"><a name="l00221"></a><span class="lineno">  221</span>   }</div>
+<div class="line"><a name="l00222"></a><span class="lineno">  222</span>   <span class="keywordflow">if</span> (!Error)</div>
+<div class="line"><a name="l00223"></a><span class="lineno">  223</span>     <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l00224"></a><span class="lineno">  224</span> </div>
+<div class="line"><a name="l00225"></a><span class="lineno">  225</span>   <span class="keywordflow">for</span> (std::vector<GlobalDecl>::iterator I = Aliases.begin(),</div>
+<div class="line"><a name="l00226"></a><span class="lineno">  226</span>          E = Aliases.end(); I != E; ++I) {</div>
+<div class="line"><a name="l00227"></a><span class="lineno">  227</span>     <span class="keyword">const</span> <a class="code" href="classclang_1_1GlobalDecl.html">GlobalDecl</a> &GD = *I;</div>
+<div class="line"><a name="l00228"></a><span class="lineno">  228</span>     StringRef MangledName = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ac2e5fda10002d34cd7f20fc0c2615a51">getMangledName</a>(GD);</div>
+<div class="line"><a name="l00229"></a><span class="lineno">  229</span>     llvm::GlobalValue *Entry = GetGlobalValue(MangledName);</div>
+<div class="line"><a name="l00230"></a><span class="lineno">  230</span>     llvm::GlobalAlias *Alias = cast<llvm::GlobalAlias>(Entry);</div>
+<div class="line"><a name="l00231"></a><span class="lineno">  231</span>     Alias->replaceAllUsesWith(llvm::UndefValue::get(Alias->getType()));</div>
+<div class="line"><a name="l00232"></a><span class="lineno">  232</span>     Alias->eraseFromParent();</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> }</div>
+<div class="line"><a name="l00235"></a><span class="lineno">  235</span> </div>
+<div class="line"><a name="l00236"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a612c31acb6f496c680d442877f5f1825">  236</a></span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a612c31acb6f496c680d442877f5f1825" title="Release - Finalize LLVM code generation.">CodeGenModule::Release</a>() {</div>
+<div class="line"><a name="l00237"></a><span class="lineno">  237</span>   EmitDeferred();</div>
+<div class="line"><a name="l00238"></a><span class="lineno">  238</span>   applyReplacements();</div>
+<div class="line"><a name="l00239"></a><span class="lineno">  239</span>   checkAliases();</div>
+<div class="line"><a name="l00240"></a><span class="lineno">  240</span>   EmitCXXGlobalInitFunc();</div>
+<div class="line"><a name="l00241"></a><span class="lineno">  241</span>   EmitCXXGlobalDtorFunc();</div>
+<div class="line"><a name="l00242"></a><span class="lineno">  242</span>   EmitCXXThreadLocalInitFunc();</div>
+<div class="line"><a name="l00243"></a><span class="lineno">  243</span>   <span class="keywordflow">if</span> (<a class="code" href="classclang_1_1ObjCRuntime.html" title="The basic abstraction for the target Objective-C runtime.">ObjCRuntime</a>)</div>
+<div class="line"><a name="l00244"></a><span class="lineno">  244</span>     <span class="keywordflow">if</span> (llvm::Function *ObjCInitFunction = <a class="code" href="classclang_1_1ObjCRuntime.html" title="The basic abstraction for the target Objective-C runtime.">ObjCRuntime</a>->ModuleInitFunction())</div>
+<div class="line"><a name="l00245"></a><span class="lineno">  245</span>       AddGlobalCtor(ObjCInitFunction);</div>
+<div class="line"><a name="l00246"></a><span class="lineno">  246</span>   EmitCtorList(GlobalCtors, <span class="stringliteral">"llvm.global_ctors"</span>);</div>
+<div class="line"><a name="l00247"></a><span class="lineno">  247</span>   EmitCtorList(GlobalDtors, <span class="stringliteral">"llvm.global_dtors"</span>);</div>
+<div class="line"><a name="l00248"></a><span class="lineno">  248</span>   <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a8dc9d9de9715c024eb9de12c97fd8d1d" title="Emit all the global annotations.">EmitGlobalAnnotations</a>();</div>
+<div class="line"><a name="l00249"></a><span class="lineno">  249</span>   EmitStaticExternCAliases();</div>
+<div class="line"><a name="l00250"></a><span class="lineno">  250</span>   EmitLLVMUsed();</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>   <span class="keywordflow">if</span> (CodeGenOpts.Autolink &&</div>
+<div class="line"><a name="l00253"></a><span class="lineno">  253</span>       (Context.<a class="code" href="classclang_1_1ASTContext.html#a3faa7b5a5e8d1637c53dea680acca0ff">getLangOpts</a>().Modules || !LinkerOptionsMetadata.empty())) {</div>
+<div class="line"><a name="l00254"></a><span class="lineno">  254</span>     EmitModuleLinkOptions();</div>
+<div class="line"><a name="l00255"></a><span class="lineno">  255</span>   }</div>
+<div class="line"><a name="l00256"></a><span class="lineno">  256</span>   <span class="keywordflow">if</span> (CodeGenOpts.DwarfVersion)</div>
+<div class="line"><a name="l00257"></a><span class="lineno">  257</span>     <span class="comment">// We actually want the latest version when there are conflicts.</span></div>
+<div class="line"><a name="l00258"></a><span class="lineno">  258</span>     <span class="comment">// We can change from Warning to Latest if such mode is supported.</span></div>
+<div class="line"><a name="l00259"></a><span class="lineno">  259</span>     <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a908409c9231b015784ca008fd6bcb961">getModule</a>().addModuleFlag(llvm::Module::Warning, <span class="stringliteral">"Dwarf Version"</span>,</div>
+<div class="line"><a name="l00260"></a><span class="lineno">  260</span>                               CodeGenOpts.DwarfVersion);</div>
+<div class="line"><a name="l00261"></a><span class="lineno">  261</span>   <span class="keywordflow">if</span> (DebugInfo)</div>
+<div class="line"><a name="l00262"></a><span class="lineno">  262</span>     <span class="comment">// We support a single version in the linked module: error out when</span></div>
+<div class="line"><a name="l00263"></a><span class="lineno">  263</span>     <span class="comment">// modules do not have the same version. We are going to implement dropping</span></div>
+<div class="line"><a name="l00264"></a><span class="lineno">  264</span>     <span class="comment">// debug info when the version number is not up-to-date. Once that is</span></div>
+<div class="line"><a name="l00265"></a><span class="lineno">  265</span>     <span class="comment">// done, the bitcode linker is not going to see modules with different</span></div>
+<div class="line"><a name="l00266"></a><span class="lineno">  266</span>     <span class="comment">// version numbers.</span></div>
+<div class="line"><a name="l00267"></a><span class="lineno">  267</span>     <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a908409c9231b015784ca008fd6bcb961">getModule</a>().addModuleFlag(llvm::Module::Error, <span class="stringliteral">"Debug Info Version"</span>,</div>
+<div class="line"><a name="l00268"></a><span class="lineno">  268</span>                               llvm::DEBUG_METADATA_VERSION);</div>
+<div class="line"><a name="l00269"></a><span class="lineno">  269</span> </div>
+<div class="line"><a name="l00270"></a><span class="lineno">  270</span>   SimplifyPersonality();</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>   <span class="keywordflow">if</span> (<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a054eb00391038519d37236032f1ebfe5">getCodeGenOpts</a>().EmitDeclMetadata)</div>
+<div class="line"><a name="l00273"></a><span class="lineno">  273</span>     EmitDeclMetadata();</div>
+<div class="line"><a name="l00274"></a><span class="lineno">  274</span> </div>
+<div class="line"><a name="l00275"></a><span class="lineno">  275</span>   <span class="keywordflow">if</span> (<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a054eb00391038519d37236032f1ebfe5">getCodeGenOpts</a>().EmitGcovArcs || <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a054eb00391038519d37236032f1ebfe5">getCodeGenOpts</a>().EmitGcovNotes)</div>
+<div class="line"><a name="l00276"></a><span class="lineno">  276</span>     EmitCoverageFile();</div>
+<div class="line"><a name="l00277"></a><span class="lineno">  277</span> </div>
+<div class="line"><a name="l00278"></a><span class="lineno">  278</span>   <span class="keywordflow">if</span> (DebugInfo)</div>
+<div class="line"><a name="l00279"></a><span class="lineno">  279</span>     DebugInfo-><a class="code" href="classclang_1_1CodeGen_1_1CGDebugInfo.html#aea05fdda78ec276032fb11cd8155b101">finalize</a>();</div>
+<div class="line"><a name="l00280"></a><span class="lineno">  280</span> </div>
+<div class="line"><a name="l00281"></a><span class="lineno">  281</span>   EmitVersionIdentMetadata();</div>
+<div class="line"><a name="l00282"></a><span class="lineno">  282</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"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a0585c5039e23c7e9aaf1851e1eb25f95">  284</a></span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a0585c5039e23c7e9aaf1851e1eb25f95">CodeGenModule::UpdateCompletedType</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1TagDecl.html" title="TagDecl - Represents the declaration of a struct/union/class/enum.">TagDecl</a> *TD) {</div>
+<div class="line"><a name="l00285"></a><span class="lineno">  285</span>   <span class="comment">// Make sure that this type is translated.</span></div>
+<div class="line"><a name="l00286"></a><span class="lineno">  286</span>   Types.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenTypes.html#aab1cc9a7994aff2bfbc3a79f6d47a7c7">UpdateCompletedType</a>(TD);</div>
+<div class="line"><a name="l00287"></a><span class="lineno">  287</span> }</div>
+<div class="line"><a name="l00288"></a><span class="lineno">  288</span> </div>
+<div class="line"><a name="l00289"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a21fb16d28b597ab139093fe506be8831">  289</a></span> llvm::MDNode *<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a21fb16d28b597ab139093fe506be8831">CodeGenModule::getTBAAInfo</a>(<a class="code" href="classclang_1_1QualType.html">QualType</a> QTy) {</div>
+<div class="line"><a name="l00290"></a><span class="lineno">  290</span>   <span class="keywordflow">if</span> (!TBAA)</div>
+<div class="line"><a name="l00291"></a><span class="lineno">  291</span>     <span class="keywordflow">return</span> 0;</div>
+<div class="line"><a name="l00292"></a><span class="lineno">  292</span>   <span class="keywordflow">return</span> TBAA-><a class="code" href="classclang_1_1CodeGen_1_1CodeGenTBAA.html#a2234363be9e9ff7292da575555b1d009">getTBAAInfo</a>(QTy);</div>
+<div class="line"><a name="l00293"></a><span class="lineno">  293</span> }</div>
+<div class="line"><a name="l00294"></a><span class="lineno">  294</span> </div>
+<div class="line"><a name="l00295"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a6fb7be3c2f4314bd1788fa9efae89e36">  295</a></span> llvm::MDNode *<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a6fb7be3c2f4314bd1788fa9efae89e36">CodeGenModule::getTBAAInfoForVTablePtr</a>() {</div>
+<div class="line"><a name="l00296"></a><span class="lineno">  296</span>   <span class="keywordflow">if</span> (!TBAA)</div>
+<div class="line"><a name="l00297"></a><span class="lineno">  297</span>     <span class="keywordflow">return</span> 0;</div>
+<div class="line"><a name="l00298"></a><span class="lineno">  298</span>   <span class="keywordflow">return</span> TBAA-><a class="code" href="classclang_1_1CodeGen_1_1CodeGenTBAA.html#a8f82b5b9013374a4c2c270030fed8082">getTBAAInfoForVTablePtr</a>();</div>
+<div class="line"><a name="l00299"></a><span class="lineno">  299</span> }</div>
+<div class="line"><a name="l00300"></a><span class="lineno">  300</span> </div>
+<div class="line"><a name="l00301"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a0eea8fb6e6dfc6ff935233f8ed0b0ad2">  301</a></span> llvm::MDNode *<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a0eea8fb6e6dfc6ff935233f8ed0b0ad2">CodeGenModule::getTBAAStructInfo</a>(<a class="code" href="classclang_1_1QualType.html">QualType</a> QTy) {</div>
+<div class="line"><a name="l00302"></a><span class="lineno">  302</span>   <span class="keywordflow">if</span> (!TBAA)</div>
+<div class="line"><a name="l00303"></a><span class="lineno">  303</span>     <span class="keywordflow">return</span> 0;</div>
+<div class="line"><a name="l00304"></a><span class="lineno">  304</span>   <span class="keywordflow">return</span> TBAA-><a class="code" href="classclang_1_1CodeGen_1_1CodeGenTBAA.html#ab822d180f4184e9525e7970c8649d7ed">getTBAAStructInfo</a>(QTy);</div>
+<div class="line"><a name="l00305"></a><span class="lineno">  305</span> }</div>
+<div class="line"><a name="l00306"></a><span class="lineno">  306</span> </div>
+<div class="line"><a name="l00307"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#aa2f12300c294cb570c7f23f8300ce7e9">  307</a></span> llvm::MDNode *<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#aa2f12300c294cb570c7f23f8300ce7e9" title="Return the MDNode in the type DAG for the given struct type.">CodeGenModule::getTBAAStructTypeInfo</a>(<a class="code" href="classclang_1_1QualType.html">QualType</a> QTy) {</div>
+<div class="line"><a name="l00308"></a><span class="lineno">  308</span>   <span class="keywordflow">if</span> (!TBAA)</div>
+<div class="line"><a name="l00309"></a><span class="lineno">  309</span>     <span class="keywordflow">return</span> 0;</div>
+<div class="line"><a name="l00310"></a><span class="lineno">  310</span>   <span class="keywordflow">return</span> TBAA-><a class="code" href="classclang_1_1CodeGen_1_1CodeGenTBAA.html#ad189481221d93f6ce2ac06a45bfa508f" title="Get the MDNode in the type DAG for given struct type QType.">getTBAAStructTypeInfo</a>(QTy);</div>
+<div class="line"><a name="l00311"></a><span class="lineno">  311</span> }</div>
+<div class="line"><a name="l00312"></a><span class="lineno">  312</span> </div>
+<div class="line"><a name="l00313"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#adb5007b71289aa05b79a05259b5c0364">  313</a></span> llvm::MDNode *<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#adb5007b71289aa05b79a05259b5c0364" title="Return the path-aware tag for given base type, access node and offset.">CodeGenModule::getTBAAStructTagInfo</a>(<a class="code" href="classclang_1_1QualType.html">QualType</a> BaseTy,</div>
+<div class="line"><a name="l00314"></a><span class="lineno">  314</span>                                                   llvm::MDNode *AccessN,</div>
+<div class="line"><a name="l00315"></a><span class="lineno">  315</span>                                                   uint64_t O) {</div>
+<div class="line"><a name="l00316"></a><span class="lineno">  316</span>   <span class="keywordflow">if</span> (!TBAA)</div>
+<div class="line"><a name="l00317"></a><span class="lineno">  317</span>     <span class="keywordflow">return</span> 0;</div>
+<div class="line"><a name="l00318"></a><span class="lineno">  318</span>   <span class="keywordflow">return</span> TBAA-><a class="code" href="classclang_1_1CodeGen_1_1CodeGenTBAA.html#a0bf6389ad1286b88263371816bf9536c" title="Return a TBAA tag node for both scalar TBAA and struct-path aware TBAA.">getTBAAStructTagInfo</a>(BaseTy, AccessN, O);</div>
+<div class="line"><a name="l00319"></a><span class="lineno">  319</span> }</div>
+<div class="line"><a name="l00320"></a><span class="lineno">  320</span> <span class="comment"></span></div>
+<div class="line"><a name="l00321"></a><span class="lineno">  321</span> <span class="comment">/// Decorate the instruction with a TBAA tag. For both scalar TBAA</span></div>
+<div class="line"><a name="l00322"></a><span class="lineno">  322</span> <span class="comment">/// and struct-path aware TBAA, the tag has the same format:</span></div>
+<div class="line"><a name="l00323"></a><span class="lineno">  323</span> <span class="comment">/// base type, access type and offset.</span></div>
+<div class="line"><a name="l00324"></a><span class="lineno">  324</span> <span class="comment">/// When ConvertTypeToTag is true, we create a tag based on the scalar type.</span></div>
+<div class="line"><a name="l00325"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a2bc7c2c5b15bdefaf8aba49a85c626a9">  325</a></span> <span class="comment"></span><span class="keywordtype">void</span> <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a2bc7c2c5b15bdefaf8aba49a85c626a9">CodeGenModule::DecorateInstruction</a>(llvm::Instruction *Inst,</div>
+<div class="line"><a name="l00326"></a><span class="lineno">  326</span>                                         llvm::MDNode *TBAAInfo,</div>
+<div class="line"><a name="l00327"></a><span class="lineno">  327</span>                                         <span class="keywordtype">bool</span> ConvertTypeToTag) {</div>
+<div class="line"><a name="l00328"></a><span class="lineno">  328</span>   <span class="keywordflow">if</span> (ConvertTypeToTag && TBAA)</div>
+<div class="line"><a name="l00329"></a><span class="lineno">  329</span>     Inst->setMetadata(llvm::LLVMContext::MD_tbaa,</div>
+<div class="line"><a name="l00330"></a><span class="lineno">  330</span>                       TBAA-><a class="code" href="classclang_1_1CodeGen_1_1CodeGenTBAA.html#abc2337c0d2717dbc19ee07190c983f71" title="Get the scalar tag MDNode for a given scalar type.">getTBAAScalarTagInfo</a>(TBAAInfo));</div>
+<div class="line"><a name="l00331"></a><span class="lineno">  331</span>   <span class="keywordflow">else</span></div>
+<div class="line"><a name="l00332"></a><span class="lineno">  332</span>     Inst->setMetadata(llvm::LLVMContext::MD_tbaa, TBAAInfo);</div>
+<div class="line"><a name="l00333"></a><span class="lineno">  333</span> }</div>
+<div class="line"><a name="l00334"></a><span class="lineno">  334</span> </div>
+<div class="line"><a name="l00335"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a780cdd48671d865670b7c51536e9664d">  335</a></span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a780cdd48671d865670b7c51536e9664d" title="Error - Emit a general error that something can't be done.">CodeGenModule::Error</a>(<a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> <a class="code" href="namespaceclang_1_1ast__matchers.html#af2a0068a0d7c4962e52a7a70967fa5df" title="Matches TypeLocs for which the given inner QualType-matcher matches.">loc</a>, StringRef error) {</div>
+<div class="line"><a name="l00336"></a><span class="lineno">  336</span>   <span class="keywordtype">unsigned</span> diagID = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a0be90fe263387e16942ad91f70b6af26">getDiags</a>().<a class="code" href="classclang_1_1DiagnosticsEngine.html#affbb3c2700bd507e1670a12aa38b554d" title="Return an ID for a diagnostic with the specified message and level.">getCustomDiagID</a>(<a class="code" href="classclang_1_1DiagnosticsEngine.html#a94e5078973aa3a34432e91f3b26263e0a67b5cd51c751720d23bd4ad592252c6e">DiagnosticsEngine::Error</a>, error);</div>
+<div class="line"><a name="l00337"></a><span class="lineno">  337</span>   <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a0be90fe263387e16942ad91f70b6af26">getDiags</a>().<a class="code" href="classclang_1_1DiagnosticsEngine.html#a03686c59442babd725417ff740b397b4" title="Issue the message to the client.">Report</a>(Context.<a class="code" href="classclang_1_1ASTContext.html#a17e6210ffd50742638cbcc1b0e8c07fd">getFullLoc</a>(loc), diagID);</div>
+<div class="line"><a name="l00338"></a><span class="lineno">  338</span> }</div>
+<div class="line"><a name="l00339"></a><span class="lineno">  339</span> <span class="comment"></span></div>
+<div class="line"><a name="l00340"></a><span class="lineno">  340</span> <span class="comment">/// ErrorUnsupported - Print out an error that codegen doesn't support the</span></div>
+<div class="line"><a name="l00341"></a><span class="lineno">  341</span> <span class="comment">/// specified stmt yet.</span></div>
+<div class="line"><a name="l00342"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a376568c3ab5102ebd46232c944128aee">  342</a></span> <span class="comment"></span><span class="keywordtype">void</span> <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a376568c3ab5102ebd46232c944128aee">CodeGenModule::ErrorUnsupported</a>(<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>, <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="classclang_1_1Type.html">Type</a>) {</div>
+<div class="line"><a name="l00343"></a><span class="lineno">  343</span>   <span class="keywordtype">unsigned</span> DiagID = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a0be90fe263387e16942ad91f70b6af26">getDiags</a>().<a class="code" href="classclang_1_1DiagnosticsEngine.html#affbb3c2700bd507e1670a12aa38b554d" title="Return an ID for a diagnostic with the specified message and level.">getCustomDiagID</a>(<a class="code" href="classclang_1_1DiagnosticsEngine.html#a94e5078973aa3a34432e91f3b26263e0a67b5cd51c751720d23bd4ad592252c6e">DiagnosticsEngine::Error</a>,</div>
+<div class="line"><a name="l00344"></a><span class="lineno">  344</span>                                                <span class="stringliteral">"cannot compile this %0 yet"</span>);</div>
+<div class="line"><a name="l00345"></a><span class="lineno">  345</span>   std::string Msg = Type;</div>
+<div class="line"><a name="l00346"></a><span class="lineno">  346</span>   <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a0be90fe263387e16942ad91f70b6af26">getDiags</a>().<a class="code" href="classclang_1_1DiagnosticsEngine.html#a03686c59442babd725417ff740b397b4" title="Issue the message to the client.">Report</a>(Context.<a class="code" href="classclang_1_1ASTContext.html#a17e6210ffd50742638cbcc1b0e8c07fd">getFullLoc</a>(S-><a class="code" href="classclang_1_1Stmt.html#a0270d9cff7ed2b38acb39690b96586d2">getLocStart</a>()), DiagID)</div>
+<div class="line"><a name="l00347"></a><span class="lineno">  347</span>     << Msg << S-><a class="code" href="classclang_1_1Stmt.html#a6844392ee6148b5fe821f211b95e5d1b">getSourceRange</a>();</div>
+<div class="line"><a name="l00348"></a><span class="lineno">  348</span> }</div>
+<div class="line"><a name="l00349"></a><span class="lineno">  349</span> <span class="comment"></span></div>
+<div class="line"><a name="l00350"></a><span class="lineno">  350</span> <span class="comment">/// ErrorUnsupported - Print out an error that codegen doesn't support the</span></div>
+<div class="line"><a name="l00351"></a><span class="lineno">  351</span> <span class="comment">/// specified decl yet.</span></div>
+<div class="line"><a name="l00352"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a50556b7327b6f12272afa5414d036410">  352</a></span> <span class="comment"></span><span class="keywordtype">void</span> <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a376568c3ab5102ebd46232c944128aee">CodeGenModule::ErrorUnsupported</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1Decl.html">Decl</a> *D, <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="classclang_1_1Type.html">Type</a>) {</div>
+<div class="line"><a name="l00353"></a><span class="lineno">  353</span>   <span class="keywordtype">unsigned</span> DiagID = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a0be90fe263387e16942ad91f70b6af26">getDiags</a>().<a class="code" href="classclang_1_1DiagnosticsEngine.html#affbb3c2700bd507e1670a12aa38b554d" title="Return an ID for a diagnostic with the specified message and level.">getCustomDiagID</a>(<a class="code" href="classclang_1_1DiagnosticsEngine.html#a94e5078973aa3a34432e91f3b26263e0a67b5cd51c751720d23bd4ad592252c6e">DiagnosticsEngine::Error</a>,</div>
+<div class="line"><a name="l00354"></a><span class="lineno">  354</span>                                                <span class="stringliteral">"cannot compile this %0 yet"</span>);</div>
+<div class="line"><a name="l00355"></a><span class="lineno">  355</span>   std::string Msg = Type;</div>
+<div class="line"><a name="l00356"></a><span class="lineno">  356</span>   <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a0be90fe263387e16942ad91f70b6af26">getDiags</a>().<a class="code" href="classclang_1_1DiagnosticsEngine.html#a03686c59442babd725417ff740b397b4" title="Issue the message to the client.">Report</a>(Context.<a class="code" href="classclang_1_1ASTContext.html#a17e6210ffd50742638cbcc1b0e8c07fd">getFullLoc</a>(D-><a class="code" href="classclang_1_1Decl.html#a2348196ac4e0b1d5ebb1859c31b99eac">getLocation</a>()), DiagID) << Msg;</div>
+<div class="line"><a name="l00357"></a><span class="lineno">  357</span> }</div>
+<div class="line"><a name="l00358"></a><span class="lineno">  358</span> </div>
+<div class="line"><a name="l00359"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#afc1a42dd19d9f4d3fdb1e9d15cf26810">  359</a></span> llvm::ConstantInt *<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#afc1a42dd19d9f4d3fdb1e9d15cf26810" title="getSize - Emit the given number of characters as a value of type size_t.">CodeGenModule::getSize</a>(<a class="code" href="classclang_1_1CharUnits.html">CharUnits</a> size) {</div>
+<div class="line"><a name="l00360"></a><span class="lineno">  360</span>   <span class="keywordflow">return</span> llvm::ConstantInt::get(<a class="code" href="structclang_1_1CodeGen_1_1CodeGenTypeCache.html#a91ff72566394e59c6ffe25b21016f289">SizeTy</a>, size.<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="l00361"></a><span class="lineno">  361</span> }</div>
+<div class="line"><a name="l00362"></a><span class="lineno">  362</span> </div>
+<div class="line"><a name="l00363"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a426a15bb17382a3c64ce2719cb0ae2da">  363</a></span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a426a15bb17382a3c64ce2719cb0ae2da">CodeGenModule::setGlobalVisibility</a>(llvm::GlobalValue *GV,</div>
+<div class="line"><a name="l00364"></a><span class="lineno">  364</span>                                         <span class="keyword">const</span> <a class="code" href="classclang_1_1NamedDecl.html">NamedDecl</a> *D)<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l00365"></a><span class="lineno">  365</span>   <span class="comment">// Internal definitions always have default visibility.</span></div>
+<div class="line"><a name="l00366"></a><span class="lineno">  366</span>   <span class="keywordflow">if</span> (GV->hasLocalLinkage()) {</div>
+<div class="line"><a name="l00367"></a><span class="lineno">  367</span>     GV->setVisibility(<a class="code" href="namespaceclang.html#afbab15cd4aa598c4e6d9192f7ac4f102af3e12fac676a05b300d4bbb673d8fa5b">llvm::GlobalValue::DefaultVisibility</a>);</div>
+<div class="line"><a name="l00368"></a><span class="lineno">  368</span>     <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l00369"></a><span class="lineno">  369</span>   }</div>
+<div class="line"><a name="l00370"></a><span class="lineno">  370</span> </div>
+<div class="line"><a name="l00371"></a><span class="lineno">  371</span>   <span class="comment">// Set visibility for definitions.</span></div>
+<div class="line"><a name="l00372"></a><span class="lineno">  372</span>   <a class="code" href="classclang_1_1LinkageInfo.html">LinkageInfo</a> LV = D-><a class="code" href="classclang_1_1NamedDecl.html#a5ecf2d2b4b520393eb1a39a9aaa30241" title="Determines the linkage and visibility of this entity.">getLinkageAndVisibility</a>();</div>
+<div class="line"><a name="l00373"></a><span class="lineno">  373</span>   <span class="keywordflow">if</span> (LV.<a class="code" href="classclang_1_1LinkageInfo.html#a8a4e6f5836f3b1ae75f2226095b3db80">isVisibilityExplicit</a>() || !GV->hasAvailableExternallyLinkage())</div>
+<div class="line"><a name="l00374"></a><span class="lineno">  374</span>     GV->setVisibility(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a805a8799c1755c409d8a87765dbc67c5">GetLLVMVisibility</a>(LV.<a class="code" href="classclang_1_1LinkageInfo.html#a2836eba199d59b9b99ee7fbdce55f809">getVisibility</a>()));</div>
+<div class="line"><a name="l00375"></a><span class="lineno">  375</span> }</div>
+<div class="line"><a name="l00376"></a><span class="lineno">  376</span> </div>
+<div class="line"><a name="l00377"></a><span class="lineno"><a class="code" href="CodeGenModule_8cpp.html#a474d3c2dec1aac19d5998f63410e9b72">  377</a></span> <span class="keyword">static</span> llvm::GlobalVariable::ThreadLocalMode <a class="code" href="CodeGenModule_8cpp.html#a474d3c2dec1aac19d5998f63410e9b72">GetLLVMTLSModel</a>(StringRef <a class="code" href="AnalysisBasedWarnings_8cpp.html#a33dc45a03958a0bf07b5da2dec4db648">S</a>) {</div>
+<div class="line"><a name="l00378"></a><span class="lineno">  378</span>   <span class="keywordflow">return</span> llvm::StringSwitch<llvm::GlobalVariable::ThreadLocalMode>(<a class="code" href="AnalysisBasedWarnings_8cpp.html#a33dc45a03958a0bf07b5da2dec4db648">S</a>)</div>
+<div class="line"><a name="l00379"></a><span class="lineno">  379</span>       .Case(<span class="stringliteral">"global-dynamic"</span>, llvm::GlobalVariable::GeneralDynamicTLSModel)</div>
+<div class="line"><a name="l00380"></a><span class="lineno">  380</span>       .Case(<span class="stringliteral">"local-dynamic"</span>, llvm::GlobalVariable::LocalDynamicTLSModel)</div>
+<div class="line"><a name="l00381"></a><span class="lineno">  381</span>       .Case(<span class="stringliteral">"initial-exec"</span>, llvm::GlobalVariable::InitialExecTLSModel)</div>
+<div class="line"><a name="l00382"></a><span class="lineno">  382</span>       .Case(<span class="stringliteral">"local-exec"</span>, llvm::GlobalVariable::LocalExecTLSModel);</div>
+<div class="line"><a name="l00383"></a><span class="lineno">  383</span> }</div>
+<div class="line"><a name="l00384"></a><span class="lineno">  384</span> </div>
+<div class="line"><a name="l00385"></a><span class="lineno"><a class="code" href="CodeGenModule_8cpp.html#a887454dbb5b74313ba6d4f707b4fcf6d">  385</a></span> <span class="keyword">static</span> llvm::GlobalVariable::ThreadLocalMode <a class="code" href="CodeGenModule_8cpp.html#a474d3c2dec1aac19d5998f63410e9b72">GetLLVMTLSModel</a>(</div>
+<div class="line"><a name="l00386"></a><span class="lineno">  386</span>     <a class="code" href="classclang_1_1CodeGenOptions.html#adc18bd4de1ac3e409b5bd00ecdc396ab">CodeGenOptions::TLSModel</a> M) {</div>
+<div class="line"><a name="l00387"></a><span class="lineno">  387</span>   <span class="keywordflow">switch</span> (M) {</div>
+<div class="line"><a name="l00388"></a><span class="lineno">  388</span>   <span class="keywordflow">case</span> <a class="code" href="classclang_1_1CodeGenOptions.html#adc18bd4de1ac3e409b5bd00ecdc396abaa0f735f144d5926785243e96fa510dcc">CodeGenOptions::GeneralDynamicTLSModel</a>:</div>
+<div class="line"><a name="l00389"></a><span class="lineno">  389</span>     <span class="keywordflow">return</span> llvm::GlobalVariable::GeneralDynamicTLSModel;</div>
+<div class="line"><a name="l00390"></a><span class="lineno">  390</span>   <span class="keywordflow">case</span> <a class="code" href="classclang_1_1CodeGenOptions.html#adc18bd4de1ac3e409b5bd00ecdc396aba9ff734c493b6b27c507a8f20082127e2">CodeGenOptions::LocalDynamicTLSModel</a>:</div>
+<div class="line"><a name="l00391"></a><span class="lineno">  391</span>     <span class="keywordflow">return</span> llvm::GlobalVariable::LocalDynamicTLSModel;</div>
+<div class="line"><a name="l00392"></a><span class="lineno">  392</span>   <span class="keywordflow">case</span> <a class="code" href="classclang_1_1CodeGenOptions.html#adc18bd4de1ac3e409b5bd00ecdc396abae2bb40eec2ba11848d328bd19aa74589">CodeGenOptions::InitialExecTLSModel</a>:</div>
+<div class="line"><a name="l00393"></a><span class="lineno">  393</span>     <span class="keywordflow">return</span> llvm::GlobalVariable::InitialExecTLSModel;</div>
+<div class="line"><a name="l00394"></a><span class="lineno">  394</span>   <span class="keywordflow">case</span> <a class="code" href="classclang_1_1CodeGenOptions.html#adc18bd4de1ac3e409b5bd00ecdc396aba8b26b5f95452190b4a675fc8ed56e038">CodeGenOptions::LocalExecTLSModel</a>:</div>
+<div class="line"><a name="l00395"></a><span class="lineno">  395</span>     <span class="keywordflow">return</span> llvm::GlobalVariable::LocalExecTLSModel;</div>
+<div class="line"><a name="l00396"></a><span class="lineno">  396</span>   }</div>
+<div class="line"><a name="l00397"></a><span class="lineno">  397</span>   llvm_unreachable(<span class="stringliteral">"Invalid TLS model!"</span>);</div>
+<div class="line"><a name="l00398"></a><span class="lineno">  398</span> }</div>
+<div class="line"><a name="l00399"></a><span class="lineno">  399</span> </div>
+<div class="line"><a name="l00400"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a3313f5aef8fbe8be6470e22325ae7fa4">  400</a></span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a3313f5aef8fbe8be6470e22325ae7fa4">CodeGenModule::setTLSMode</a>(llvm::GlobalVariable *GV,</div>
+<div class="line"><a name="l00401"></a><span class="lineno">  401</span>                                <span class="keyword">const</span> <a class="code" href="classclang_1_1VarDecl.html">VarDecl</a> &D)<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l00402"></a><span class="lineno">  402</span>   assert(D.<a class="code" href="classclang_1_1VarDecl.html#ae704b725af5821356581f7857a2a2761">getTLSKind</a>() && <span class="stringliteral">"setting TLS mode on non-TLS var!"</span>);</div>
+<div class="line"><a name="l00403"></a><span class="lineno">  403</span> </div>
+<div class="line"><a name="l00404"></a><span class="lineno">  404</span>   llvm::GlobalVariable::ThreadLocalMode TLM;</div>
+<div class="line"><a name="l00405"></a><span class="lineno">  405</span>   TLM = <a class="code" href="CodeGenModule_8cpp.html#a474d3c2dec1aac19d5998f63410e9b72">GetLLVMTLSModel</a>(CodeGenOpts.getDefaultTLSModel());</div>
+<div class="line"><a name="l00406"></a><span class="lineno">  406</span> </div>
+<div class="line"><a name="l00407"></a><span class="lineno">  407</span>   <span class="comment">// Override the TLS model if it is explicitly specified.</span></div>
+<div class="line"><a name="l00408"></a><span class="lineno">  408</span>   <span class="keywordflow">if</span> (D.<a class="code" href="classclang_1_1Decl.html#ac60cc8b34313e03a5c40277c5c5ad61b">hasAttr</a><<a class="code" href="classclang_1_1TLSModelAttr.html">TLSModelAttr</a>>()) {</div>
+<div class="line"><a name="l00409"></a><span class="lineno">  409</span>     <span class="keyword">const</span> <a class="code" href="classclang_1_1TLSModelAttr.html">TLSModelAttr</a> *<a class="code" href="classclang_1_1Attr.html" title="Attr - This represents one attribute.">Attr</a> = D.<a class="code" href="classclang_1_1Decl.html#a6a041df02fad17a6fabe51af5de0ea3c">getAttr</a><<a class="code" href="classclang_1_1TLSModelAttr.html">TLSModelAttr</a>>();</div>
+<div class="line"><a name="l00410"></a><span class="lineno">  410</span>     TLM = <a class="code" href="CodeGenModule_8cpp.html#a474d3c2dec1aac19d5998f63410e9b72">GetLLVMTLSModel</a>(Attr-><a class="code" href="classclang_1_1TLSModelAttr.html#a87933c56d24adb7d69ff52b6c48607ed">getModel</a>());</div>
+<div class="line"><a name="l00411"></a><span class="lineno">  411</span>   }</div>
+<div class="line"><a name="l00412"></a><span class="lineno">  412</span> </div>
+<div class="line"><a name="l00413"></a><span class="lineno">  413</span>   GV->setThreadLocalMode(TLM);</div>
+<div class="line"><a name="l00414"></a><span class="lineno">  414</span> }</div>
+<div class="line"><a name="l00415"></a><span class="lineno">  415</span> <span class="comment"></span></div>
+<div class="line"><a name="l00416"></a><span class="lineno">  416</span> <span class="comment">/// Set the symbol visibility of type information (vtable and RTTI)</span></div>
+<div class="line"><a name="l00417"></a><span class="lineno">  417</span> <span class="comment">/// associated with the given type.</span></div>
+<div class="line"><a name="l00418"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a51a36e21c4ea26d094827ef5dcd8e46d">  418</a></span> <span class="comment"></span><span class="keywordtype">void</span> <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a51a36e21c4ea26d094827ef5dcd8e46d">CodeGenModule::setTypeVisibility</a>(llvm::GlobalValue *GV,</div>
+<div class="line"><a name="l00419"></a><span class="lineno">  419</span>                                       <span class="keyword">const</span> <a class="code" href="classclang_1_1CXXRecordDecl.html" title="Represents a C++ struct/union/class.">CXXRecordDecl</a> *RD,</div>
+<div class="line"><a name="l00420"></a><span class="lineno">  420</span>                                       <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a83e0bdf7e055b9b39ca6653fdd4da6a3">TypeVisibilityKind</a> TVK)<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l00421"></a><span class="lineno">  421</span>   <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a426a15bb17382a3c64ce2719cb0ae2da">setGlobalVisibility</a>(GV, RD);</div>
+<div class="line"><a name="l00422"></a><span class="lineno">  422</span> </div>
+<div class="line"><a name="l00423"></a><span class="lineno">  423</span>   <span class="keywordflow">if</span> (!CodeGenOpts.HiddenWeakVTables)</div>
+<div class="line"><a name="l00424"></a><span class="lineno">  424</span>     <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l00425"></a><span class="lineno">  425</span> </div>
+<div class="line"><a name="l00426"></a><span class="lineno">  426</span>   <span class="comment">// We never want to drop the visibility for RTTI names.</span></div>
+<div class="line"><a name="l00427"></a><span class="lineno">  427</span>   <span class="keywordflow">if</span> (TVK == <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a83e0bdf7e055b9b39ca6653fdd4da6a3a94a15d23ed017688caabe5d000c104fc">TVK_ForRTTIName</a>)</div>
+<div class="line"><a name="l00428"></a><span class="lineno">  428</span>     <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l00429"></a><span class="lineno">  429</span> </div>
+<div class="line"><a name="l00430"></a><span class="lineno">  430</span>   <span class="comment">// We want to drop the visibility to hidden for weak type symbols.</span></div>
+<div class="line"><a name="l00431"></a><span class="lineno">  431</span>   <span class="comment">// This isn't possible if there might be unresolved references</span></div>
+<div class="line"><a name="l00432"></a><span class="lineno">  432</span>   <span class="comment">// elsewhere that rely on this symbol being visible.</span></div>
+<div class="line"><a name="l00433"></a><span class="lineno">  433</span> </div>
+<div class="line"><a name="l00434"></a><span class="lineno">  434</span>   <span class="comment">// This should be kept roughly in sync with setThunkVisibility</span></div>
+<div class="line"><a name="l00435"></a><span class="lineno">  435</span>   <span class="comment">// in CGVTables.cpp.</span></div>
+<div class="line"><a name="l00436"></a><span class="lineno">  436</span> </div>
+<div class="line"><a name="l00437"></a><span class="lineno">  437</span>   <span class="comment">// Preconditions.</span></div>
+<div class="line"><a name="l00438"></a><span class="lineno">  438</span>   <span class="keywordflow">if</span> (GV->getLinkage() != llvm::GlobalVariable::LinkOnceODRLinkage ||</div>
+<div class="line"><a name="l00439"></a><span class="lineno">  439</span>       GV->getVisibility() != <a class="code" href="namespaceclang.html#afbab15cd4aa598c4e6d9192f7ac4f102af3e12fac676a05b300d4bbb673d8fa5b">llvm::GlobalVariable::DefaultVisibility</a>)</div>
+<div class="line"><a name="l00440"></a><span class="lineno">  440</span>     <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l00441"></a><span class="lineno">  441</span> </div>
+<div class="line"><a name="l00442"></a><span class="lineno">  442</span>   <span class="comment">// Don't override an explicit visibility attribute.</span></div>
+<div class="line"><a name="l00443"></a><span class="lineno">  443</span>   <span class="keywordflow">if</span> (RD-><a class="code" href="classclang_1_1NamedDecl.html#a39b2222a338f1237828306c8992ceb72" title="If visibility was explicitly specified for this declaration, return that visibility.">getExplicitVisibility</a>(<a class="code" href="classclang_1_1NamedDecl.html#a0755380656945f9750a42d2dfe3dac8faf3109c71acff6a5fdd8084c7af696b17">NamedDecl::VisibilityForType</a>))</div>
+<div class="line"><a name="l00444"></a><span class="lineno">  444</span>     <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l00445"></a><span class="lineno">  445</span> </div>
+<div class="line"><a name="l00446"></a><span class="lineno">  446</span>   <span class="keywordflow">switch</span> (RD-><a class="code" href="classclang_1_1CXXRecordDecl.html#a35a9c41b4ea506ae0b1a63c60139f38c" title="Determine whether this particular class is a specialization or instantiation of a class template or m...">getTemplateSpecializationKind</a>()) {</div>
+<div class="line"><a name="l00447"></a><span class="lineno">  447</span>   <span class="comment">// We have to disable the optimization if this is an EI definition</span></div>
+<div class="line"><a name="l00448"></a><span class="lineno">  448</span>   <span class="comment">// because there might be EI declarations in other shared objects.</span></div>
+<div class="line"><a name="l00449"></a><span class="lineno">  449</span>   <span class="keywordflow">case</span> <a class="code" href="namespaceclang.html#ae689bf8e3dcc54751a81974a4a12c3d2a4e1ba3c64fa82dff03cc7e5c6371e098">TSK_ExplicitInstantiationDefinition</a>:</div>
+<div class="line"><a name="l00450"></a><span class="lineno">  450</span>   <span class="keywordflow">case</span> <a class="code" href="namespaceclang.html#ae689bf8e3dcc54751a81974a4a12c3d2a59e44ac54dee956568aa545e9f9bee6f">TSK_ExplicitInstantiationDeclaration</a>:</div>
+<div class="line"><a name="l00451"></a><span class="lineno">  451</span>     <span class="keywordflow">return</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>   <span class="comment">// Every use of a non-template class's type information has to emit it.</span></div>
+<div class="line"><a name="l00454"></a><span class="lineno">  454</span>   <span class="keywordflow">case</span> <a class="code" href="namespaceclang.html#ae689bf8e3dcc54751a81974a4a12c3d2a92763cc9fa42510d19b6689d36e836cb">TSK_Undeclared</a>:</div>
+<div class="line"><a name="l00455"></a><span class="lineno">  455</span>     <span class="keywordflow">break</span>;</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>   <span class="comment">// In theory, implicit instantiations can ignore the possibility of</span></div>
+<div class="line"><a name="l00458"></a><span class="lineno">  458</span>   <span class="comment">// an explicit instantiation declaration because there necessarily</span></div>
+<div class="line"><a name="l00459"></a><span class="lineno">  459</span>   <span class="comment">// must be an EI definition somewhere with default visibility.  In</span></div>
+<div class="line"><a name="l00460"></a><span class="lineno">  460</span>   <span class="comment">// practice, it's possible to have an explicit instantiation for</span></div>
+<div class="line"><a name="l00461"></a><span class="lineno">  461</span>   <span class="comment">// an arbitrary template class, and linkers aren't necessarily able</span></div>
+<div class="line"><a name="l00462"></a><span class="lineno">  462</span>   <span class="comment">// to deal with mixed-visibility symbols.</span></div>
+<div class="line"><a name="l00463"></a><span class="lineno">  463</span>   <span class="keywordflow">case</span> <a class="code" href="namespaceclang.html#ae689bf8e3dcc54751a81974a4a12c3d2a5d6a29f74264666bba70d1d1cebd3ea5">TSK_ExplicitSpecialization</a>:</div>
+<div class="line"><a name="l00464"></a><span class="lineno">  464</span>   <span class="keywordflow">case</span> <a class="code" href="namespaceclang.html#ae689bf8e3dcc54751a81974a4a12c3d2a62976768097ae1ada5133dca824b7cd8">TSK_ImplicitInstantiation</a>:</div>
+<div class="line"><a name="l00465"></a><span class="lineno">  465</span>     <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l00466"></a><span class="lineno">  466</span>   }</div>
+<div class="line"><a name="l00467"></a><span class="lineno">  467</span> </div>
+<div class="line"><a name="l00468"></a><span class="lineno">  468</span>   <span class="comment">// If there's a key function, there may be translation units</span></div>
+<div class="line"><a name="l00469"></a><span class="lineno">  469</span>   <span class="comment">// that don't have the key function's definition.  But ignore</span></div>
+<div class="line"><a name="l00470"></a><span class="lineno">  470</span>   <span class="comment">// this if we're emitting RTTI under -fno-rtti.</span></div>
+<div class="line"><a name="l00471"></a><span class="lineno">  471</span>   <span class="keywordflow">if</span> (!(TVK != <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a83e0bdf7e055b9b39ca6653fdd4da6a3a081e932da9f3c6226e983916fc4eb03b">TVK_ForRTTI</a>) || LangOpts.RTTI) {</div>
+<div class="line"><a name="l00472"></a><span class="lineno">  472</span>     <span class="comment">// FIXME: what should we do if we "lose" the key function during</span></div>
+<div class="line"><a name="l00473"></a><span class="lineno">  473</span>     <span class="comment">// the emission of the file?</span></div>
+<div class="line"><a name="l00474"></a><span class="lineno">  474</span>     <span class="keywordflow">if</span> (Context.<a class="code" href="classclang_1_1ASTContext.html#a439522ed0cae62952acae5f30f283de2" title="Get our current best idea for the key function of the given record decl, or NULL if there isn't one...">getCurrentKeyFunction</a>(RD))</div>
+<div class="line"><a name="l00475"></a><span class="lineno">  475</span>       <span class="keywordflow">return</span>;</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>   <span class="comment">// Otherwise, drop the visibility to hidden.</span></div>
+<div class="line"><a name="l00479"></a><span class="lineno">  479</span>   GV->setVisibility(<a class="code" href="namespaceclang.html#afbab15cd4aa598c4e6d9192f7ac4f102a6dddfc0d585a6867a79d44a43ad55324">llvm::GlobalValue::HiddenVisibility</a>);</div>
+<div class="line"><a name="l00480"></a><span class="lineno">  480</span>   GV->setUnnamedAddr(<span class="keyword">true</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> </div>
+<div class="line"><a name="l00483"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ac2e5fda10002d34cd7f20fc0c2615a51">  483</a></span> StringRef <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ac2e5fda10002d34cd7f20fc0c2615a51">CodeGenModule::getMangledName</a>(<a class="code" href="classclang_1_1GlobalDecl.html">GlobalDecl</a> GD) {</div>
+<div class="line"><a name="l00484"></a><span class="lineno">  484</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1NamedDecl.html">NamedDecl</a> *ND = cast<NamedDecl>(GD.<a class="code" href="classclang_1_1GlobalDecl.html#a3971ce53aef50b4c3d829615a5ecd0a0">getDecl</a>());</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>   StringRef &Str = MangledDeclNames[GD.<a class="code" href="classclang_1_1GlobalDecl.html#afe9cece001fcb63f1c922fca581bd855">getCanonicalDecl</a>()];</div>
+<div class="line"><a name="l00487"></a><span class="lineno">  487</span>   <span class="keywordflow">if</span> (!Str.empty())</div>
+<div class="line"><a name="l00488"></a><span class="lineno">  488</span>     <span class="keywordflow">return</span> Str;</div>
+<div class="line"><a name="l00489"></a><span class="lineno">  489</span> </div>
+<div class="line"><a name="l00490"></a><span class="lineno">  490</span>   <span class="keywordflow">if</span> (!<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#abcced6119cfc90ff6332ec96766ff70a">getCXXABI</a>().<a class="code" href="classclang_1_1CodeGen_1_1CGCXXABI.html#a81a311530d5d52bac2afe472091b3e6b" title="Gets the mangle context.">getMangleContext</a>().<a class="code" href="classclang_1_1MangleContext.html#a4ae70b479f7ffd20956ef351d5ad6242">shouldMangleDeclName</a>(ND)) {</div>
+<div class="line"><a name="l00491"></a><span class="lineno">  491</span>     <a class="code" href="classclang_1_1IdentifierInfo.html">IdentifierInfo</a> *II = ND-><a class="code" href="classclang_1_1NamedDecl.html#a554752f8f43eea0e6288da7205167fe2">getIdentifier</a>();</div>
+<div class="line"><a name="l00492"></a><span class="lineno">  492</span>     assert(II && <span class="stringliteral">"Attempt to mangle unnamed decl."</span>);</div>
+<div class="line"><a name="l00493"></a><span class="lineno">  493</span> </div>
+<div class="line"><a name="l00494"></a><span class="lineno">  494</span>     Str = II-><a class="code" href="classclang_1_1IdentifierInfo.html#a94caec6a16e508e8ca39eacd278bd2c5" title="Return the actual identifier string.">getName</a>();</div>
+<div class="line"><a name="l00495"></a><span class="lineno">  495</span>     <span class="keywordflow">return</span> Str;</div>
+<div class="line"><a name="l00496"></a><span class="lineno">  496</span>   }</div>
+<div class="line"><a name="l00497"></a><span class="lineno">  497</span>   </div>
+<div class="line"><a name="l00498"></a><span class="lineno">  498</span>   <a class="code" href="classllvm_1_1SmallString.html">SmallString<256></a> Buffer;</div>
+<div class="line"><a name="l00499"></a><span class="lineno">  499</span>   llvm::raw_svector_ostream Out(Buffer);</div>
+<div class="line"><a name="l00500"></a><span class="lineno">  500</span>   <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1CXXConstructorDecl.html" title="Represents a C++ constructor within a class.">CXXConstructorDecl</a> *D = dyn_cast<CXXConstructorDecl>(ND))</div>
+<div class="line"><a name="l00501"></a><span class="lineno">  501</span>     <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#abcced6119cfc90ff6332ec96766ff70a">getCXXABI</a>().<a class="code" href="classclang_1_1CodeGen_1_1CGCXXABI.html#a81a311530d5d52bac2afe472091b3e6b" title="Gets the mangle context.">getMangleContext</a>().<a class="code" href="classclang_1_1MangleContext.html#ad5c12ac095c3cb4a29ce1fdd1ee73536">mangleCXXCtor</a>(D, GD.<a class="code" href="classclang_1_1GlobalDecl.html#a510cae7dd5d57ea1a0d8d89754fe6036">getCtorType</a>(), Out);</div>
+<div class="line"><a name="l00502"></a><span class="lineno">  502</span>   <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1CXXDestructorDecl.html" title="Represents a C++ destructor within a class.">CXXDestructorDecl</a> *D = dyn_cast<CXXDestructorDecl>(ND))</div>
+<div class="line"><a name="l00503"></a><span class="lineno">  503</span>     <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#abcced6119cfc90ff6332ec96766ff70a">getCXXABI</a>().<a class="code" href="classclang_1_1CodeGen_1_1CGCXXABI.html#a81a311530d5d52bac2afe472091b3e6b" title="Gets the mangle context.">getMangleContext</a>().<a class="code" href="classclang_1_1MangleContext.html#a32135e0108d31b06546a03da551e6fb9">mangleCXXDtor</a>(D, GD.<a class="code" href="classclang_1_1GlobalDecl.html#acf7986531ee9edab4d776465d455c82f">getDtorType</a>(), Out);</div>
+<div class="line"><a name="l00504"></a><span class="lineno">  504</span>   <span class="keywordflow">else</span></div>
+<div class="line"><a name="l00505"></a><span class="lineno">  505</span>     <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#abcced6119cfc90ff6332ec96766ff70a">getCXXABI</a>().<a class="code" href="classclang_1_1CodeGen_1_1CGCXXABI.html#a81a311530d5d52bac2afe472091b3e6b" title="Gets the mangle context.">getMangleContext</a>().<a class="code" href="classclang_1_1MangleContext.html#a2182b62e13ac34f995f92af33ead9091">mangleName</a>(ND, Out);</div>
+<div class="line"><a name="l00506"></a><span class="lineno">  506</span> </div>
+<div class="line"><a name="l00507"></a><span class="lineno">  507</span>   <span class="comment">// Allocate space for the mangled name.</span></div>
+<div class="line"><a name="l00508"></a><span class="lineno">  508</span>   Out.flush();</div>
+<div class="line"><a name="l00509"></a><span class="lineno">  509</span>   <span class="keywordtype">size_t</span> Length = Buffer.size();</div>
+<div class="line"><a name="l00510"></a><span class="lineno">  510</span>   <span class="keywordtype">char</span> *Name = MangledNamesAllocator.Allocate<<span class="keywordtype">char</span>>(Length);</div>
+<div class="line"><a name="l00511"></a><span class="lineno">  511</span>   std::copy(Buffer.begin(), Buffer.end(), Name);</div>
+<div class="line"><a name="l00512"></a><span class="lineno">  512</span>   </div>
+<div class="line"><a name="l00513"></a><span class="lineno">  513</span>   Str = StringRef(Name, Length);</div>
+<div class="line"><a name="l00514"></a><span class="lineno">  514</span>   </div>
+<div class="line"><a name="l00515"></a><span class="lineno">  515</span>   <span class="keywordflow">return</span> Str;</div>
+<div class="line"><a name="l00516"></a><span class="lineno">  516</span> }</div>
+<div class="line"><a name="l00517"></a><span class="lineno">  517</span> </div>
+<div class="line"><a name="l00518"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a6beef9097fda8459ad8ef843ae8f6eb7">  518</a></span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a6beef9097fda8459ad8ef843ae8f6eb7">CodeGenModule::getBlockMangledName</a>(<a class="code" href="classclang_1_1GlobalDecl.html">GlobalDecl</a> GD, <a class="code" href="classclang_1_1MangleBuffer.html">MangleBuffer</a> &Buffer,</div>
+<div class="line"><a name="l00519"></a><span class="lineno">  519</span>                                         <span class="keyword">const</span> <a class="code" href="classclang_1_1BlockDecl.html">BlockDecl</a> *BD) {</div>
+<div class="line"><a name="l00520"></a><span class="lineno">  520</span>   <a class="code" href="classclang_1_1MangleContext.html">MangleContext</a> &MangleCtx = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#abcced6119cfc90ff6332ec96766ff70a">getCXXABI</a>().<a class="code" href="classclang_1_1CodeGen_1_1CGCXXABI.html#a81a311530d5d52bac2afe472091b3e6b" title="Gets the mangle context.">getMangleContext</a>();</div>
+<div class="line"><a name="l00521"></a><span class="lineno">  521</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1Decl.html">Decl</a> *D = GD.<a class="code" href="classclang_1_1GlobalDecl.html#a3971ce53aef50b4c3d829615a5ecd0a0">getDecl</a>();</div>
+<div class="line"><a name="l00522"></a><span class="lineno">  522</span>   llvm::raw_svector_ostream Out(Buffer.<a class="code" href="classclang_1_1MangleBuffer.html#a5970c97287d0507bf9c8f8d1f6895822">getBuffer</a>());</div>
+<div class="line"><a name="l00523"></a><span class="lineno">  523</span>   <span class="keywordflow">if</span> (D == 0)</div>
+<div class="line"><a name="l00524"></a><span class="lineno">  524</span>     MangleCtx.<a class="code" href="classclang_1_1MangleContext.html#a34d042cb5621faf532889d6f44a52ac9">mangleGlobalBlock</a>(BD, </div>
+<div class="line"><a name="l00525"></a><span class="lineno">  525</span>       dyn_cast_or_null<VarDecl>(initializedGlobalDecl.<a class="code" href="classclang_1_1GlobalDecl.html#a3971ce53aef50b4c3d829615a5ecd0a0">getDecl</a>()), Out);</div>
+<div class="line"><a name="l00526"></a><span class="lineno">  526</span>   <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1CXXConstructorDecl.html" title="Represents a C++ constructor within a class.">CXXConstructorDecl</a> *CD = dyn_cast<CXXConstructorDecl>(D))</div>
+<div class="line"><a name="l00527"></a><span class="lineno">  527</span>     MangleCtx.<a class="code" href="classclang_1_1MangleContext.html#a1e68a66cfad77dacdd014344cc43f4d0">mangleCtorBlock</a>(CD, GD.<a class="code" href="classclang_1_1GlobalDecl.html#a510cae7dd5d57ea1a0d8d89754fe6036">getCtorType</a>(), BD, Out);</div>
+<div class="line"><a name="l00528"></a><span class="lineno">  528</span>   <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1CXXDestructorDecl.html" title="Represents a C++ destructor within a class.">CXXDestructorDecl</a> *DD = dyn_cast<CXXDestructorDecl>(D))</div>
+<div class="line"><a name="l00529"></a><span class="lineno">  529</span>     MangleCtx.<a class="code" href="classclang_1_1MangleContext.html#ad2475721e1414ff695c40302291f60ed">mangleDtorBlock</a>(DD, GD.<a class="code" href="classclang_1_1GlobalDecl.html#acf7986531ee9edab4d776465d455c82f">getDtorType</a>(), BD, Out);</div>
+<div class="line"><a name="l00530"></a><span class="lineno">  530</span>   <span class="keywordflow">else</span></div>
+<div class="line"><a name="l00531"></a><span class="lineno">  531</span>     MangleCtx.<a class="code" href="classclang_1_1MangleContext.html#a09c4416b1febf59e519e081970ce345f">mangleBlock</a>(cast<DeclContext>(D), BD, Out);</div>
+<div class="line"><a name="l00532"></a><span class="lineno">  532</span> }</div>
+<div class="line"><a name="l00533"></a><span class="lineno">  533</span> </div>
+<div class="line"><a name="l00534"></a><span class="lineno">  534</span> llvm::GlobalValue *CodeGenModule::GetGlobalValue(StringRef Name) {</div>
+<div class="line"><a name="l00535"></a><span class="lineno">  535</span>   <span class="keywordflow">return</span> <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a908409c9231b015784ca008fd6bcb961">getModule</a>().getNamedValue(Name);</div>
+<div class="line"><a name="l00536"></a><span class="lineno">  536</span> }</div>
+<div class="line"><a name="l00537"></a><span class="lineno">  537</span> <span class="comment"></span></div>
+<div class="line"><a name="l00538"></a><span class="lineno">  538</span> <span class="comment">/// AddGlobalCtor - Add a function to the list that will be called before</span></div>
+<div class="line"><a name="l00539"></a><span class="lineno">  539</span> <span class="comment">/// main() runs.</span></div>
+<div class="line"><a name="l00540"></a><span class="lineno">  540</span> <span class="comment"></span><span class="keywordtype">void</span> CodeGenModule::AddGlobalCtor(llvm::Function * Ctor, <span class="keywordtype">int</span> Priority) {</div>
+<div class="line"><a name="l00541"></a><span class="lineno">  541</span>   <span class="comment">// FIXME: Type coercion of void()* types.</span></div>
+<div class="line"><a name="l00542"></a><span class="lineno">  542</span>   GlobalCtors.push_back(std::make_pair(Ctor, Priority));</div>
+<div class="line"><a name="l00543"></a><span class="lineno">  543</span> }</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">/// AddGlobalDtor - Add a function to the list that will be called</span></div>
+<div class="line"><a name="l00546"></a><span class="lineno">  546</span> <span class="comment">/// when the module is unloaded.</span></div>
+<div class="line"><a name="l00547"></a><span class="lineno">  547</span> <span class="comment"></span><span class="keywordtype">void</span> CodeGenModule::AddGlobalDtor(llvm::Function * Dtor, <span class="keywordtype">int</span> Priority) {</div>
+<div class="line"><a name="l00548"></a><span class="lineno">  548</span>   <span class="comment">// FIXME: Type coercion of void()* types.</span></div>
+<div class="line"><a name="l00549"></a><span class="lineno">  549</span>   GlobalDtors.push_back(std::make_pair(Dtor, Priority));</div>
+<div class="line"><a name="l00550"></a><span class="lineno">  550</span> }</div>
+<div class="line"><a name="l00551"></a><span class="lineno">  551</span> </div>
+<div class="line"><a name="l00552"></a><span class="lineno">  552</span> <span class="keywordtype">void</span> CodeGenModule::EmitCtorList(<span class="keyword">const</span> CtorList &Fns, <span class="keyword">const</span> <span class="keywordtype">char</span> *GlobalName) {</div>
+<div class="line"><a name="l00553"></a><span class="lineno">  553</span>   <span class="comment">// Ctor function type is void()*.</span></div>
+<div class="line"><a name="l00554"></a><span class="lineno">  554</span>   llvm::FunctionType* CtorFTy = llvm::FunctionType::get(<a class="code" href="structclang_1_1CodeGen_1_1CodeGenTypeCache.html#ad2e842be873196b0fab39b1479223209" title="void">VoidTy</a>, <span class="keyword">false</span>);</div>
+<div class="line"><a name="l00555"></a><span class="lineno">  555</span>   llvm::Type *CtorPFTy = llvm::PointerType::getUnqual(CtorFTy);</div>
+<div class="line"><a name="l00556"></a><span class="lineno">  556</span> </div>
+<div class="line"><a name="l00557"></a><span class="lineno">  557</span>   <span class="comment">// Get the type of a ctor entry, { i32, void ()* }.</span></div>
+<div class="line"><a name="l00558"></a><span class="lineno">  558</span>   llvm::StructType *CtorStructTy =</div>
+<div class="line"><a name="l00559"></a><span class="lineno">  559</span>     llvm::StructType::get(<a class="code" href="structclang_1_1CodeGen_1_1CodeGenTypeCache.html#a9b70851ea2ff034ca9a5443ce213a81c">Int32Ty</a>, llvm::PointerType::getUnqual(CtorFTy), <a class="code" href="stddef_8h.html#a070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>);</div>
+<div class="line"><a name="l00560"></a><span class="lineno">  560</span> </div>
+<div class="line"><a name="l00561"></a><span class="lineno">  561</span>   <span class="comment">// Construct the constructor and destructor arrays.</span></div>
+<div class="line"><a name="l00562"></a><span class="lineno">  562</span>   <a class="code" href="classllvm_1_1SmallVector.html">SmallVector<llvm::Constant*, 8></a> Ctors;</div>
+<div class="line"><a name="l00563"></a><span class="lineno">  563</span>   <span class="keywordflow">for</span> (CtorList::const_iterator I = Fns.begin(), E = Fns.end(); I != E; ++I) {</div>
+<div class="line"><a name="l00564"></a><span class="lineno">  564</span>     llvm::Constant *<a class="code" href="AnalysisBasedWarnings_8cpp.html#a33dc45a03958a0bf07b5da2dec4db648">S</a>[] = {</div>
+<div class="line"><a name="l00565"></a><span class="lineno">  565</span>       llvm::ConstantInt::get(<a class="code" href="structclang_1_1CodeGen_1_1CodeGenTypeCache.html#a9b70851ea2ff034ca9a5443ce213a81c">Int32Ty</a>, I->second, <span class="keyword">false</span>),</div>
+<div class="line"><a name="l00566"></a><span class="lineno">  566</span>       llvm::ConstantExpr::getBitCast(I->first, CtorPFTy)</div>
+<div class="line"><a name="l00567"></a><span class="lineno">  567</span>     };</div>
+<div class="line"><a name="l00568"></a><span class="lineno">  568</span>     Ctors.push_back(llvm::ConstantStruct::get(CtorStructTy, S));</div>
+<div class="line"><a name="l00569"></a><span class="lineno">  569</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="keywordflow">if</span> (!Ctors.empty()) {</div>
+<div class="line"><a name="l00572"></a><span class="lineno">  572</span>     llvm::ArrayType *AT = llvm::ArrayType::get(CtorStructTy, Ctors.size());</div>
+<div class="line"><a name="l00573"></a><span class="lineno">  573</span>     <span class="keyword">new</span> llvm::GlobalVariable(TheModule, AT, <span class="keyword">false</span>,</div>
+<div class="line"><a name="l00574"></a><span class="lineno">  574</span>                              llvm::GlobalValue::AppendingLinkage,</div>
+<div class="line"><a name="l00575"></a><span class="lineno">  575</span>                              llvm::ConstantArray::get(AT, Ctors),</div>
+<div class="line"><a name="l00576"></a><span class="lineno">  576</span>                              GlobalName);</div>
+<div class="line"><a name="l00577"></a><span class="lineno">  577</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> llvm::GlobalValue::LinkageTypes</div>
+<div class="line"><a name="l00581"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a9ccb92a536b16bf53e426f4aa7c3b2be">  581</a></span> <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a9ccb92a536b16bf53e426f4aa7c3b2be">CodeGenModule::getFunctionLinkage</a>(<a class="code" href="classclang_1_1GlobalDecl.html">GlobalDecl</a> GD) {</div>
+<div class="line"><a name="l00582"></a><span class="lineno">  582</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1FunctionDecl.html">FunctionDecl</a> *D = cast<FunctionDecl>(GD.<a class="code" href="classclang_1_1GlobalDecl.html#a3971ce53aef50b4c3d829615a5ecd0a0">getDecl</a>());</div>
+<div class="line"><a name="l00583"></a><span class="lineno">  583</span> </div>
+<div class="line"><a name="l00584"></a><span class="lineno">  584</span>   <span class="keywordflow">if</span> (isa<CXXDestructorDecl>(D) &&</div>
+<div class="line"><a name="l00585"></a><span class="lineno">  585</span>       <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#abcced6119cfc90ff6332ec96766ff70a">getCXXABI</a>().<a class="code" href="classclang_1_1CodeGen_1_1CGCXXABI.html#a2aba9733cec5208fb46e5ac2b3682049">useThunkForDtorVariant</a>(cast<CXXDestructorDecl>(D),</div>
+<div class="line"><a name="l00586"></a><span class="lineno">  586</span>                                          GD.<a class="code" href="classclang_1_1GlobalDecl.html#acf7986531ee9edab4d776465d455c82f">getDtorType</a>()))</div>
+<div class="line"><a name="l00587"></a><span class="lineno">  587</span>     <span class="keywordflow">return</span> llvm::Function::LinkOnceODRLinkage;</div>
+<div class="line"><a name="l00588"></a><span class="lineno">  588</span> </div>
+<div class="line"><a name="l00589"></a><span class="lineno">  589</span>   <a class="code" href="namespaceclang.html#a1a5806cb5e0c7456e1b8bc7e3878c5a6" title="A more specific kind of linkage than enum Linkage.">GVALinkage</a> <a class="code" href="namespaceclang.html#a78aadfeaf316ded55fdd2d1a9c8815b6" title="Describes the different kinds of linkage (C++ [basic.link], C99 6.2.2) that an entity may have...">Linkage</a> = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>().<a class="code" href="classclang_1_1ASTContext.html#aaed4f5ced6790f4c73f446bce7c78eff">GetGVALinkageForFunction</a>(D);</div>
+<div class="line"><a name="l00590"></a><span class="lineno">  590</span> </div>
+<div class="line"><a name="l00591"></a><span class="lineno">  591</span>   <span class="keywordflow">if</span> (Linkage == <a class="code" href="namespaceclang.html#a1a5806cb5e0c7456e1b8bc7e3878c5a6a873139a4373f32de3b9790eb6a422c61">GVA_Internal</a>)</div>
+<div class="line"><a name="l00592"></a><span class="lineno">  592</span>     <span class="keywordflow">return</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::Function::InternalLinkage</a>;</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="keywordflow">if</span> (D-><a class="code" href="classclang_1_1Decl.html#ac60cc8b34313e03a5c40277c5c5ad61b">hasAttr</a><<a class="code" href="classclang_1_1DLLExportAttr.html">DLLExportAttr</a>>())</div>
+<div class="line"><a name="l00595"></a><span class="lineno">  595</span>     <span class="keywordflow">return</span> llvm::Function::DLLExportLinkage;</div>
+<div class="line"><a name="l00596"></a><span class="lineno">  596</span>   </div>
+<div class="line"><a name="l00597"></a><span class="lineno">  597</span>   <span class="keywordflow">if</span> (D-><a class="code" href="classclang_1_1Decl.html#ac60cc8b34313e03a5c40277c5c5ad61b">hasAttr</a><<a class="code" href="classclang_1_1WeakAttr.html">WeakAttr</a>>())</div>
+<div class="line"><a name="l00598"></a><span class="lineno">  598</span>     <span class="keywordflow">return</span> llvm::Function::WeakAnyLinkage;</div>
+<div class="line"><a name="l00599"></a><span class="lineno">  599</span>   </div>
+<div class="line"><a name="l00600"></a><span class="lineno">  600</span>   <span class="comment">// In C99 mode, 'inline' functions are guaranteed to have a strong</span></div>
+<div class="line"><a name="l00601"></a><span class="lineno">  601</span>   <span class="comment">// definition somewhere else, so we can use available_externally linkage.</span></div>
+<div class="line"><a name="l00602"></a><span class="lineno">  602</span>   <span class="keywordflow">if</span> (Linkage == <a class="code" href="namespaceclang.html#a1a5806cb5e0c7456e1b8bc7e3878c5a6aa379a7090119e9c2218f8f635d77f62d">GVA_C99Inline</a>)</div>
+<div class="line"><a name="l00603"></a><span class="lineno">  603</span>     <span class="keywordflow">return</span> llvm::Function::AvailableExternallyLinkage;</div>
+<div class="line"><a name="l00604"></a><span class="lineno">  604</span> </div>
+<div class="line"><a name="l00605"></a><span class="lineno">  605</span>   <span class="comment">// Note that Apple's kernel linker doesn't support symbol</span></div>
+<div class="line"><a name="l00606"></a><span class="lineno">  606</span>   <span class="comment">// coalescing, so we need to avoid linkonce and weak linkages there.</span></div>
+<div class="line"><a name="l00607"></a><span class="lineno">  607</span>   <span class="comment">// Normally, this means we just map to internal, but for explicit</span></div>
+<div class="line"><a name="l00608"></a><span class="lineno">  608</span>   <span class="comment">// instantiations we'll map to external.</span></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">// In C++, the compiler has to emit a definition in every translation unit</span></div>
+<div class="line"><a name="l00611"></a><span class="lineno">  611</span>   <span class="comment">// that references the function.  We should use linkonce_odr because</span></div>
+<div class="line"><a name="l00612"></a><span class="lineno">  612</span>   <span class="comment">// a) if all references in this translation unit are optimized away, we</span></div>
+<div class="line"><a name="l00613"></a><span class="lineno">  613</span>   <span class="comment">// don't need to codegen it.  b) if the function persists, it needs to be</span></div>
+<div class="line"><a name="l00614"></a><span class="lineno">  614</span>   <span class="comment">// merged with other definitions. c) C++ has the ODR, so we know the</span></div>
+<div class="line"><a name="l00615"></a><span class="lineno">  615</span>   <span class="comment">// definition is dependable.</span></div>
+<div class="line"><a name="l00616"></a><span class="lineno">  616</span>   <span class="keywordflow">if</span> (Linkage == <a class="code" href="namespaceclang.html#a1a5806cb5e0c7456e1b8bc7e3878c5a6adf49ff526c25ed92121d392f84002431">GVA_CXXInline</a> || Linkage == <a class="code" href="namespaceclang.html#a1a5806cb5e0c7456e1b8bc7e3878c5a6ad42aadece0c8ea62049417f0aca215d7">GVA_TemplateInstantiation</a>)</div>
+<div class="line"><a name="l00617"></a><span class="lineno">  617</span>     <span class="keywordflow">return</span> !Context.<a class="code" href="classclang_1_1ASTContext.html#a3faa7b5a5e8d1637c53dea680acca0ff">getLangOpts</a>().AppleKext </div>
+<div class="line"><a name="l00618"></a><span class="lineno">  618</span>              ? llvm::Function::LinkOnceODRLinkage </div>
+<div class="line"><a name="l00619"></a><span class="lineno">  619</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::Function::InternalLinkage</a>;</div>
+<div class="line"><a name="l00620"></a><span class="lineno">  620</span>   </div>
+<div class="line"><a name="l00621"></a><span class="lineno">  621</span>   <span class="comment">// An explicit instantiation of a template has weak linkage, since</span></div>
+<div class="line"><a name="l00622"></a><span class="lineno">  622</span>   <span class="comment">// explicit instantiations can occur in multiple translation units</span></div>
+<div class="line"><a name="l00623"></a><span class="lineno">  623</span>   <span class="comment">// and must all be equivalent. However, we are not allowed to</span></div>
+<div class="line"><a name="l00624"></a><span class="lineno">  624</span>   <span class="comment">// throw away these explicit instantiations.</span></div>
+<div class="line"><a name="l00625"></a><span class="lineno">  625</span>   <span class="keywordflow">if</span> (Linkage == <a class="code" href="namespaceclang.html#a1a5806cb5e0c7456e1b8bc7e3878c5a6a11185aa338b64e79d8366a5e1948e7f1">GVA_ExplicitTemplateInstantiation</a>)</div>
+<div class="line"><a name="l00626"></a><span class="lineno">  626</span>     <span class="keywordflow">return</span> !Context.<a class="code" href="classclang_1_1ASTContext.html#a3faa7b5a5e8d1637c53dea680acca0ff">getLangOpts</a>().AppleKext</div>
+<div class="line"><a name="l00627"></a><span class="lineno">  627</span>              ? llvm::Function::WeakODRLinkage</div>
+<div class="line"><a name="l00628"></a><span class="lineno">  628</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::Function::ExternalLinkage</a>;</div>
+<div class="line"><a name="l00629"></a><span class="lineno">  629</span>   </div>
+<div class="line"><a name="l00630"></a><span class="lineno">  630</span>   <span class="comment">// Otherwise, we have strong external linkage.</span></div>
+<div class="line"><a name="l00631"></a><span class="lineno">  631</span>   assert(Linkage == <a class="code" href="namespaceclang.html#a1a5806cb5e0c7456e1b8bc7e3878c5a6a10697bd0043889a99282abd80eb00b3a">GVA_StrongExternal</a>);</div>
+<div class="line"><a name="l00632"></a><span class="lineno">  632</span>   <span class="keywordflow">return</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::Function::ExternalLinkage</a>;</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> </div>
+<div class="line"><a name="l00635"></a><span class="lineno">  635</span> <span class="comment"></span></div>
+<div class="line"><a name="l00636"></a><span class="lineno">  636</span> <span class="comment">/// SetFunctionDefinitionAttributes - Set attributes for a global.</span></div>
+<div class="line"><a name="l00637"></a><span class="lineno">  637</span> <span class="comment">///</span></div>
+<div class="line"><a name="l00638"></a><span class="lineno">  638</span> <span class="comment">/// FIXME: This is currently only done for aliases and functions, but not for</span></div>
+<div class="line"><a name="l00639"></a><span class="lineno">  639</span> <span class="comment">/// variables (these details are set in EmitGlobalVarDefinition for variables).</span></div>
+<div class="line"><a name="l00640"></a><span class="lineno">  640</span> <span class="comment"></span><span class="keywordtype">void</span> CodeGenModule::SetFunctionDefinitionAttributes(<span class="keyword">const</span> <a class="code" href="classclang_1_1FunctionDecl.html">FunctionDecl</a> *D,</div>
+<div class="line"><a name="l00641"></a><span class="lineno">  641</span>                                                     llvm::GlobalValue *GV) {</div>
+<div class="line"><a name="l00642"></a><span class="lineno">  642</span>   SetCommonAttributes(D, GV);</div>
+<div class="line"><a name="l00643"></a><span class="lineno">  643</span> }</div>
+<div class="line"><a name="l00644"></a><span class="lineno">  644</span> </div>
+<div class="line"><a name="l00645"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#aff57e3c6d99484e33a5bfab585e6e22d">  645</a></span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#aff57e3c6d99484e33a5bfab585e6e22d">CodeGenModule::SetLLVMFunctionAttributes</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1Decl.html">Decl</a> *D,</div>
+<div class="line"><a name="l00646"></a><span class="lineno">  646</span>                                               <span class="keyword">const</span> <a class="code" href="classclang_1_1CodeGen_1_1CGFunctionInfo.html">CGFunctionInfo</a> &Info,</div>
+<div class="line"><a name="l00647"></a><span class="lineno">  647</span>                                               llvm::Function *F) {</div>
+<div class="line"><a name="l00648"></a><span class="lineno">  648</span>   <span class="keywordtype">unsigned</span> <a class="code" href="namespaceclang.html#ae6d16e133294b0b9c8c8d3108aadd25b" title="CallingConv - Specifies the calling convention that a function uses.">CallingConv</a>;</div>
+<div class="line"><a name="l00649"></a><span class="lineno">  649</span>   <a class="code" href="classllvm_1_1SmallVector.html">AttributeListType</a> <a class="code" href="classclang_1_1AttributeList.html">AttributeList</a>;</div>
+<div class="line"><a name="l00650"></a><span class="lineno">  650</span>   <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a0b7d538c3e2716ec3a91c8cb74334e63">ConstructAttributeList</a>(Info, D, AttributeList, CallingConv, <span class="keyword">false</span>);</div>
+<div class="line"><a name="l00651"></a><span class="lineno">  651</span>   F->setAttributes(llvm::AttributeSet::get(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a6c8cff399ad98c730cce0907b1acd44e">getLLVMContext</a>(), AttributeList));</div>
+<div class="line"><a name="l00652"></a><span class="lineno">  652</span>   F->setCallingConv(static_cast<llvm::CallingConv::ID>(CallingConv));</div>
+<div class="line"><a name="l00653"></a><span class="lineno">  653</span> }</div>
+<div class="line"><a name="l00654"></a><span class="lineno">  654</span> <span class="comment"></span></div>
+<div class="line"><a name="l00655"></a><span class="lineno">  655</span> <span class="comment">/// Determines whether the language options require us to model</span></div>
+<div class="line"><a name="l00656"></a><span class="lineno">  656</span> <span class="comment">/// unwind exceptions.  We treat -fexceptions as mandating this</span></div>
+<div class="line"><a name="l00657"></a><span class="lineno">  657</span> <span class="comment">/// except under the fragile ObjC ABI with only ObjC exceptions</span></div>
+<div class="line"><a name="l00658"></a><span class="lineno">  658</span> <span class="comment">/// enabled.  This means, for example, that C with -fexceptions</span></div>
+<div class="line"><a name="l00659"></a><span class="lineno">  659</span> <span class="comment">/// enables this.</span></div>
+<div class="line"><a name="l00660"></a><span class="lineno"><a class="code" href="CodeGenModule_8cpp.html#a93604f476a071f549bd1c403102628d8">  660</a></span> <span class="comment"></span><span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="CodeGenModule_8cpp.html#a93604f476a071f549bd1c403102628d8">hasUnwindExceptions</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1LangOptions.html" title="Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...">LangOptions</a> &LangOpts) {</div>
+<div class="line"><a name="l00661"></a><span class="lineno">  661</span>   <span class="comment">// If exceptions are completely disabled, obviously this is false.</span></div>
+<div class="line"><a name="l00662"></a><span class="lineno">  662</span>   <span class="keywordflow">if</span> (!LangOpts.Exceptions) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l00663"></a><span class="lineno">  663</span> </div>
+<div class="line"><a name="l00664"></a><span class="lineno">  664</span>   <span class="comment">// If C++ exceptions are enabled, this is true.</span></div>
+<div class="line"><a name="l00665"></a><span class="lineno">  665</span>   <span class="keywordflow">if</span> (LangOpts.CXXExceptions) <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l00666"></a><span class="lineno">  666</span> </div>
+<div class="line"><a name="l00667"></a><span class="lineno">  667</span>   <span class="comment">// If ObjC exceptions are enabled, this depends on the ABI.</span></div>
+<div class="line"><a name="l00668"></a><span class="lineno">  668</span>   <span class="keywordflow">if</span> (LangOpts.ObjCExceptions) {</div>
+<div class="line"><a name="l00669"></a><span class="lineno">  669</span>     <span class="keywordflow">return</span> LangOpts.<a class="code" href="classclang_1_1LangOptions.html#a34a8b84f730051971c84c36daa84dda7">ObjCRuntime</a>.<a class="code" href="classclang_1_1ObjCRuntime.html#a12e019c2d71af9e236bad0af483182c0" title="Does this runtime use zero-cost exceptions?">hasUnwindExceptions</a>();</div>
+<div class="line"><a name="l00670"></a><span class="lineno">  670</span>   }</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="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l00673"></a><span class="lineno">  673</span> }</div>
+<div class="line"><a name="l00674"></a><span class="lineno">  674</span> </div>
+<div class="line"><a name="l00675"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ae9889f0aa89bb9e2c853e5046ea2ce98">  675</a></span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ae9889f0aa89bb9e2c853e5046ea2ce98">CodeGenModule::SetLLVMFunctionAttributesForDefinition</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1Decl.html">Decl</a> *D,</div>
+<div class="line"><a name="l00676"></a><span class="lineno">  676</span>                                                            llvm::Function *F) {</div>
+<div class="line"><a name="l00677"></a><span class="lineno">  677</span>   llvm::AttrBuilder B;</div>
+<div class="line"><a name="l00678"></a><span class="lineno">  678</span> </div>
+<div class="line"><a name="l00679"></a><span class="lineno">  679</span>   <span class="keywordflow">if</span> (CodeGenOpts.UnwindTables)</div>
+<div class="line"><a name="l00680"></a><span class="lineno">  680</span>     B.addAttribute(llvm::Attribute::UWTable);</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>   <span class="keywordflow">if</span> (!<a class="code" href="CodeGenModule_8cpp.html#a93604f476a071f549bd1c403102628d8">hasUnwindExceptions</a>(LangOpts))</div>
+<div class="line"><a name="l00683"></a><span class="lineno">  683</span>     B.addAttribute(llvm::Attribute::NoUnwind);</div>
+<div class="line"><a name="l00684"></a><span class="lineno">  684</span> </div>
+<div class="line"><a name="l00685"></a><span class="lineno">  685</span>   <span class="keywordflow">if</span> (D-><a class="code" href="classclang_1_1Decl.html#ac60cc8b34313e03a5c40277c5c5ad61b">hasAttr</a><<a class="code" href="classclang_1_1NakedAttr.html">NakedAttr</a>>()) {</div>
+<div class="line"><a name="l00686"></a><span class="lineno">  686</span>     <span class="comment">// Naked implies noinline: we should not be inlining such functions.</span></div>
+<div class="line"><a name="l00687"></a><span class="lineno">  687</span>     B.addAttribute(llvm::Attribute::Naked);</div>
+<div class="line"><a name="l00688"></a><span class="lineno">  688</span>     B.addAttribute(llvm::Attribute::NoInline);</div>
+<div class="line"><a name="l00689"></a><span class="lineno">  689</span>   } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (D-><a class="code" href="classclang_1_1Decl.html#ac60cc8b34313e03a5c40277c5c5ad61b">hasAttr</a><<a class="code" href="classclang_1_1NoInlineAttr.html">NoInlineAttr</a>>()) {</div>
+<div class="line"><a name="l00690"></a><span class="lineno">  690</span>     B.addAttribute(llvm::Attribute::NoInline);</div>
+<div class="line"><a name="l00691"></a><span class="lineno">  691</span>   } <span class="keywordflow">else</span> <span class="keywordflow">if</span> ((D-><a class="code" href="classclang_1_1Decl.html#ac60cc8b34313e03a5c40277c5c5ad61b">hasAttr</a><<a class="code" href="classclang_1_1AlwaysInlineAttr.html">AlwaysInlineAttr</a>>() ||</div>
+<div class="line"><a name="l00692"></a><span class="lineno">  692</span>               D-><a class="code" href="classclang_1_1Decl.html#ac60cc8b34313e03a5c40277c5c5ad61b">hasAttr</a><<a class="code" href="classclang_1_1ForceInlineAttr.html">ForceInlineAttr</a>>()) &&</div>
+<div class="line"><a name="l00693"></a><span class="lineno">  693</span>              !F->getAttributes().hasAttribute(llvm::AttributeSet::FunctionIndex,</div>
+<div class="line"><a name="l00694"></a><span class="lineno">  694</span>                                               llvm::Attribute::NoInline)) {</div>
+<div class="line"><a name="l00695"></a><span class="lineno">  695</span>     <span class="comment">// (noinline wins over always_inline, and we can't specify both in IR)</span></div>
+<div class="line"><a name="l00696"></a><span class="lineno">  696</span>     B.addAttribute(llvm::Attribute::AlwaysInline);</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>   <span class="keywordflow">if</span> (D-><a class="code" href="classclang_1_1Decl.html#ac60cc8b34313e03a5c40277c5c5ad61b">hasAttr</a><<a class="code" href="classclang_1_1ColdAttr.html">ColdAttr</a>>()) {</div>
+<div class="line"><a name="l00700"></a><span class="lineno">  700</span>     B.addAttribute(llvm::Attribute::OptimizeForSize);</div>
+<div class="line"><a name="l00701"></a><span class="lineno">  701</span>     B.addAttribute(llvm::Attribute::Cold);</div>
+<div class="line"><a name="l00702"></a><span class="lineno">  702</span>   }</div>
+<div class="line"><a name="l00703"></a><span class="lineno">  703</span> </div>
+<div class="line"><a name="l00704"></a><span class="lineno">  704</span>   <span class="keywordflow">if</span> (D-><a class="code" href="classclang_1_1Decl.html#ac60cc8b34313e03a5c40277c5c5ad61b">hasAttr</a><<a class="code" href="classclang_1_1MinSizeAttr.html">MinSizeAttr</a>>())</div>
+<div class="line"><a name="l00705"></a><span class="lineno">  705</span>     B.addAttribute(llvm::Attribute::MinSize);</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>   <span class="keywordflow">if</span> (LangOpts.getStackProtector() == <a class="code" href="classclang_1_1LangOptions.html#ac889bd73efcb3d30e8670ab400d94f83abde3bf1143bf193f4a147b378814f025">LangOptions::SSPOn</a>)</div>
+<div class="line"><a name="l00708"></a><span class="lineno">  708</span>     B.addAttribute(llvm::Attribute::StackProtect);</div>
+<div class="line"><a name="l00709"></a><span class="lineno">  709</span>   <span class="keywordflow">else</span> <span class="keywordflow">if</span> (LangOpts.getStackProtector() == <a class="code" href="classclang_1_1LangOptions.html#ac889bd73efcb3d30e8670ab400d94f83a05919079389855372132b51952b54fe3">LangOptions::SSPReq</a>)</div>
+<div class="line"><a name="l00710"></a><span class="lineno">  710</span>     B.addAttribute(llvm::Attribute::StackProtectReq);</div>
+<div class="line"><a name="l00711"></a><span class="lineno">  711</span> </div>
+<div class="line"><a name="l00712"></a><span class="lineno">  712</span>   <span class="comment">// Add sanitizer attributes if function is not blacklisted.</span></div>
+<div class="line"><a name="l00713"></a><span class="lineno">  713</span>   <span class="keywordflow">if</span> (!SanitizerBlacklist->isIn(*F)) {</div>
+<div class="line"><a name="l00714"></a><span class="lineno">  714</span>     <span class="comment">// When AddressSanitizer is enabled, set SanitizeAddress attribute</span></div>
+<div class="line"><a name="l00715"></a><span class="lineno">  715</span>     <span class="comment">// unless __attribute__((no_sanitize_address)) is used.</span></div>
+<div class="line"><a name="l00716"></a><span class="lineno">  716</span>     <span class="keywordflow">if</span> (SanOpts.Address && !D-><a class="code" href="classclang_1_1Decl.html#ac60cc8b34313e03a5c40277c5c5ad61b">hasAttr</a><<a class="code" href="classclang_1_1NoSanitizeAddressAttr.html">NoSanitizeAddressAttr</a>>())</div>
+<div class="line"><a name="l00717"></a><span class="lineno">  717</span>       B.addAttribute(llvm::Attribute::SanitizeAddress);</div>
+<div class="line"><a name="l00718"></a><span class="lineno">  718</span>     <span class="comment">// Same for ThreadSanitizer and __attribute__((no_sanitize_thread))</span></div>
+<div class="line"><a name="l00719"></a><span class="lineno">  719</span>     <span class="keywordflow">if</span> (SanOpts.Thread && !D-><a class="code" href="classclang_1_1Decl.html#ac60cc8b34313e03a5c40277c5c5ad61b">hasAttr</a><<a class="code" href="classclang_1_1NoSanitizeThreadAttr.html">NoSanitizeThreadAttr</a>>()) {</div>
+<div class="line"><a name="l00720"></a><span class="lineno">  720</span>       B.addAttribute(llvm::Attribute::SanitizeThread);</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>     <span class="comment">// Same for MemorySanitizer and __attribute__((no_sanitize_memory))</span></div>
+<div class="line"><a name="l00723"></a><span class="lineno">  723</span>     <span class="keywordflow">if</span> (SanOpts.Memory && !D-><a class="code" href="classclang_1_1Decl.html#ac60cc8b34313e03a5c40277c5c5ad61b">hasAttr</a><<a class="code" href="classclang_1_1NoSanitizeMemoryAttr.html">NoSanitizeMemoryAttr</a>>())</div>
+<div class="line"><a name="l00724"></a><span class="lineno">  724</span>       B.addAttribute(llvm::Attribute::SanitizeMemory);</div>
+<div class="line"><a name="l00725"></a><span class="lineno">  725</span>   }</div>
+<div class="line"><a name="l00726"></a><span class="lineno">  726</span> </div>
+<div class="line"><a name="l00727"></a><span class="lineno">  727</span>   F->addAttributes(llvm::AttributeSet::FunctionIndex,</div>
+<div class="line"><a name="l00728"></a><span class="lineno">  728</span>                    llvm::AttributeSet::get(</div>
+<div class="line"><a name="l00729"></a><span class="lineno">  729</span>                        F->getContext(), llvm::AttributeSet::FunctionIndex, B));</div>
+<div class="line"><a name="l00730"></a><span class="lineno">  730</span> </div>
+<div class="line"><a name="l00731"></a><span class="lineno">  731</span>   <span class="keywordflow">if</span> (isa<CXXConstructorDecl>(D) || isa<CXXDestructorDecl>(D))</div>
+<div class="line"><a name="l00732"></a><span class="lineno">  732</span>     F->setUnnamedAddr(<span class="keyword">true</span>);</div>
+<div class="line"><a name="l00733"></a><span class="lineno">  733</span>   <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1CXXMethodDecl.html" title="Represents a static or instance method of a struct/union/class.">CXXMethodDecl</a> *MD = dyn_cast<CXXMethodDecl>(D))</div>
+<div class="line"><a name="l00734"></a><span class="lineno">  734</span>     <span class="keywordflow">if</span> (MD->isVirtual())</div>
+<div class="line"><a name="l00735"></a><span class="lineno">  735</span>       F->setUnnamedAddr(<span class="keyword">true</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="keywordtype">unsigned</span> alignment = D-><a class="code" href="classclang_1_1Decl.html#aebbd0c8f8d79688f1b26f3b42f558ac7">getMaxAlignment</a>() / Context.<a class="code" href="classclang_1_1ASTContext.html#ac347a9a51b589a7f135c909692ef582e" title="Return the size of the character type, in bits.">getCharWidth</a>();</div>
+<div class="line"><a name="l00738"></a><span class="lineno">  738</span>   <span class="keywordflow">if</span> (alignment)</div>
+<div class="line"><a name="l00739"></a><span class="lineno">  739</span>     F->setAlignment(alignment);</div>
+<div class="line"><a name="l00740"></a><span class="lineno">  740</span> </div>
+<div class="line"><a name="l00741"></a><span class="lineno">  741</span>   <span class="comment">// C++ ABI requires 2-byte alignment for member functions.</span></div>
+<div class="line"><a name="l00742"></a><span class="lineno">  742</span>   <span class="keywordflow">if</span> (F->getAlignment() < 2 && isa<CXXMethodDecl>(D))</div>
+<div class="line"><a name="l00743"></a><span class="lineno">  743</span>     F->setAlignment(2);</div>
+<div class="line"><a name="l00744"></a><span class="lineno">  744</span> }</div>
+<div class="line"><a name="l00745"></a><span class="lineno">  745</span> </div>
+<div class="line"><a name="l00746"></a><span class="lineno">  746</span> <span class="keywordtype">void</span> CodeGenModule::SetCommonAttributes(<span class="keyword">const</span> <a class="code" href="classclang_1_1Decl.html">Decl</a> *D,</div>
+<div class="line"><a name="l00747"></a><span class="lineno">  747</span>                                         llvm::GlobalValue *GV) {</div>
+<div class="line"><a name="l00748"></a><span class="lineno">  748</span>   <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1NamedDecl.html">NamedDecl</a> *ND = dyn_cast<NamedDecl>(D))</div>
+<div class="line"><a name="l00749"></a><span class="lineno">  749</span>     <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a426a15bb17382a3c64ce2719cb0ae2da">setGlobalVisibility</a>(GV, ND);</div>
+<div class="line"><a name="l00750"></a><span class="lineno">  750</span>   <span class="keywordflow">else</span></div>
+<div class="line"><a name="l00751"></a><span class="lineno">  751</span>     GV->setVisibility(<a class="code" href="namespaceclang.html#afbab15cd4aa598c4e6d9192f7ac4f102af3e12fac676a05b300d4bbb673d8fa5b">llvm::GlobalValue::DefaultVisibility</a>);</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="keywordflow">if</span> (D-><a class="code" href="classclang_1_1Decl.html#ac60cc8b34313e03a5c40277c5c5ad61b">hasAttr</a><<a class="code" href="classclang_1_1UsedAttr.html">UsedAttr</a>>())</div>
+<div class="line"><a name="l00754"></a><span class="lineno">  754</span>     <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ab4b3684fe8ae4e70f3205a40d9a2bdb2">AddUsedGlobal</a>(GV);</div>
+<div class="line"><a name="l00755"></a><span class="lineno">  755</span> </div>
+<div class="line"><a name="l00756"></a><span class="lineno">  756</span>   <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1SectionAttr.html">SectionAttr</a> *SA = D-><a class="code" href="classclang_1_1Decl.html#a6a041df02fad17a6fabe51af5de0ea3c">getAttr</a><<a class="code" href="classclang_1_1SectionAttr.html">SectionAttr</a>>())</div>
+<div class="line"><a name="l00757"></a><span class="lineno">  757</span>     GV->setSection(SA->getName());</div>
+<div class="line"><a name="l00758"></a><span class="lineno">  758</span> </div>
+<div class="line"><a name="l00759"></a><span class="lineno">  759</span>   <span class="comment">// Alias cannot have attributes. Filter them here.</span></div>
+<div class="line"><a name="l00760"></a><span class="lineno">  760</span>   <span class="keywordflow">if</span> (!isa<llvm::GlobalAlias>(GV))</div>
+<div class="line"><a name="l00761"></a><span class="lineno">  761</span>     <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ac098ad9054632d2c6c4bf4c243cb04b1">getTargetCodeGenInfo</a>().<a class="code" href="classclang_1_1TargetCodeGenInfo.html#abf2c3304f44458d33b7f8b3b7dc30ac8">SetTargetAttributes</a>(D, GV, *<span class="keyword">this</span>);</div>
+<div class="line"><a name="l00762"></a><span class="lineno">  762</span> }</div>
+<div class="line"><a name="l00763"></a><span class="lineno">  763</span> </div>
+<div class="line"><a name="l00764"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a8a3a3e46f0e73246119f50dca6578d0d">  764</a></span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a8a3a3e46f0e73246119f50dca6578d0d">CodeGenModule::SetInternalFunctionAttributes</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1Decl.html">Decl</a> *D,</div>
+<div class="line"><a name="l00765"></a><span class="lineno">  765</span>                                                   llvm::Function *F,</div>
+<div class="line"><a name="l00766"></a><span class="lineno">  766</span>                                                   <span class="keyword">const</span> <a class="code" href="classclang_1_1CodeGen_1_1CGFunctionInfo.html">CGFunctionInfo</a> &FI) {</div>
+<div class="line"><a name="l00767"></a><span class="lineno">  767</span>   <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#aff57e3c6d99484e33a5bfab585e6e22d">SetLLVMFunctionAttributes</a>(D, FI, F);</div>
+<div class="line"><a name="l00768"></a><span class="lineno">  768</span>   <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ae9889f0aa89bb9e2c853e5046ea2ce98">SetLLVMFunctionAttributesForDefinition</a>(D, F);</div>
+<div class="line"><a name="l00769"></a><span class="lineno">  769</span> </div>
+<div class="line"><a name="l00770"></a><span class="lineno">  770</span>   F->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::Function::InternalLinkage</a>);</div>
+<div class="line"><a name="l00771"></a><span class="lineno">  771</span> </div>
+<div class="line"><a name="l00772"></a><span class="lineno">  772</span>   SetCommonAttributes(D, F);</div>
+<div class="line"><a name="l00773"></a><span class="lineno">  773</span> }</div>
+<div class="line"><a name="l00774"></a><span class="lineno">  774</span> </div>
+<div class="line"><a name="l00775"></a><span class="lineno">  775</span> <span class="keywordtype">void</span> CodeGenModule::SetFunctionAttributes(<a class="code" href="classclang_1_1GlobalDecl.html">GlobalDecl</a> GD,</div>
+<div class="line"><a name="l00776"></a><span class="lineno">  776</span>                                           llvm::Function *F,</div>
+<div class="line"><a name="l00777"></a><span class="lineno">  777</span>                                           <span class="keywordtype">bool</span> IsIncompleteFunction) {</div>
+<div class="line"><a name="l00778"></a><span class="lineno">  778</span>   <span class="keywordflow">if</span> (<span class="keywordtype">unsigned</span> IID = F->getIntrinsicID()) {</div>
+<div class="line"><a name="l00779"></a><span class="lineno">  779</span>     <span class="comment">// If this is an intrinsic function, set the function's attributes</span></div>
+<div class="line"><a name="l00780"></a><span class="lineno">  780</span>     <span class="comment">// to the intrinsic's attributes.</span></div>
+<div class="line"><a name="l00781"></a><span class="lineno">  781</span>     F->setAttributes(llvm::Intrinsic::getAttributes(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a6c8cff399ad98c730cce0907b1acd44e">getLLVMContext</a>(),</div>
+<div class="line"><a name="l00782"></a><span class="lineno">  782</span>                                                     (<a class="code" href="namespaceclang_1_1LangAS.html#a78ee38b55acb7cc806cb61e6d2a9f960" title="Defines the set of possible language-specific address spaces.">llvm::Intrinsic::ID</a>)IID));</div>
+<div class="line"><a name="l00783"></a><span class="lineno">  783</span>     <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l00784"></a><span class="lineno">  784</span>   }</div>
+<div class="line"><a name="l00785"></a><span class="lineno">  785</span> </div>
+<div class="line"><a name="l00786"></a><span class="lineno">  786</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1FunctionDecl.html">FunctionDecl</a> *FD = cast<FunctionDecl>(GD.<a class="code" href="classclang_1_1GlobalDecl.html#a3971ce53aef50b4c3d829615a5ecd0a0">getDecl</a>());</div>
+<div class="line"><a name="l00787"></a><span class="lineno">  787</span> </div>
+<div class="line"><a name="l00788"></a><span class="lineno">  788</span>   <span class="keywordflow">if</span> (!IsIncompleteFunction)</div>
+<div class="line"><a name="l00789"></a><span class="lineno">  789</span>     <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#aff57e3c6d99484e33a5bfab585e6e22d">SetLLVMFunctionAttributes</a>(FD, <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a1325760f10142c1da8521b53734858ef">getTypes</a>().arrangeGlobalDeclaration(GD), F);</div>
+<div class="line"><a name="l00790"></a><span class="lineno">  790</span> </div>
+<div class="line"><a name="l00791"></a><span class="lineno">  791</span>   <span class="keywordflow">if</span> (<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#abcced6119cfc90ff6332ec96766ff70a">getCXXABI</a>().HasThisReturn(GD)) {</div>
+<div class="line"><a name="l00792"></a><span class="lineno">  792</span>     assert(!F->arg_empty() &&</div>
+<div class="line"><a name="l00793"></a><span class="lineno">  793</span>            F->arg_begin()->getType()</div>
+<div class="line"><a name="l00794"></a><span class="lineno">  794</span>              ->canLosslesslyBitCastTo(F->getReturnType()) &&</div>
+<div class="line"><a name="l00795"></a><span class="lineno">  795</span>            <span class="stringliteral">"unexpected this return"</span>);</div>
+<div class="line"><a name="l00796"></a><span class="lineno">  796</span>     F->addAttribute(1, llvm::Attribute::Returned);</div>
+<div class="line"><a name="l00797"></a><span class="lineno">  797</span>   }</div>
+<div class="line"><a name="l00798"></a><span class="lineno">  798</span> </div>
+<div class="line"><a name="l00799"></a><span class="lineno">  799</span>   <span class="comment">// Only a few attributes are set on declarations; these may later be</span></div>
+<div class="line"><a name="l00800"></a><span class="lineno">  800</span>   <span class="comment">// overridden by a definition.</span></div>
+<div class="line"><a name="l00801"></a><span class="lineno">  801</span> </div>
+<div class="line"><a name="l00802"></a><span class="lineno">  802</span>   <span class="keywordflow">if</span> (FD-><a class="code" href="classclang_1_1Decl.html#ac60cc8b34313e03a5c40277c5c5ad61b">hasAttr</a><<a class="code" href="classclang_1_1DLLImportAttr.html">DLLImportAttr</a>>()) {</div>
+<div class="line"><a name="l00803"></a><span class="lineno">  803</span>     F->setLinkage(llvm::Function::DLLImportLinkage);</div>
+<div class="line"><a name="l00804"></a><span class="lineno">  804</span>   } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (FD-><a class="code" href="classclang_1_1Decl.html#ac60cc8b34313e03a5c40277c5c5ad61b">hasAttr</a><<a class="code" href="classclang_1_1WeakAttr.html">WeakAttr</a>>() ||</div>
+<div class="line"><a name="l00805"></a><span class="lineno">  805</span>              FD-><a class="code" href="classclang_1_1Decl.html#a1b071e9bafaf5e1ae1733a31b4fbafc9" title="Determine whether this is a weak-imported symbol.">isWeakImported</a>()) {</div>
+<div class="line"><a name="l00806"></a><span class="lineno">  806</span>     <span class="comment">// "extern_weak" is overloaded in LLVM; we probably should have</span></div>
+<div class="line"><a name="l00807"></a><span class="lineno">  807</span>     <span class="comment">// separate linkage types for this.</span></div>
+<div class="line"><a name="l00808"></a><span class="lineno">  808</span>     F->setLinkage(llvm::Function::ExternalWeakLinkage);</div>
+<div class="line"><a name="l00809"></a><span class="lineno">  809</span>   } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l00810"></a><span class="lineno">  810</span>     F->setLinkage(<a class="code" href="namespaceclang.html#a78aadfeaf316ded55fdd2d1a9c8815b6abf301cfab14d2b8fac6176f45e6bb54a" title="External linkage, which indicates that the entity can be referred to from other translation units...">llvm::Function::ExternalLinkage</a>);</div>
+<div class="line"><a name="l00811"></a><span class="lineno">  811</span> </div>
+<div class="line"><a name="l00812"></a><span class="lineno">  812</span>     <a class="code" href="classclang_1_1LinkageInfo.html">LinkageInfo</a> LV = FD-><a class="code" href="classclang_1_1NamedDecl.html#a5ecf2d2b4b520393eb1a39a9aaa30241" title="Determines the linkage and visibility of this entity.">getLinkageAndVisibility</a>();</div>
+<div class="line"><a name="l00813"></a><span class="lineno">  813</span>     <span class="keywordflow">if</span> (LV.<a class="code" href="classclang_1_1LinkageInfo.html#ab7fe20ef7b88d45fd902f4548089b66f">getLinkage</a>() == <a class="code" href="namespaceclang.html#a78aadfeaf316ded55fdd2d1a9c8815b6abf301cfab14d2b8fac6176f45e6bb54a" title="External linkage, which indicates that the entity can be referred to from other translation units...">ExternalLinkage</a> && LV.<a class="code" href="classclang_1_1LinkageInfo.html#a8a4e6f5836f3b1ae75f2226095b3db80">isVisibilityExplicit</a>()) {</div>
+<div class="line"><a name="l00814"></a><span class="lineno">  814</span>       F->setVisibility(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a805a8799c1755c409d8a87765dbc67c5">GetLLVMVisibility</a>(LV.<a class="code" href="classclang_1_1LinkageInfo.html#a2836eba199d59b9b99ee7fbdce55f809">getVisibility</a>()));</div>
+<div class="line"><a name="l00815"></a><span class="lineno">  815</span>     }</div>
+<div class="line"><a name="l00816"></a><span class="lineno">  816</span>   }</div>
+<div class="line"><a name="l00817"></a><span class="lineno">  817</span> </div>
+<div class="line"><a name="l00818"></a><span class="lineno">  818</span>   <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1SectionAttr.html">SectionAttr</a> *SA = FD-><a class="code" href="classclang_1_1Decl.html#a6a041df02fad17a6fabe51af5de0ea3c">getAttr</a><<a class="code" href="classclang_1_1SectionAttr.html">SectionAttr</a>>())</div>
+<div class="line"><a name="l00819"></a><span class="lineno">  819</span>     F->setSection(SA->getName());</div>
+<div class="line"><a name="l00820"></a><span class="lineno">  820</span> </div>
+<div class="line"><a name="l00821"></a><span class="lineno">  821</span>   <span class="comment">// A replaceable global allocation function does not act like a builtin by</span></div>
+<div class="line"><a name="l00822"></a><span class="lineno">  822</span>   <span class="comment">// default, only if it is invoked by a new-expression or delete-expression.</span></div>
+<div class="line"><a name="l00823"></a><span class="lineno">  823</span>   <span class="keywordflow">if</span> (FD-><a class="code" href="classclang_1_1FunctionDecl.html#ab03ecf3bbbbbc7419da0de1c02cf9a33" title="Determines whether this function is one of the replaceable global allocation functions: void *operato...">isReplaceableGlobalAllocationFunction</a>())</div>
+<div class="line"><a name="l00824"></a><span class="lineno">  824</span>     F->addAttribute(llvm::AttributeSet::FunctionIndex,</div>
+<div class="line"><a name="l00825"></a><span class="lineno">  825</span>                     llvm::Attribute::NoBuiltin);</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"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ab4b3684fe8ae4e70f3205a40d9a2bdb2">  828</a></span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ab4b3684fe8ae4e70f3205a40d9a2bdb2">CodeGenModule::AddUsedGlobal</a>(llvm::GlobalValue *GV) {</div>
+<div class="line"><a name="l00829"></a><span class="lineno">  829</span>   assert(!GV->isDeclaration() &&</div>
+<div class="line"><a name="l00830"></a><span class="lineno">  830</span>          <span class="stringliteral">"Only globals with definition can force usage."</span>);</div>
+<div class="line"><a name="l00831"></a><span class="lineno">  831</span>   LLVMUsed.push_back(GV);</div>
+<div class="line"><a name="l00832"></a><span class="lineno">  832</span> }</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="keywordtype">void</span> CodeGenModule::EmitLLVMUsed() {</div>
+<div class="line"><a name="l00835"></a><span class="lineno">  835</span>   <span class="comment">// Don't create llvm.used if there is no need.</span></div>
+<div class="line"><a name="l00836"></a><span class="lineno">  836</span>   <span class="keywordflow">if</span> (LLVMUsed.empty())</div>
+<div class="line"><a name="l00837"></a><span class="lineno">  837</span>     <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l00838"></a><span class="lineno">  838</span> </div>
+<div class="line"><a name="l00839"></a><span class="lineno">  839</span>   <span class="comment">// Convert LLVMUsed to what ConstantArray needs.</span></div>
+<div class="line"><a name="l00840"></a><span class="lineno">  840</span>   <a class="code" href="classllvm_1_1SmallVector.html">SmallVector<llvm::Constant*, 8></a> UsedArray;</div>
+<div class="line"><a name="l00841"></a><span class="lineno">  841</span>   UsedArray.resize(LLVMUsed.size());</div>
+<div class="line"><a name="l00842"></a><span class="lineno">  842</span>   <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> i = 0, e = LLVMUsed.size(); i != e; ++i) {</div>
+<div class="line"><a name="l00843"></a><span class="lineno">  843</span>     UsedArray[i] =</div>
+<div class="line"><a name="l00844"></a><span class="lineno">  844</span>      llvm::ConstantExpr::getBitCast(cast<llvm::Constant>(&*LLVMUsed[i]),</div>
+<div class="line"><a name="l00845"></a><span class="lineno">  845</span>                                     <a class="code" href="structclang_1_1CodeGen_1_1CodeGenTypeCache.html#ac3ec7e3938996c5354dbee1a103ed4d2">Int8PtrTy</a>);</div>
+<div class="line"><a name="l00846"></a><span class="lineno">  846</span>   }</div>
+<div class="line"><a name="l00847"></a><span class="lineno">  847</span> </div>
+<div class="line"><a name="l00848"></a><span class="lineno">  848</span>   <span class="keywordflow">if</span> (UsedArray.empty())</div>
+<div class="line"><a name="l00849"></a><span class="lineno">  849</span>     <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l00850"></a><span class="lineno">  850</span>   llvm::ArrayType *ATy = llvm::ArrayType::get(<a class="code" href="structclang_1_1CodeGen_1_1CodeGenTypeCache.html#ac3ec7e3938996c5354dbee1a103ed4d2">Int8PtrTy</a>, UsedArray.size());</div>
+<div class="line"><a name="l00851"></a><span class="lineno">  851</span> </div>
+<div class="line"><a name="l00852"></a><span class="lineno">  852</span>   llvm::GlobalVariable *GV =</div>
+<div class="line"><a name="l00853"></a><span class="lineno">  853</span>     <span class="keyword">new</span> llvm::GlobalVariable(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a908409c9231b015784ca008fd6bcb961">getModule</a>(), ATy, <span class="keyword">false</span>,</div>
+<div class="line"><a name="l00854"></a><span class="lineno">  854</span>                              llvm::GlobalValue::AppendingLinkage,</div>
+<div class="line"><a name="l00855"></a><span class="lineno">  855</span>                              llvm::ConstantArray::get(ATy, UsedArray),</div>
+<div class="line"><a name="l00856"></a><span class="lineno">  856</span>                              <span class="stringliteral">"llvm.used"</span>);</div>
+<div class="line"><a name="l00857"></a><span class="lineno">  857</span> </div>
+<div class="line"><a name="l00858"></a><span class="lineno">  858</span>   GV->setSection(<span class="stringliteral">"llvm.metadata"</span>);</div>
+<div class="line"><a name="l00859"></a><span class="lineno">  859</span> }</div>
+<div class="line"><a name="l00860"></a><span class="lineno">  860</span> </div>
+<div class="line"><a name="l00861"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a57d9bb01209e44ee32dd3ba603553d2f">  861</a></span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a57d9bb01209e44ee32dd3ba603553d2f" title="Appends Opts to the "Linker Options" metadata value.">CodeGenModule::AppendLinkerOptions</a>(StringRef Opts) {</div>
+<div class="line"><a name="l00862"></a><span class="lineno">  862</span>   <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *MDOpts = llvm::MDString::get(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a6c8cff399ad98c730cce0907b1acd44e">getLLVMContext</a>(), Opts);</div>
+<div class="line"><a name="l00863"></a><span class="lineno">  863</span>   LinkerOptionsMetadata.push_back(llvm::MDNode::get(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a6c8cff399ad98c730cce0907b1acd44e">getLLVMContext</a>(), MDOpts));</div>
+<div class="line"><a name="l00864"></a><span class="lineno">  864</span> }</div>
+<div class="line"><a name="l00865"></a><span class="lineno">  865</span> </div>
+<div class="line"><a name="l00866"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ad74794c92cec7303b9d65970b6501089">  866</a></span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ad74794c92cec7303b9d65970b6501089" title="Appends a detect mismatch command to the linker options.">CodeGenModule::AddDetectMismatch</a>(StringRef Name, StringRef <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">Value</a>) {</div>
+<div class="line"><a name="l00867"></a><span class="lineno">  867</span>   <a class="code" href="classllvm_1_1SmallString.html">llvm::SmallString<32></a> Opt;</div>
+<div class="line"><a name="l00868"></a><span class="lineno">  868</span>   <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ac098ad9054632d2c6c4bf4c243cb04b1">getTargetCodeGenInfo</a>().<a class="code" href="classclang_1_1TargetCodeGenInfo.html#addcc6c18abf6b2473e4946b80d7b9871">getDetectMismatchOption</a>(Name, Value, Opt);</div>
+<div class="line"><a name="l00869"></a><span class="lineno">  869</span>   <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *MDOpts = llvm::MDString::get(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a6c8cff399ad98c730cce0907b1acd44e">getLLVMContext</a>(), Opt);</div>
+<div class="line"><a name="l00870"></a><span class="lineno">  870</span>   LinkerOptionsMetadata.push_back(llvm::MDNode::get(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a6c8cff399ad98c730cce0907b1acd44e">getLLVMContext</a>(), MDOpts));</div>
+<div class="line"><a name="l00871"></a><span class="lineno">  871</span> }</div>
+<div class="line"><a name="l00872"></a><span class="lineno">  872</span> </div>
+<div class="line"><a name="l00873"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a5dc1034df064b84fbda7d0c6f7fcab61">  873</a></span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a5dc1034df064b84fbda7d0c6f7fcab61" title="Appends a dependent lib to the "Linker Options" metadata value.">CodeGenModule::AddDependentLib</a>(StringRef Lib) {</div>
+<div class="line"><a name="l00874"></a><span class="lineno">  874</span>   <a class="code" href="classllvm_1_1SmallString.html">llvm::SmallString<24></a> Opt;</div>
+<div class="line"><a name="l00875"></a><span class="lineno">  875</span>   <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ac098ad9054632d2c6c4bf4c243cb04b1">getTargetCodeGenInfo</a>().<a class="code" href="classclang_1_1TargetCodeGenInfo.html#a8f93a653616a5afcb3345b8cb64f1bc8">getDependentLibraryOption</a>(Lib, Opt);</div>
+<div class="line"><a name="l00876"></a><span class="lineno">  876</span>   <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *MDOpts = llvm::MDString::get(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a6c8cff399ad98c730cce0907b1acd44e">getLLVMContext</a>(), Opt);</div>
+<div class="line"><a name="l00877"></a><span class="lineno">  877</span>   LinkerOptionsMetadata.push_back(llvm::MDNode::get(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a6c8cff399ad98c730cce0907b1acd44e">getLLVMContext</a>(), MDOpts));</div>
+<div class="line"><a name="l00878"></a><span class="lineno">  878</span> }</div>
+<div class="line"><a name="l00879"></a><span class="lineno">  879</span> <span class="comment"></span></div>
+<div class="line"><a name="l00880"></a><span class="lineno">  880</span> <span class="comment">/// \brief Add link options implied by the given module, including modules</span></div>
+<div class="line"><a name="l00881"></a><span class="lineno">  881</span> <span class="comment">/// it depends on, using a postorder walk.</span></div>
+<div class="line"><a name="l00882"></a><span class="lineno"><a class="code" href="CodeGenModule_8cpp.html#a5b77edcb322fe82494a483f358ce494a">  882</a></span> <span class="comment"></span><span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="CodeGenModule_8cpp.html#a5b77edcb322fe82494a483f358ce494a" title="Add link options implied by the given module, including modules it depends on, using a postorder walk...">addLinkOptionsPostorder</a>(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html">CodeGenModule</a> &CGM,</div>
+<div class="line"><a name="l00883"></a><span class="lineno">  883</span>                                     <a class="code" href="classclang_1_1Module.html" title="Describes a module or submodule.">Module</a> *Mod,</div>
+<div class="line"><a name="l00884"></a><span class="lineno">  884</span>                                     <a class="code" href="classllvm_1_1SmallVectorImpl.html">SmallVectorImpl<llvm::Value *></a> &Metadata,</div>
+<div class="line"><a name="l00885"></a><span class="lineno">  885</span>                                     llvm::SmallPtrSet<Module *, 16> &Visited) {</div>
+<div class="line"><a name="l00886"></a><span class="lineno">  886</span>   <span class="comment">// Import this module's parent.</span></div>
+<div class="line"><a name="l00887"></a><span class="lineno">  887</span>   <span class="keywordflow">if</span> (Mod-><a class="code" href="classclang_1_1Module.html#a2bf2f0da38465698656382734688ebef" title="The parent of this module. This will be NULL for the top-level module.">Parent</a> && Visited.insert(Mod-><a class="code" href="classclang_1_1Module.html#a2bf2f0da38465698656382734688ebef" title="The parent of this module. This will be NULL for the top-level module.">Parent</a>)) {</div>
+<div class="line"><a name="l00888"></a><span class="lineno">  888</span>     <a class="code" href="CodeGenModule_8cpp.html#a5b77edcb322fe82494a483f358ce494a" title="Add link options implied by the given module, including modules it depends on, using a postorder walk...">addLinkOptionsPostorder</a>(CGM, Mod-><a class="code" href="classclang_1_1Module.html#a2bf2f0da38465698656382734688ebef" title="The parent of this module. This will be NULL for the top-level module.">Parent</a>, Metadata, Visited);</div>
+<div class="line"><a name="l00889"></a><span class="lineno">  889</span>   }</div>
+<div class="line"><a name="l00890"></a><span class="lineno">  890</span> </div>
+<div class="line"><a name="l00891"></a><span class="lineno">  891</span>   <span class="comment">// Import this module's dependencies.</span></div>
+<div class="line"><a name="l00892"></a><span class="lineno">  892</span>   <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> I = Mod-><a class="code" href="classclang_1_1Module.html#adf590ab26fa6d5c23acda05c8f93165d" title="The set of modules imported by this module, and on which this module depends.">Imports</a>.size(); I > 0; --I) {</div>
+<div class="line"><a name="l00893"></a><span class="lineno">  893</span>     <span class="keywordflow">if</span> (Visited.insert(Mod-><a class="code" href="classclang_1_1Module.html#adf590ab26fa6d5c23acda05c8f93165d" title="The set of modules imported by this module, and on which this module depends.">Imports</a>[I-1]))</div>
+<div class="line"><a name="l00894"></a><span class="lineno">  894</span>       <a class="code" href="CodeGenModule_8cpp.html#a5b77edcb322fe82494a483f358ce494a" title="Add link options implied by the given module, including modules it depends on, using a postorder walk...">addLinkOptionsPostorder</a>(CGM, Mod-><a class="code" href="classclang_1_1Module.html#adf590ab26fa6d5c23acda05c8f93165d" title="The set of modules imported by this module, and on which this module depends.">Imports</a>[I-1], Metadata, Visited);</div>
+<div class="line"><a name="l00895"></a><span class="lineno">  895</span>   }</div>
+<div class="line"><a name="l00896"></a><span class="lineno">  896</span> </div>
+<div class="line"><a name="l00897"></a><span class="lineno">  897</span>   <span class="comment">// Add linker options to link against the libraries/frameworks</span></div>
+<div class="line"><a name="l00898"></a><span class="lineno">  898</span>   <span class="comment">// described by this module.</span></div>
+<div class="line"><a name="l00899"></a><span class="lineno">  899</span>   llvm::LLVMContext &<a class="code" href="ASTMatchFinder_8cpp.html#a779280869b9fac47a9bc391e7709171f">Context</a> = CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a6c8cff399ad98c730cce0907b1acd44e">getLLVMContext</a>();</div>
+<div class="line"><a name="l00900"></a><span class="lineno">  900</span>   <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> I = Mod-><a class="code" href="classclang_1_1Module.html#a59f744ae0f6907785614508d01a5cd59" title="The set of libraries or frameworks to link against when an entity from this module is used...">LinkLibraries</a>.size(); I > 0; --I) {</div>
+<div class="line"><a name="l00901"></a><span class="lineno">  901</span>     <span class="comment">// Link against a framework.  Frameworks are currently Darwin only, so we</span></div>
+<div class="line"><a name="l00902"></a><span class="lineno">  902</span>     <span class="comment">// don't to ask TargetCodeGenInfo for the spelling of the linker option.</span></div>
+<div class="line"><a name="l00903"></a><span class="lineno">  903</span>     <span class="keywordflow">if</span> (Mod-><a class="code" href="classclang_1_1Module.html#a59f744ae0f6907785614508d01a5cd59" title="The set of libraries or frameworks to link against when an entity from this module is used...">LinkLibraries</a>[I-1].IsFramework) {</div>
+<div class="line"><a name="l00904"></a><span class="lineno">  904</span>       <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *<a class="code" href="SemaOverload_8cpp.html#ab0970fce5a85028c7eac6fb99797fea5">Args</a>[2] = {</div>
+<div class="line"><a name="l00905"></a><span class="lineno">  905</span>         llvm::MDString::get(Context, <span class="stringliteral">"-framework"</span>),</div>
+<div class="line"><a name="l00906"></a><span class="lineno">  906</span>         llvm::MDString::get(Context, Mod-><a class="code" href="classclang_1_1Module.html#a59f744ae0f6907785614508d01a5cd59" title="The set of libraries or frameworks to link against when an entity from this module is used...">LinkLibraries</a>[I-1].Library)</div>
+<div class="line"><a name="l00907"></a><span class="lineno">  907</span>       };</div>
+<div class="line"><a name="l00908"></a><span class="lineno">  908</span> </div>
+<div class="line"><a name="l00909"></a><span class="lineno">  909</span>       Metadata.push_back(llvm::MDNode::get(Context, Args));</div>
+<div class="line"><a name="l00910"></a><span class="lineno">  910</span>       <span class="keywordflow">continue</span>;</div>
+<div class="line"><a name="l00911"></a><span class="lineno">  911</span>     }</div>
+<div class="line"><a name="l00912"></a><span class="lineno">  912</span> </div>
+<div class="line"><a name="l00913"></a><span class="lineno">  913</span>     <span class="comment">// Link against a library.</span></div>
+<div class="line"><a name="l00914"></a><span class="lineno">  914</span>     <a class="code" href="classllvm_1_1SmallString.html">llvm::SmallString<24></a> Opt;</div>
+<div class="line"><a name="l00915"></a><span class="lineno">  915</span>     CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ac098ad9054632d2c6c4bf4c243cb04b1">getTargetCodeGenInfo</a>().<a class="code" href="classclang_1_1TargetCodeGenInfo.html#a8f93a653616a5afcb3345b8cb64f1bc8">getDependentLibraryOption</a>(</div>
+<div class="line"><a name="l00916"></a><span class="lineno">  916</span>       Mod-><a class="code" href="classclang_1_1Module.html#a59f744ae0f6907785614508d01a5cd59" title="The set of libraries or frameworks to link against when an entity from this module is used...">LinkLibraries</a>[I-1].Library, Opt);</div>
+<div class="line"><a name="l00917"></a><span class="lineno">  917</span>     <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *OptString = llvm::MDString::get(Context, Opt);</div>
+<div class="line"><a name="l00918"></a><span class="lineno">  918</span>     Metadata.push_back(llvm::MDNode::get(Context, OptString));</div>
+<div class="line"><a name="l00919"></a><span class="lineno">  919</span>   }</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> </div>
+<div class="line"><a name="l00922"></a><span class="lineno">  922</span> <span class="keywordtype">void</span> CodeGenModule::EmitModuleLinkOptions() {</div>
+<div class="line"><a name="l00923"></a><span class="lineno">  923</span>   <span class="comment">// Collect the set of all of the modules we want to visit to emit link</span></div>
+<div class="line"><a name="l00924"></a><span class="lineno">  924</span>   <span class="comment">// options, which is essentially the imported modules and all of their</span></div>
+<div class="line"><a name="l00925"></a><span class="lineno">  925</span>   <span class="comment">// non-explicit child modules.</span></div>
+<div class="line"><a name="l00926"></a><span class="lineno">  926</span>   llvm::SetVector<clang::Module *> LinkModules;</div>
+<div class="line"><a name="l00927"></a><span class="lineno">  927</span>   llvm::SmallPtrSet<clang::Module *, 16> Visited;</div>
+<div class="line"><a name="l00928"></a><span class="lineno">  928</span>   <a class="code" href="classllvm_1_1SmallVector.html">SmallVector<clang::Module *, 16></a> <a class="code" href="UnwrappedLineParser_8cpp.html#a118f9e9887ee5c70966fe9b74b815f79">Stack</a>;</div>
+<div class="line"><a name="l00929"></a><span class="lineno">  929</span> </div>
+<div class="line"><a name="l00930"></a><span class="lineno">  930</span>   <span class="comment">// Seed the stack with imported modules.</span></div>
+<div class="line"><a name="l00931"></a><span class="lineno">  931</span>   <span class="keywordflow">for</span> (llvm::SetVector<clang::Module *>::iterator M = ImportedModules.begin(),</div>
+<div class="line"><a name="l00932"></a><span class="lineno">  932</span>                                                MEnd = ImportedModules.end();</div>
+<div class="line"><a name="l00933"></a><span class="lineno">  933</span>        M != MEnd; ++M) {</div>
+<div class="line"><a name="l00934"></a><span class="lineno">  934</span>     <span class="keywordflow">if</span> (Visited.insert(*M))</div>
+<div class="line"><a name="l00935"></a><span class="lineno">  935</span>       Stack.push_back(*M);</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> </div>
+<div class="line"><a name="l00938"></a><span class="lineno">  938</span>   <span class="comment">// Find all of the modules to import, making a little effort to prune</span></div>
+<div class="line"><a name="l00939"></a><span class="lineno">  939</span>   <span class="comment">// non-leaf modules.</span></div>
+<div class="line"><a name="l00940"></a><span class="lineno">  940</span>   <span class="keywordflow">while</span> (!Stack.empty()) {</div>
+<div class="line"><a name="l00941"></a><span class="lineno">  941</span>     <a class="code" href="classclang_1_1Module.html" title="Describes a module or submodule.">clang::Module</a> *Mod = Stack.pop_back_val();</div>
+<div class="line"><a name="l00942"></a><span class="lineno">  942</span> </div>
+<div class="line"><a name="l00943"></a><span class="lineno">  943</span>     <span class="keywordtype">bool</span> AnyChildren = <span class="keyword">false</span>;</div>
+<div class="line"><a name="l00944"></a><span class="lineno">  944</span> </div>
+<div class="line"><a name="l00945"></a><span class="lineno">  945</span>     <span class="comment">// Visit the submodules of this module.</span></div>
+<div class="line"><a name="l00946"></a><span class="lineno">  946</span>     <span class="keywordflow">for</span> (<a class="code" href="classclang_1_1Module.html#aade7ef252a186121e056cf35f6d56fb5">clang::Module::submodule_iterator</a> Sub = Mod-><a class="code" href="classclang_1_1Module.html#a9c95e62394e8873c8825a8c3993923d1">submodule_begin</a>(),</div>
+<div class="line"><a name="l00947"></a><span class="lineno">  947</span>                                         SubEnd = Mod-><a class="code" href="classclang_1_1Module.html#aefeb9dd237268b0c0f9ef0a2fb24dcf9">submodule_end</a>();</div>
+<div class="line"><a name="l00948"></a><span class="lineno">  948</span>          Sub != SubEnd; ++Sub) {</div>
+<div class="line"><a name="l00949"></a><span class="lineno">  949</span>       <span class="comment">// Skip explicit children; they need to be explicitly imported to be</span></div>
+<div class="line"><a name="l00950"></a><span class="lineno">  950</span>       <span class="comment">// linked against.</span></div>
+<div class="line"><a name="l00951"></a><span class="lineno">  951</span>       <span class="keywordflow">if</span> ((*Sub)->IsExplicit)</div>
+<div class="line"><a name="l00952"></a><span class="lineno">  952</span>         <span class="keywordflow">continue</span>;</div>
+<div class="line"><a name="l00953"></a><span class="lineno">  953</span> </div>
+<div class="line"><a name="l00954"></a><span class="lineno">  954</span>       <span class="keywordflow">if</span> (Visited.insert(*Sub)) {</div>
+<div class="line"><a name="l00955"></a><span class="lineno">  955</span>         Stack.push_back(*Sub);</div>
+<div class="line"><a name="l00956"></a><span class="lineno">  956</span>         AnyChildren = <span class="keyword">true</span>;</div>
+<div class="line"><a name="l00957"></a><span class="lineno">  957</span>       }</div>
+<div class="line"><a name="l00958"></a><span class="lineno">  958</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="comment">// We didn't find any children, so add this module to the list of</span></div>
+<div class="line"><a name="l00961"></a><span class="lineno">  961</span>     <span class="comment">// modules to link against.</span></div>
+<div class="line"><a name="l00962"></a><span class="lineno">  962</span>     <span class="keywordflow">if</span> (!AnyChildren) {</div>
+<div class="line"><a name="l00963"></a><span class="lineno">  963</span>       LinkModules.insert(Mod);</div>
+<div class="line"><a name="l00964"></a><span class="lineno">  964</span>     }</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> </div>
+<div class="line"><a name="l00967"></a><span class="lineno">  967</span>   <span class="comment">// Add link options for all of the imported modules in reverse topological</span></div>
+<div class="line"><a name="l00968"></a><span class="lineno">  968</span>   <span class="comment">// order.  We don't do anything to try to order import link flags with respect</span></div>
+<div class="line"><a name="l00969"></a><span class="lineno">  969</span>   <span class="comment">// to linker options inserted by things like #pragma comment().</span></div>
+<div class="line"><a name="l00970"></a><span class="lineno">  970</span>   <a class="code" href="classllvm_1_1SmallVector.html">SmallVector<llvm::Value *, 16></a> MetadataArgs;</div>
+<div class="line"><a name="l00971"></a><span class="lineno">  971</span>   Visited.clear();</div>
+<div class="line"><a name="l00972"></a><span class="lineno">  972</span>   <span class="keywordflow">for</span> (llvm::SetVector<clang::Module *>::iterator M = LinkModules.begin(),</div>
+<div class="line"><a name="l00973"></a><span class="lineno">  973</span>                                                MEnd = LinkModules.end();</div>
+<div class="line"><a name="l00974"></a><span class="lineno">  974</span>        M != MEnd; ++M) {</div>
+<div class="line"><a name="l00975"></a><span class="lineno">  975</span>     <span class="keywordflow">if</span> (Visited.insert(*M))</div>
+<div class="line"><a name="l00976"></a><span class="lineno">  976</span>       <a class="code" href="CodeGenModule_8cpp.html#a5b77edcb322fe82494a483f358ce494a" title="Add link options implied by the given module, including modules it depends on, using a postorder walk...">addLinkOptionsPostorder</a>(*<span class="keyword">this</span>, *M, MetadataArgs, Visited);</div>
+<div class="line"><a name="l00977"></a><span class="lineno">  977</span>   }</div>
+<div class="line"><a name="l00978"></a><span class="lineno">  978</span>   std::reverse(MetadataArgs.begin(), MetadataArgs.end());</div>
+<div class="line"><a name="l00979"></a><span class="lineno">  979</span>   LinkerOptionsMetadata.append(MetadataArgs.begin(), MetadataArgs.end());</div>
+<div class="line"><a name="l00980"></a><span class="lineno">  980</span> </div>
+<div class="line"><a name="l00981"></a><span class="lineno">  981</span>   <span class="comment">// Add the linker options metadata flag.</span></div>
+<div class="line"><a name="l00982"></a><span class="lineno">  982</span>   <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a908409c9231b015784ca008fd6bcb961">getModule</a>().addModuleFlag(llvm::Module::AppendUnique, <span class="stringliteral">"Linker Options"</span>,</div>
+<div class="line"><a name="l00983"></a><span class="lineno">  983</span>                             llvm::MDNode::get(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a6c8cff399ad98c730cce0907b1acd44e">getLLVMContext</a>(),</div>
+<div class="line"><a name="l00984"></a><span class="lineno">  984</span>                                               LinkerOptionsMetadata));</div>
+<div class="line"><a name="l00985"></a><span class="lineno">  985</span> }</div>
+<div class="line"><a name="l00986"></a><span class="lineno">  986</span> </div>
+<div class="line"><a name="l00987"></a><span class="lineno">  987</span> <span class="keywordtype">void</span> CodeGenModule::EmitDeferred() {</div>
+<div class="line"><a name="l00988"></a><span class="lineno">  988</span>   <span class="comment">// Emit code for any potentially referenced deferred decls.  Since a</span></div>
+<div class="line"><a name="l00989"></a><span class="lineno">  989</span>   <span class="comment">// previously unused static decl may become used during the generation of code</span></div>
+<div class="line"><a name="l00990"></a><span class="lineno">  990</span>   <span class="comment">// for a static function, iterate until no changes are made.</span></div>
+<div class="line"><a name="l00991"></a><span class="lineno">  991</span> </div>
+<div class="line"><a name="l00992"></a><span class="lineno">  992</span>   <span class="keywordflow">while</span> (<span class="keyword">true</span>) {</div>
+<div class="line"><a name="l00993"></a><span class="lineno">  993</span>     <span class="keywordflow">if</span> (!DeferredVTables.empty()) {</div>
+<div class="line"><a name="l00994"></a><span class="lineno">  994</span>       EmitDeferredVTables();</div>
+<div class="line"><a name="l00995"></a><span class="lineno">  995</span> </div>
+<div class="line"><a name="l00996"></a><span class="lineno">  996</span>       <span class="comment">// Emitting a v-table doesn't directly cause more v-tables to</span></div>
+<div class="line"><a name="l00997"></a><span class="lineno">  997</span>       <span class="comment">// become deferred, although it can cause functions to be</span></div>
+<div class="line"><a name="l00998"></a><span class="lineno">  998</span>       <span class="comment">// emitted that then need those v-tables.</span></div>
+<div class="line"><a name="l00999"></a><span class="lineno">  999</span>       assert(DeferredVTables.empty());</div>
+<div class="line"><a name="l01000"></a><span class="lineno"> 1000</span>     }</div>
+<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span> </div>
+<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span>     <span class="comment">// Stop if we're out of both deferred v-tables and deferred declarations.</span></div>
+<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span>     <span class="keywordflow">if</span> (DeferredDeclsToEmit.empty()) <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span> </div>
+<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span>     <a class="code" href="classclang_1_1GlobalDecl.html">GlobalDecl</a> D = DeferredDeclsToEmit.back();</div>
+<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span>     DeferredDeclsToEmit.pop_back();</div>
+<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span> </div>
+<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span>     <span class="comment">// Check to see if we've already emitted this.  This is necessary</span></div>
+<div class="line"><a name="l01009"></a><span class="lineno"> 1009</span>     <span class="comment">// for a couple of reasons: first, decls can end up in the</span></div>
+<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span>     <span class="comment">// deferred-decls queue multiple times, and second, decls can end</span></div>
+<div class="line"><a name="l01011"></a><span class="lineno"> 1011</span>     <span class="comment">// up with definitions in unusual ways (e.g. by an extern inline</span></div>
+<div class="line"><a name="l01012"></a><span class="lineno"> 1012</span>     <span class="comment">// function acquiring a strong function redefinition).  Just</span></div>
+<div class="line"><a name="l01013"></a><span class="lineno"> 1013</span>     <span class="comment">// ignore these cases.</span></div>
+<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span>     <span class="comment">//</span></div>
+<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span>     <span class="comment">// TODO: That said, looking this up multiple times is very wasteful.</span></div>
+<div class="line"><a name="l01016"></a><span class="lineno"> 1016</span>     StringRef Name = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ac2e5fda10002d34cd7f20fc0c2615a51">getMangledName</a>(D);</div>
+<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span>     llvm::GlobalValue *CGRef = GetGlobalValue(Name);</div>
+<div class="line"><a name="l01018"></a><span class="lineno"> 1018</span>     assert(CGRef && <span class="stringliteral">"Deferred decl wasn't referenced?"</span>);</div>
+<div class="line"><a name="l01019"></a><span class="lineno"> 1019</span> </div>
+<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span>     <span class="keywordflow">if</span> (!CGRef->isDeclaration())</div>
+<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span>       <span class="keywordflow">continue</span>;</div>
+<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span> </div>
+<div class="line"><a name="l01023"></a><span class="lineno"> 1023</span>     <span class="comment">// GlobalAlias::isDeclaration() defers to the aliasee, but for our</span></div>
+<div class="line"><a name="l01024"></a><span class="lineno"> 1024</span>     <span class="comment">// purposes an alias counts as a definition.</span></div>
+<div class="line"><a name="l01025"></a><span class="lineno"> 1025</span>     <span class="keywordflow">if</span> (isa<llvm::GlobalAlias>(CGRef))</div>
+<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span>       <span class="keywordflow">continue</span>;</div>
+<div class="line"><a name="l01027"></a><span class="lineno"> 1027</span> </div>
+<div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>     <span class="comment">// Otherwise, emit the definition and move on to the next one.</span></div>
+<div class="line"><a name="l01029"></a><span class="lineno"> 1029</span>     EmitGlobalDefinition(D);</div>
+<div class="line"><a name="l01030"></a><span class="lineno"> 1030</span>   }</div>
+<div class="line"><a name="l01031"></a><span class="lineno"> 1031</span> }</div>
+<div class="line"><a name="l01032"></a><span class="lineno"> 1032</span> </div>
+<div class="line"><a name="l01033"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a8dc9d9de9715c024eb9de12c97fd8d1d"> 1033</a></span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a8dc9d9de9715c024eb9de12c97fd8d1d" title="Emit all the global annotations.">CodeGenModule::EmitGlobalAnnotations</a>() {</div>
+<div class="line"><a name="l01034"></a><span class="lineno"> 1034</span>   <span class="keywordflow">if</span> (Annotations.empty())</div>
+<div class="line"><a name="l01035"></a><span class="lineno"> 1035</span>     <span class="keywordflow">return</span>;</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="comment">// Create a new global variable for the ConstantStruct in the Module.</span></div>
+<div class="line"><a name="l01038"></a><span class="lineno"> 1038</span>   llvm::Constant *Array = llvm::ConstantArray::get(llvm::ArrayType::get(</div>
+<div class="line"><a name="l01039"></a><span class="lineno"> 1039</span>     Annotations[0]->getType(), Annotations.size()), Annotations);</div>
+<div class="line"><a name="l01040"></a><span class="lineno"> 1040</span>   llvm::GlobalValue *gv = <span class="keyword">new</span> llvm::GlobalVariable(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a908409c9231b015784ca008fd6bcb961">getModule</a>(),</div>
+<div class="line"><a name="l01041"></a><span class="lineno"> 1041</span>     Array->getType(), <span class="keyword">false</span>, llvm::GlobalValue::AppendingLinkage, Array,</div>
+<div class="line"><a name="l01042"></a><span class="lineno"> 1042</span>     <span class="stringliteral">"llvm.global.annotations"</span>);</div>
+<div class="line"><a name="l01043"></a><span class="lineno"> 1043</span>   gv->setSection(<a class="code" href="CodeGenModule_8cpp.html#a5d4bd8280873f6da00e1ba854290301a">AnnotationSection</a>);</div>
+<div class="line"><a name="l01044"></a><span class="lineno"> 1044</span> }</div>
+<div class="line"><a name="l01045"></a><span class="lineno"> 1045</span> </div>
+<div class="line"><a name="l01046"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ab58a8771ce232816fb2aa5cb6e3f38cb"> 1046</a></span> llvm::Constant *<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ab58a8771ce232816fb2aa5cb6e3f38cb" title="Emit an annotation string.">CodeGenModule::EmitAnnotationString</a>(StringRef Str) {</div>
+<div class="line"><a name="l01047"></a><span class="lineno"> 1047</span>   llvm::Constant *&AStr = AnnotationStrings[Str];</div>
+<div class="line"><a name="l01048"></a><span class="lineno"> 1048</span>   <span class="keywordflow">if</span> (AStr)</div>
+<div class="line"><a name="l01049"></a><span class="lineno"> 1049</span>     <span class="keywordflow">return</span> AStr;</div>
+<div class="line"><a name="l01050"></a><span class="lineno"> 1050</span> </div>
+<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span>   <span class="comment">// Not found yet, create a new global.</span></div>
+<div class="line"><a name="l01052"></a><span class="lineno"> 1052</span>   llvm::Constant *s = llvm::ConstantDataArray::getString(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a6c8cff399ad98c730cce0907b1acd44e">getLLVMContext</a>(), Str);</div>
+<div class="line"><a name="l01053"></a><span class="lineno"> 1053</span>   llvm::GlobalValue *gv = <span class="keyword">new</span> llvm::GlobalVariable(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a908409c9231b015784ca008fd6bcb961">getModule</a>(), s->getType(),</div>
+<div class="line"><a name="l01054"></a><span class="lineno"> 1054</span>     <span class="keyword">true</span>, llvm::GlobalValue::PrivateLinkage, s, <span class="stringliteral">".str"</span>);</div>
+<div class="line"><a name="l01055"></a><span class="lineno"> 1055</span>   gv->setSection(<a class="code" href="CodeGenModule_8cpp.html#a5d4bd8280873f6da00e1ba854290301a">AnnotationSection</a>);</div>
+<div class="line"><a name="l01056"></a><span class="lineno"> 1056</span>   gv->setUnnamedAddr(<span class="keyword">true</span>);</div>
+<div class="line"><a name="l01057"></a><span class="lineno"> 1057</span>   AStr = gv;</div>
+<div class="line"><a name="l01058"></a><span class="lineno"> 1058</span>   <span class="keywordflow">return</span> gv;</div>
+<div class="line"><a name="l01059"></a><span class="lineno"> 1059</span> }</div>
+<div class="line"><a name="l01060"></a><span class="lineno"> 1060</span> </div>
+<div class="line"><a name="l01061"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#af7f6d787811e4acafac14eaebe9f7f0b"> 1061</a></span> llvm::Constant *<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#af7f6d787811e4acafac14eaebe9f7f0b" title="Emit the annotation's translation unit.">CodeGenModule::EmitAnnotationUnit</a>(<a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> Loc) {</div>
+<div class="line"><a name="l01062"></a><span class="lineno"> 1062</span>   <a class="code" href="classclang_1_1SourceManager.html" title="This class handles loading and caching of source files into memory.">SourceManager</a> &<a class="code" href="AnalysisBasedWarnings_8cpp.html#afe4356a77609114d8df0bfc9c2b8701f">SM</a> = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>().<a class="code" href="classclang_1_1ASTContext.html#a091e2575135f7f9f1aeb25ba0090bfde">getSourceManager</a>();</div>
+<div class="line"><a name="l01063"></a><span class="lineno"> 1063</span>   <a class="code" href="classclang_1_1PresumedLoc.html" title="Represents an unpacked "presumed" location which can be presented to the user.">PresumedLoc</a> PLoc = SM.<a class="code" href="classclang_1_1SourceManager.html#a28f3fe716f6b9c504beb968f0eb8c17d" title="Returns the "presumed" location of a SourceLocation specifies.">getPresumedLoc</a>(Loc);</div>
+<div class="line"><a name="l01064"></a><span class="lineno"> 1064</span>   <span class="keywordflow">if</span> (PLoc.<a class="code" href="classclang_1_1PresumedLoc.html#a507bb1ade126b405a32b69d19c5cc4fa">isValid</a>())</div>
+<div class="line"><a name="l01065"></a><span class="lineno"> 1065</span>     <span class="keywordflow">return</span> <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ab58a8771ce232816fb2aa5cb6e3f38cb" title="Emit an annotation string.">EmitAnnotationString</a>(PLoc.<a class="code" href="classclang_1_1PresumedLoc.html#ad7b3e219f0b8f103d47bdb2516502298" title="Return the presumed filename of this location.">getFilename</a>());</div>
+<div class="line"><a name="l01066"></a><span class="lineno"> 1066</span>   <span class="keywordflow">return</span> <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ab58a8771ce232816fb2aa5cb6e3f38cb" title="Emit an annotation string.">EmitAnnotationString</a>(SM.<a class="code" href="classclang_1_1SourceManager.html#abe4f1b848fbaa9d9ce39c5ceab826965" title="Return the filename or buffer identifier of the buffer the location is in.">getBufferName</a>(Loc));</div>
+<div class="line"><a name="l01067"></a><span class="lineno"> 1067</span> }</div>
+<div class="line"><a name="l01068"></a><span class="lineno"> 1068</span> </div>
+<div class="line"><a name="l01069"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a435a60e6b711b0a5ef1908efb5552b6f"> 1069</a></span> llvm::Constant *<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a435a60e6b711b0a5ef1908efb5552b6f" title="Emit the annotation line number.">CodeGenModule::EmitAnnotationLineNo</a>(<a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> L) {</div>
+<div class="line"><a name="l01070"></a><span class="lineno"> 1070</span>   <a class="code" href="classclang_1_1SourceManager.html" title="This class handles loading and caching of source files into memory.">SourceManager</a> &<a class="code" href="AnalysisBasedWarnings_8cpp.html#afe4356a77609114d8df0bfc9c2b8701f">SM</a> = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>().<a class="code" href="classclang_1_1ASTContext.html#a091e2575135f7f9f1aeb25ba0090bfde">getSourceManager</a>();</div>
+<div class="line"><a name="l01071"></a><span class="lineno"> 1071</span>   <a class="code" href="classclang_1_1PresumedLoc.html" title="Represents an unpacked "presumed" location which can be presented to the user.">PresumedLoc</a> PLoc = SM.<a class="code" href="classclang_1_1SourceManager.html#a28f3fe716f6b9c504beb968f0eb8c17d" title="Returns the "presumed" location of a SourceLocation specifies.">getPresumedLoc</a>(L);</div>
+<div class="line"><a name="l01072"></a><span class="lineno"> 1072</span>   <span class="keywordtype">unsigned</span> LineNo = PLoc.<a class="code" href="classclang_1_1PresumedLoc.html#a507bb1ade126b405a32b69d19c5cc4fa">isValid</a>() ? PLoc.<a class="code" href="classclang_1_1PresumedLoc.html#acfc1284e86ca48cdfcaf5d118c6abb30" title="Return the presumed line number of this location.">getLine</a>() :</div>
+<div class="line"><a name="l01073"></a><span class="lineno"> 1073</span>     SM.<a class="code" href="classclang_1_1SourceManager.html#af71b79d2d27b647e3cb1bb922babd587">getExpansionLineNumber</a>(L);</div>
+<div class="line"><a name="l01074"></a><span class="lineno"> 1074</span>   <span class="keywordflow">return</span> llvm::ConstantInt::get(<a class="code" href="structclang_1_1CodeGen_1_1CodeGenTypeCache.html#a9b70851ea2ff034ca9a5443ce213a81c">Int32Ty</a>, LineNo);</div>
+<div class="line"><a name="l01075"></a><span class="lineno"> 1075</span> }</div>
+<div class="line"><a name="l01076"></a><span class="lineno"> 1076</span> </div>
+<div class="line"><a name="l01077"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a3785ae3902e85c4b859fb9ed8d3939ca"> 1077</a></span> llvm::Constant *<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a3785ae3902e85c4b859fb9ed8d3939ca">CodeGenModule::EmitAnnotateAttr</a>(llvm::GlobalValue *GV,</div>
+<div class="line"><a name="l01078"></a><span class="lineno"> 1078</span>                                                 <span class="keyword">const</span> <a class="code" href="classclang_1_1AnnotateAttr.html">AnnotateAttr</a> *AA,</div>
+<div class="line"><a name="l01079"></a><span class="lineno"> 1079</span>                                                 <a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> L) {</div>
+<div class="line"><a name="l01080"></a><span class="lineno"> 1080</span>   <span class="comment">// Get the globals for file name, annotation, and the line number.</span></div>
+<div class="line"><a name="l01081"></a><span class="lineno"> 1081</span>   llvm::Constant *AnnoGV = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ab58a8771ce232816fb2aa5cb6e3f38cb" title="Emit an annotation string.">EmitAnnotationString</a>(AA-><a class="code" href="classclang_1_1AnnotateAttr.html#ae0382ce0f5a51cab57d5ab909bb4682a">getAnnotation</a>()),</div>
+<div class="line"><a name="l01082"></a><span class="lineno"> 1082</span>                  *UnitGV = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#af7f6d787811e4acafac14eaebe9f7f0b" title="Emit the annotation's translation unit.">EmitAnnotationUnit</a>(L),</div>
+<div class="line"><a name="l01083"></a><span class="lineno"> 1083</span>                  *LineNoCst = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a435a60e6b711b0a5ef1908efb5552b6f" title="Emit the annotation line number.">EmitAnnotationLineNo</a>(L);</div>
+<div class="line"><a name="l01084"></a><span class="lineno"> 1084</span> </div>
+<div class="line"><a name="l01085"></a><span class="lineno"> 1085</span>   <span class="comment">// Create the ConstantStruct for the global annotation.</span></div>
+<div class="line"><a name="l01086"></a><span class="lineno"> 1086</span>   llvm::Constant *Fields[4] = {</div>
+<div class="line"><a name="l01087"></a><span class="lineno"> 1087</span>     llvm::ConstantExpr::getBitCast(GV, <a class="code" href="structclang_1_1CodeGen_1_1CodeGenTypeCache.html#ac3ec7e3938996c5354dbee1a103ed4d2">Int8PtrTy</a>),</div>
+<div class="line"><a name="l01088"></a><span class="lineno"> 1088</span>     llvm::ConstantExpr::getBitCast(AnnoGV, <a class="code" href="structclang_1_1CodeGen_1_1CodeGenTypeCache.html#ac3ec7e3938996c5354dbee1a103ed4d2">Int8PtrTy</a>),</div>
+<div class="line"><a name="l01089"></a><span class="lineno"> 1089</span>     llvm::ConstantExpr::getBitCast(UnitGV, <a class="code" href="structclang_1_1CodeGen_1_1CodeGenTypeCache.html#ac3ec7e3938996c5354dbee1a103ed4d2">Int8PtrTy</a>),</div>
+<div class="line"><a name="l01090"></a><span class="lineno"> 1090</span>     LineNoCst</div>
+<div class="line"><a name="l01091"></a><span class="lineno"> 1091</span>   };</div>
+<div class="line"><a name="l01092"></a><span class="lineno"> 1092</span>   <span class="keywordflow">return</span> llvm::ConstantStruct::getAnon(Fields);</div>
+<div class="line"><a name="l01093"></a><span class="lineno"> 1093</span> }</div>
+<div class="line"><a name="l01094"></a><span class="lineno"> 1094</span> </div>
+<div class="line"><a name="l01095"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#aa852a65b18d48138ff889bdb8ce281ad"> 1095</a></span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#aa852a65b18d48138ff889bdb8ce281ad">CodeGenModule::AddGlobalAnnotations</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1ValueDecl.html">ValueDecl</a> *D,</div>
+<div class="line"><a name="l01096"></a><span class="lineno"> 1096</span>                                          llvm::GlobalValue *GV) {</div>
+<div class="line"><a name="l01097"></a><span class="lineno"> 1097</span>   assert(D-><a class="code" href="classclang_1_1Decl.html#ac60cc8b34313e03a5c40277c5c5ad61b">hasAttr</a><<a class="code" href="classclang_1_1AnnotateAttr.html">AnnotateAttr</a>>() && <span class="stringliteral">"no annotate attribute"</span>);</div>
+<div class="line"><a name="l01098"></a><span class="lineno"> 1098</span>   <span class="comment">// Get the struct elements for these annotations.</span></div>
+<div class="line"><a name="l01099"></a><span class="lineno"> 1099</span>   <span class="keywordflow">for</span> (<a class="code" href="classclang_1_1specific__attr__iterator.html">specific_attr_iterator<AnnotateAttr></a></div>
+<div class="line"><a name="l01100"></a><span class="lineno"> 1100</span>        ai = D-><a class="code" href="classclang_1_1Decl.html#aa548416c9a4242838889f75b0d21125c">specific_attr_begin</a><<a class="code" href="classclang_1_1AnnotateAttr.html">AnnotateAttr</a>>(),</div>
+<div class="line"><a name="l01101"></a><span class="lineno"> 1101</span>        ae = D-><a class="code" href="classclang_1_1Decl.html#ad66b270a4431d18789cae89a3b35f517">specific_attr_end</a><<a class="code" href="classclang_1_1AnnotateAttr.html">AnnotateAttr</a>>(); ai != ae; ++ai)</div>
+<div class="line"><a name="l01102"></a><span class="lineno"> 1102</span>     Annotations.push_back(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a3785ae3902e85c4b859fb9ed8d3939ca">EmitAnnotateAttr</a>(GV, *ai, D-><a class="code" href="classclang_1_1Decl.html#a2348196ac4e0b1d5ebb1859c31b99eac">getLocation</a>()));</div>
+<div class="line"><a name="l01103"></a><span class="lineno"> 1103</span> }</div>
+<div class="line"><a name="l01104"></a><span class="lineno"> 1104</span> </div>
+<div class="line"><a name="l01105"></a><span class="lineno"> 1105</span> <span class="keywordtype">bool</span> CodeGenModule::MayDeferGeneration(<span class="keyword">const</span> <a class="code" href="classclang_1_1ValueDecl.html">ValueDecl</a> *Global) {</div>
+<div class="line"><a name="l01106"></a><span class="lineno"> 1106</span>   <span class="comment">// Never defer when EmitAllDecls is specified.</span></div>
+<div class="line"><a name="l01107"></a><span class="lineno"> 1107</span>   <span class="keywordflow">if</span> (LangOpts.EmitAllDecls)</div>
+<div class="line"><a name="l01108"></a><span class="lineno"> 1108</span>     <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01109"></a><span class="lineno"> 1109</span> </div>
+<div class="line"><a name="l01110"></a><span class="lineno"> 1110</span>   <span class="keywordflow">return</span> !<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>().<a class="code" href="classclang_1_1ASTContext.html#a3b9cd9f4bc5349ff4afd1f98c6ceca28" title="Determines if the decl can be CodeGen'ed or deserialized from PCH lazily, only when used; this is onl...">DeclMustBeEmitted</a>(Global);</div>
+<div class="line"><a name="l01111"></a><span class="lineno"> 1111</span> }</div>
+<div class="line"><a name="l01112"></a><span class="lineno"> 1112</span> </div>
+<div class="line"><a name="l01113"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#abc9c1fa13280a3a2613a45091afa9ed0"> 1113</a></span> llvm::Constant *<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#abc9c1fa13280a3a2613a45091afa9ed0" title="GetAddrOfUuidDescriptor - Get the address of a uuid descriptor .">CodeGenModule::GetAddrOfUuidDescriptor</a>(</div>
+<div class="line"><a name="l01114"></a><span class="lineno"> 1114</span>     <span class="keyword">const</span> <a class="code" href="classclang_1_1CXXUuidofExpr.html">CXXUuidofExpr</a>* E) {</div>
+<div class="line"><a name="l01115"></a><span class="lineno"> 1115</span>   <span class="comment">// Sema has verified that IIDSource has a __declspec(uuid()), and that its</span></div>
+<div class="line"><a name="l01116"></a><span class="lineno"> 1116</span>   <span class="comment">// well-formed.</span></div>
+<div class="line"><a name="l01117"></a><span class="lineno"> 1117</span>   StringRef Uuid = E-><a class="code" href="classclang_1_1CXXUuidofExpr.html#a7c211d0f156ed85cce585acf5464e2bd">getUuidAsStringRef</a>(Context);</div>
+<div class="line"><a name="l01118"></a><span class="lineno"> 1118</span>   std::string Name = <span class="stringliteral">"_GUID_"</span> + Uuid.lower();</div>
+<div class="line"><a name="l01119"></a><span class="lineno"> 1119</span>   std::replace(Name.begin(), Name.end(), <span class="charliteral">'-'</span>, <span class="charliteral">'_'</span>);</div>
+<div class="line"><a name="l01120"></a><span class="lineno"> 1120</span> </div>
+<div class="line"><a name="l01121"></a><span class="lineno"> 1121</span>   <span class="comment">// Look for an existing global.</span></div>
+<div class="line"><a name="l01122"></a><span class="lineno"> 1122</span>   <span class="keywordflow">if</span> (llvm::GlobalVariable *GV = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a908409c9231b015784ca008fd6bcb961">getModule</a>().getNamedGlobal(Name))</div>
+<div class="line"><a name="l01123"></a><span class="lineno"> 1123</span>     <span class="keywordflow">return</span> GV;</div>
+<div class="line"><a name="l01124"></a><span class="lineno"> 1124</span> </div>
+<div class="line"><a name="l01125"></a><span class="lineno"> 1125</span>   llvm::Constant *Init = EmitUuidofInitializer(Uuid, E-><a class="code" href="classclang_1_1Expr.html#a3dd8850a4ad8a5b5f595dd9e9446187b">getType</a>());</div>
+<div class="line"><a name="l01126"></a><span class="lineno"> 1126</span>   assert(Init && <span class="stringliteral">"failed to initialize as constant"</span>);</div>
+<div class="line"><a name="l01127"></a><span class="lineno"> 1127</span> </div>
+<div class="line"><a name="l01128"></a><span class="lineno"> 1128</span>   llvm::GlobalVariable *GV = <span class="keyword">new</span> llvm::GlobalVariable(</div>
+<div class="line"><a name="l01129"></a><span class="lineno"> 1129</span>       <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a908409c9231b015784ca008fd6bcb961">getModule</a>(), Init->getType(),</div>
+<div class="line"><a name="l01130"></a><span class="lineno"> 1130</span>       <span class="comment">/*isConstant=*/</span><span class="keyword">true</span>, llvm::GlobalValue::LinkOnceODRLinkage, Init, Name);</div>
+<div class="line"><a name="l01131"></a><span class="lineno"> 1131</span>   <span class="keywordflow">return</span> GV;</div>
+<div class="line"><a name="l01132"></a><span class="lineno"> 1132</span> }</div>
+<div class="line"><a name="l01133"></a><span class="lineno"> 1133</span> </div>
+<div class="line"><a name="l01134"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ad04cdc27a6518a36dc2c892a56b91478"> 1134</a></span> llvm::Constant *<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ad04cdc27a6518a36dc2c892a56b91478" title="GetWeakRefReference - Get a reference to the target of VD.">CodeGenModule::GetWeakRefReference</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1ValueDecl.html">ValueDecl</a> *VD) {</div>
+<div class="line"><a name="l01135"></a><span class="lineno"> 1135</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1AliasAttr.html">AliasAttr</a> *AA = VD-><a class="code" href="classclang_1_1Decl.html#a6a041df02fad17a6fabe51af5de0ea3c">getAttr</a><<a class="code" href="classclang_1_1AliasAttr.html">AliasAttr</a>>();</div>
+<div class="line"><a name="l01136"></a><span class="lineno"> 1136</span>   assert(AA && <span class="stringliteral">"No alias?"</span>);</div>
+<div class="line"><a name="l01137"></a><span class="lineno"> 1137</span> </div>
+<div class="line"><a name="l01138"></a><span class="lineno"> 1138</span>   llvm::Type *DeclTy = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a1325760f10142c1da8521b53734858ef">getTypes</a>().<a class="code" href="classclang_1_1CodeGen_1_1CodeGenTypes.html#a9e549d382da897b9d23ed3e2c65e6cf7">ConvertTypeForMem</a>(VD-><a class="code" href="classclang_1_1ValueDecl.html#aefa6d3327144aee23d2935f41d993484">getType</a>());</div>
+<div class="line"><a name="l01139"></a><span class="lineno"> 1139</span> </div>
+<div class="line"><a name="l01140"></a><span class="lineno"> 1140</span>   <span class="comment">// See if there is already something with the target's name in the module.</span></div>
+<div class="line"><a name="l01141"></a><span class="lineno"> 1141</span>   llvm::GlobalValue *Entry = GetGlobalValue(AA-><a class="code" href="classclang_1_1AliasAttr.html#afb06c80da160d5dbde31e1b705fd454c">getAliasee</a>());</div>
+<div class="line"><a name="l01142"></a><span class="lineno"> 1142</span>   <span class="keywordflow">if</span> (Entry) {</div>
+<div class="line"><a name="l01143"></a><span class="lineno"> 1143</span>     <span class="keywordtype">unsigned</span> AS = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>().<a class="code" href="classclang_1_1ASTContext.html#aed2e4aedb5a9fafd8bd586349f1b9f6f">getTargetAddressSpace</a>(VD-><a class="code" href="classclang_1_1ValueDecl.html#aefa6d3327144aee23d2935f41d993484">getType</a>());</div>
+<div class="line"><a name="l01144"></a><span class="lineno"> 1144</span>     <span class="keywordflow">return</span> llvm::ConstantExpr::getBitCast(Entry, DeclTy->getPointerTo(AS));</div>
+<div class="line"><a name="l01145"></a><span class="lineno"> 1145</span>   }</div>
+<div class="line"><a name="l01146"></a><span class="lineno"> 1146</span> </div>
+<div class="line"><a name="l01147"></a><span class="lineno"> 1147</span>   llvm::Constant *Aliasee;</div>
+<div class="line"><a name="l01148"></a><span class="lineno"> 1148</span>   <span class="keywordflow">if</span> (isa<llvm::FunctionType>(DeclTy))</div>
+<div class="line"><a name="l01149"></a><span class="lineno"> 1149</span>     Aliasee = GetOrCreateLLVMFunction(AA-><a class="code" href="classclang_1_1AliasAttr.html#afb06c80da160d5dbde31e1b705fd454c">getAliasee</a>(), DeclTy,</div>
+<div class="line"><a name="l01150"></a><span class="lineno"> 1150</span>                                       <a class="code" href="classclang_1_1GlobalDecl.html">GlobalDecl</a>(cast<FunctionDecl>(VD)),</div>
+<div class="line"><a name="l01151"></a><span class="lineno"> 1151</span>                                       <span class="comment">/*ForVTable=*/</span><span class="keyword">false</span>);</div>
+<div class="line"><a name="l01152"></a><span class="lineno"> 1152</span>   <span class="keywordflow">else</span></div>
+<div class="line"><a name="l01153"></a><span class="lineno"> 1153</span>     Aliasee = GetOrCreateLLVMGlobal(AA-><a class="code" href="classclang_1_1AliasAttr.html#afb06c80da160d5dbde31e1b705fd454c">getAliasee</a>(),</div>
+<div class="line"><a name="l01154"></a><span class="lineno"> 1154</span>                                     llvm::PointerType::getUnqual(DeclTy), 0);</div>
+<div class="line"><a name="l01155"></a><span class="lineno"> 1155</span> </div>
+<div class="line"><a name="l01156"></a><span class="lineno"> 1156</span>   llvm::GlobalValue* F = cast<llvm::GlobalValue>(Aliasee);</div>
+<div class="line"><a name="l01157"></a><span class="lineno"> 1157</span>   F->setLinkage(llvm::Function::ExternalWeakLinkage);</div>
+<div class="line"><a name="l01158"></a><span class="lineno"> 1158</span>   WeakRefReferences.insert(F);</div>
+<div class="line"><a name="l01159"></a><span class="lineno"> 1159</span> </div>
+<div class="line"><a name="l01160"></a><span class="lineno"> 1160</span>   <span class="keywordflow">return</span> Aliasee;</div>
+<div class="line"><a name="l01161"></a><span class="lineno"> 1161</span> }</div>
+<div class="line"><a name="l01162"></a><span class="lineno"> 1162</span> </div>
+<div class="line"><a name="l01163"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4b4e5d8e4c26316c84c11552ddd54232"> 1163</a></span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4b4e5d8e4c26316c84c11552ddd54232">CodeGenModule::EmitGlobal</a>(<a class="code" href="classclang_1_1GlobalDecl.html">GlobalDecl</a> GD) {</div>
+<div class="line"><a name="l01164"></a><span class="lineno"> 1164</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1ValueDecl.html">ValueDecl</a> *Global = cast<ValueDecl>(GD.<a class="code" href="classclang_1_1GlobalDecl.html#a3971ce53aef50b4c3d829615a5ecd0a0">getDecl</a>());</div>
+<div class="line"><a name="l01165"></a><span class="lineno"> 1165</span> </div>
+<div class="line"><a name="l01166"></a><span class="lineno"> 1166</span>   <span class="comment">// Weak references don't produce any output by themselves.</span></div>
+<div class="line"><a name="l01167"></a><span class="lineno"> 1167</span>   <span class="keywordflow">if</span> (Global-><a class="code" href="classclang_1_1Decl.html#ac60cc8b34313e03a5c40277c5c5ad61b">hasAttr</a><<a class="code" href="classclang_1_1WeakRefAttr.html">WeakRefAttr</a>>())</div>
+<div class="line"><a name="l01168"></a><span class="lineno"> 1168</span>     <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l01169"></a><span class="lineno"> 1169</span> </div>
+<div class="line"><a name="l01170"></a><span class="lineno"> 1170</span>   <span class="comment">// If this is an alias definition (which otherwise looks like a declaration)</span></div>
+<div class="line"><a name="l01171"></a><span class="lineno"> 1171</span>   <span class="comment">// emit it now.</span></div>
+<div class="line"><a name="l01172"></a><span class="lineno"> 1172</span>   <span class="keywordflow">if</span> (Global-><a class="code" href="classclang_1_1Decl.html#ac60cc8b34313e03a5c40277c5c5ad61b">hasAttr</a><<a class="code" href="classclang_1_1AliasAttr.html">AliasAttr</a>>())</div>
+<div class="line"><a name="l01173"></a><span class="lineno"> 1173</span>     <span class="keywordflow">return</span> EmitAliasDefinition(GD);</div>
+<div class="line"><a name="l01174"></a><span class="lineno"> 1174</span> </div>
+<div class="line"><a name="l01175"></a><span class="lineno"> 1175</span>   <span class="comment">// If this is CUDA, be selective about which declarations we emit.</span></div>
+<div class="line"><a name="l01176"></a><span class="lineno"> 1176</span>   <span class="keywordflow">if</span> (LangOpts.CUDA) {</div>
+<div class="line"><a name="l01177"></a><span class="lineno"> 1177</span>     <span class="keywordflow">if</span> (CodeGenOpts.CUDAIsDevice) {</div>
+<div class="line"><a name="l01178"></a><span class="lineno"> 1178</span>       <span class="keywordflow">if</span> (!Global-><a class="code" href="classclang_1_1Decl.html#ac60cc8b34313e03a5c40277c5c5ad61b">hasAttr</a><<a class="code" href="classclang_1_1CUDADeviceAttr.html">CUDADeviceAttr</a>>() &&</div>
+<div class="line"><a name="l01179"></a><span class="lineno"> 1179</span>           !Global-><a class="code" href="classclang_1_1Decl.html#ac60cc8b34313e03a5c40277c5c5ad61b">hasAttr</a><<a class="code" href="classclang_1_1CUDAGlobalAttr.html">CUDAGlobalAttr</a>>() &&</div>
+<div class="line"><a name="l01180"></a><span class="lineno"> 1180</span>           !Global-><a class="code" href="classclang_1_1Decl.html#ac60cc8b34313e03a5c40277c5c5ad61b">hasAttr</a><<a class="code" href="classclang_1_1CUDAConstantAttr.html">CUDAConstantAttr</a>>() &&</div>
+<div class="line"><a name="l01181"></a><span class="lineno"> 1181</span>           !Global-><a class="code" href="classclang_1_1Decl.html#ac60cc8b34313e03a5c40277c5c5ad61b">hasAttr</a><<a class="code" href="classclang_1_1CUDASharedAttr.html">CUDASharedAttr</a>>())</div>
+<div class="line"><a name="l01182"></a><span class="lineno"> 1182</span>         <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l01183"></a><span class="lineno"> 1183</span>     } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l01184"></a><span class="lineno"> 1184</span>       <span class="keywordflow">if</span> (!Global-><a class="code" href="classclang_1_1Decl.html#ac60cc8b34313e03a5c40277c5c5ad61b">hasAttr</a><<a class="code" href="classclang_1_1CUDAHostAttr.html">CUDAHostAttr</a>>() && (</div>
+<div class="line"><a name="l01185"></a><span class="lineno"> 1185</span>             Global-><a class="code" href="classclang_1_1Decl.html#ac60cc8b34313e03a5c40277c5c5ad61b">hasAttr</a><<a class="code" href="classclang_1_1CUDADeviceAttr.html">CUDADeviceAttr</a>>() ||</div>
+<div class="line"><a name="l01186"></a><span class="lineno"> 1186</span>             Global-><a class="code" href="classclang_1_1Decl.html#ac60cc8b34313e03a5c40277c5c5ad61b">hasAttr</a><<a class="code" href="classclang_1_1CUDAConstantAttr.html">CUDAConstantAttr</a>>() ||</div>
+<div class="line"><a name="l01187"></a><span class="lineno"> 1187</span>             Global-><a class="code" href="classclang_1_1Decl.html#ac60cc8b34313e03a5c40277c5c5ad61b">hasAttr</a><<a class="code" href="classclang_1_1CUDASharedAttr.html">CUDASharedAttr</a>>()))</div>
+<div class="line"><a name="l01188"></a><span class="lineno"> 1188</span>         <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l01189"></a><span class="lineno"> 1189</span>     }</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> </div>
+<div class="line"><a name="l01192"></a><span class="lineno"> 1192</span>   <span class="comment">// Ignore declarations, they will be emitted on their first use.</span></div>
+<div class="line"><a name="l01193"></a><span class="lineno"> 1193</span>   <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1FunctionDecl.html">FunctionDecl</a> *FD = dyn_cast<FunctionDecl>(Global)) {</div>
+<div class="line"><a name="l01194"></a><span class="lineno"> 1194</span>     <span class="comment">// Forward declarations are emitted lazily on first use.</span></div>
+<div class="line"><a name="l01195"></a><span class="lineno"> 1195</span>     <span class="keywordflow">if</span> (!FD-><a class="code" href="classclang_1_1FunctionDecl.html#a7f9fa35d14b7740c2471adc0ef21f02f">doesThisDeclarationHaveABody</a>()) {</div>
+<div class="line"><a name="l01196"></a><span class="lineno"> 1196</span>       <span class="keywordflow">if</span> (!FD-><a class="code" href="classclang_1_1FunctionDecl.html#ae1f75104e45e4176b58fc86a9517936c" title="For a function declaration in C or C++, determine whether this declaration causes the definition to b...">doesDeclarationForceExternallyVisibleDefinition</a>())</div>
+<div class="line"><a name="l01197"></a><span class="lineno"> 1197</span>         <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l01198"></a><span class="lineno"> 1198</span> </div>
+<div class="line"><a name="l01199"></a><span class="lineno"> 1199</span>       <span class="keyword">const</span> <a class="code" href="classclang_1_1FunctionDecl.html">FunctionDecl</a> *InlineDefinition = 0;</div>
+<div class="line"><a name="l01200"></a><span class="lineno"> 1200</span>       FD-><a class="code" href="classclang_1_1FunctionDecl.html#acc6487ca872768c9027e5f9684976b20">getBody</a>(InlineDefinition);</div>
+<div class="line"><a name="l01201"></a><span class="lineno"> 1201</span> </div>
+<div class="line"><a name="l01202"></a><span class="lineno"> 1202</span>       StringRef MangledName = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ac2e5fda10002d34cd7f20fc0c2615a51">getMangledName</a>(GD);</div>
+<div class="line"><a name="l01203"></a><span class="lineno"> 1203</span>       DeferredDecls.erase(MangledName);</div>
+<div class="line"><a name="l01204"></a><span class="lineno"> 1204</span>       EmitGlobalDefinition(InlineDefinition);</div>
+<div class="line"><a name="l01205"></a><span class="lineno"> 1205</span>       <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l01206"></a><span class="lineno"> 1206</span>     }</div>
+<div class="line"><a name="l01207"></a><span class="lineno"> 1207</span>   } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l01208"></a><span class="lineno"> 1208</span>     <span class="keyword">const</span> <a class="code" href="classclang_1_1VarDecl.html">VarDecl</a> *VD = cast<VarDecl>(Global);</div>
+<div class="line"><a name="l01209"></a><span class="lineno"> 1209</span>     assert(VD-><a class="code" href="classclang_1_1VarDecl.html#ae093175d51244dcdd850dd8042474ff0" title="isFileVarDecl - Returns true for file scoped variable declaration.">isFileVarDecl</a>() && <span class="stringliteral">"Cannot emit local var decl as global."</span>);</div>
+<div class="line"><a name="l01210"></a><span class="lineno"> 1210</span> </div>
+<div class="line"><a name="l01211"></a><span class="lineno"> 1211</span>     <span class="keywordflow">if</span> (VD-><a class="code" href="classclang_1_1VarDecl.html#a78a1c154d746b4dd700349fa705feaf6" title="Check whether this declaration is a definition. If this could be a tentative definition (in C)...">isThisDeclarationADefinition</a>() != <a class="code" href="classclang_1_1VarDecl.html#ac06c359e18b401f50b6b71d050d4a48ca96c76be505f3bd495cc969bc4651a3eb" title="This declaration is definitely a definition.">VarDecl::Definition</a>)</div>
+<div class="line"><a name="l01212"></a><span class="lineno"> 1212</span>       <span class="keywordflow">return</span>;</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> </div>
+<div class="line"><a name="l01215"></a><span class="lineno"> 1215</span>   <span class="comment">// Defer code generation when possible if this is a static definition, inline</span></div>
+<div class="line"><a name="l01216"></a><span class="lineno"> 1216</span>   <span class="comment">// function etc.  These we only want to emit if they are used.</span></div>
+<div class="line"><a name="l01217"></a><span class="lineno"> 1217</span>   <span class="keywordflow">if</span> (!MayDeferGeneration(Global)) {</div>
+<div class="line"><a name="l01218"></a><span class="lineno"> 1218</span>     <span class="comment">// Emit the definition if it can't be deferred.</span></div>
+<div class="line"><a name="l01219"></a><span class="lineno"> 1219</span>     EmitGlobalDefinition(GD);</div>
+<div class="line"><a name="l01220"></a><span class="lineno"> 1220</span>     <span class="keywordflow">return</span>;</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> </div>
+<div class="line"><a name="l01223"></a><span class="lineno"> 1223</span>   <span class="comment">// If we're deferring emission of a C++ variable with an</span></div>
+<div class="line"><a name="l01224"></a><span class="lineno"> 1224</span>   <span class="comment">// initializer, remember the order in which it appeared in the file.</span></div>
+<div class="line"><a name="l01225"></a><span class="lineno"> 1225</span>   <span class="keywordflow">if</span> (<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#abae1594027ce284ce5b7f06c66d24ea7">getLangOpts</a>().<a class="code" href="namespaceclang_1_1frontend.html#a09dfa01c4e997a3794d80922c5e853bbaf89a7ac6211aecefb5f7ecc17d3ebed4">CPlusPlus</a> && isa<VarDecl>(Global) &&</div>
+<div class="line"><a name="l01226"></a><span class="lineno"> 1226</span>       cast<VarDecl>(Global)->hasInit()) {</div>
+<div class="line"><a name="l01227"></a><span class="lineno"> 1227</span>     DelayedCXXInitPosition[Global] = CXXGlobalInits.size();</div>
+<div class="line"><a name="l01228"></a><span class="lineno"> 1228</span>     CXXGlobalInits.push_back(0);</div>
+<div class="line"><a name="l01229"></a><span class="lineno"> 1229</span>   }</div>
+<div class="line"><a name="l01230"></a><span class="lineno"> 1230</span>   </div>
+<div class="line"><a name="l01231"></a><span class="lineno"> 1231</span>   <span class="comment">// If the value has already been used, add it directly to the</span></div>
+<div class="line"><a name="l01232"></a><span class="lineno"> 1232</span>   <span class="comment">// DeferredDeclsToEmit list.</span></div>
+<div class="line"><a name="l01233"></a><span class="lineno"> 1233</span>   StringRef MangledName = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ac2e5fda10002d34cd7f20fc0c2615a51">getMangledName</a>(GD);</div>
+<div class="line"><a name="l01234"></a><span class="lineno"> 1234</span>   <span class="keywordflow">if</span> (GetGlobalValue(MangledName))</div>
+<div class="line"><a name="l01235"></a><span class="lineno"> 1235</span>     DeferredDeclsToEmit.push_back(GD);</div>
+<div class="line"><a name="l01236"></a><span class="lineno"> 1236</span>   <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l01237"></a><span class="lineno"> 1237</span>     <span class="comment">// Otherwise, remember that we saw a deferred decl with this name.  The</span></div>
+<div class="line"><a name="l01238"></a><span class="lineno"> 1238</span>     <span class="comment">// first use of the mangled name will cause it to move into</span></div>
+<div class="line"><a name="l01239"></a><span class="lineno"> 1239</span>     <span class="comment">// DeferredDeclsToEmit.</span></div>
+<div class="line"><a name="l01240"></a><span class="lineno"> 1240</span>     DeferredDecls[MangledName] = GD;</div>
+<div class="line"><a name="l01241"></a><span class="lineno"> 1241</span>   }</div>
+<div class="line"><a name="l01242"></a><span class="lineno"> 1242</span> }</div>
+<div class="line"><a name="l01243"></a><span class="lineno"> 1243</span> </div>
+<div class="line"><a name="l01244"></a><span class="lineno"> 1244</span> <span class="keyword">namespace </span>{</div>
+<div class="line"><a name="l01245"></a><span class="lineno"> 1245</span>   <span class="keyword">struct </span>FunctionIsDirectlyRecursive :</div>
+<div class="line"><a name="l01246"></a><span class="lineno"> 1246</span>     <span class="keyword">public</span> <a class="code" href="classclang_1_1RecursiveASTVisitor.html" title="A class that does preorder depth-first traversal on the entire Clang AST and visits each node...">RecursiveASTVisitor</a><FunctionIsDirectlyRecursive> {</div>
+<div class="line"><a name="l01247"></a><span class="lineno"> 1247</span>     <span class="keyword">const</span> StringRef Name;</div>
+<div class="line"><a name="l01248"></a><span class="lineno"> 1248</span>     <span class="keyword">const</span> <a class="code" href="classclang_1_1Builtin_1_1Context.html" title="Holds information about both target-independent and target-specific builtins, allowing easy queries b...">Builtin::Context</a> &BI;</div>
+<div class="line"><a name="l01249"></a><span class="lineno"> 1249</span>     <span class="keywordtype">bool</span> Result;</div>
+<div class="line"><a name="l01250"></a><span class="lineno"> 1250</span>     FunctionIsDirectlyRecursive(StringRef N, <span class="keyword">const</span> <a class="code" href="classclang_1_1Builtin_1_1Context.html" title="Holds information about both target-independent and target-specific builtins, allowing easy queries b...">Builtin::Context</a> &C) :</div>
+<div class="line"><a name="l01251"></a><span class="lineno"> 1251</span>       Name(N), BI(C), Result(<a class="code" href="stdbool_8h.html#a65e9886d74aaee76545e83dd09011727">false</a>) {</div>
+<div class="line"><a name="l01252"></a><span class="lineno"> 1252</span>     }</div>
+<div class="line"><a name="l01253"></a><span class="lineno"> 1253</span>     <span class="keyword">typedef</span> <a class="code" href="classclang_1_1RecursiveASTVisitor.html" title="A class that does preorder depth-first traversal on the entire Clang AST and visits each node...">RecursiveASTVisitor<FunctionIsDirectlyRecursive></a> <a class="code" href="classclang_1_1Base.html">Base</a>;</div>
+<div class="line"><a name="l01254"></a><span class="lineno"> 1254</span> </div>
+<div class="line"><a name="l01255"></a><span class="lineno"> 1255</span>     <span class="keywordtype">bool</span> TraverseCallExpr(<a class="code" href="classclang_1_1CallExpr.html">CallExpr</a> *E) {</div>
+<div class="line"><a name="l01256"></a><span class="lineno"> 1256</span>       <span class="keyword">const</span> <a class="code" href="classclang_1_1FunctionDecl.html">FunctionDecl</a> *FD = E-><a class="code" href="classclang_1_1CallExpr.html#a88bb91e7e67e378fd6a895c1f679901d" title="If the callee is a FunctionDecl, return it. Otherwise return 0.">getDirectCallee</a>();</div>
+<div class="line"><a name="l01257"></a><span class="lineno"> 1257</span>       <span class="keywordflow">if</span> (!FD)</div>
+<div class="line"><a name="l01258"></a><span class="lineno"> 1258</span>         <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01259"></a><span class="lineno"> 1259</span>       <a class="code" href="classclang_1_1AsmLabelAttr.html">AsmLabelAttr</a> *<a class="code" href="classclang_1_1Attr.html" title="Attr - This represents one attribute.">Attr</a> = FD-><a class="code" href="classclang_1_1Decl.html#a6a041df02fad17a6fabe51af5de0ea3c">getAttr</a><<a class="code" href="classclang_1_1AsmLabelAttr.html">AsmLabelAttr</a>>();</div>
+<div class="line"><a name="l01260"></a><span class="lineno"> 1260</span>       <span class="keywordflow">if</span> (Attr && Name == Attr-><a class="code" href="classclang_1_1AsmLabelAttr.html#a2aae53e1dc3e4edd4414fb8d467a2060">getLabel</a>()) {</div>
+<div class="line"><a name="l01261"></a><span class="lineno"> 1261</span>         Result = <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01262"></a><span class="lineno"> 1262</span>         <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01263"></a><span class="lineno"> 1263</span>       }</div>
+<div class="line"><a name="l01264"></a><span class="lineno"> 1264</span>       <span class="keywordtype">unsigned</span> BuiltinID = FD-><a class="code" href="classclang_1_1FunctionDecl.html#afe9c9c5ac9a47620d9f61d7f4d99f147" title="Returns a value indicating whether this function corresponds to a builtin function.">getBuiltinID</a>();</div>
+<div class="line"><a name="l01265"></a><span class="lineno"> 1265</span>       <span class="keywordflow">if</span> (!BuiltinID)</div>
+<div class="line"><a name="l01266"></a><span class="lineno"> 1266</span>         <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01267"></a><span class="lineno"> 1267</span>       StringRef BuiltinName = BI.GetName(BuiltinID);</div>
+<div class="line"><a name="l01268"></a><span class="lineno"> 1268</span>       <span class="keywordflow">if</span> (BuiltinName.startswith(<span class="stringliteral">"__builtin_"</span>) &&</div>
+<div class="line"><a name="l01269"></a><span class="lineno"> 1269</span>           Name == BuiltinName.slice(strlen(<span class="stringliteral">"__builtin_"</span>), StringRef::npos)) {</div>
+<div class="line"><a name="l01270"></a><span class="lineno"> 1270</span>         Result = <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01271"></a><span class="lineno"> 1271</span>         <span class="keywordflow">return</span> <span class="keyword">false</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>       <span class="keywordflow">return</span> <span class="keyword">true</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>   };</div>
+<div class="line"><a name="l01276"></a><span class="lineno"> 1276</span> }</div>
+<div class="line"><a name="l01277"></a><span class="lineno"> 1277</span> </div>
+<div class="line"><a name="l01278"></a><span class="lineno"> 1278</span> <span class="comment">// isTriviallyRecursive - Check if this function calls another</span></div>
+<div class="line"><a name="l01279"></a><span class="lineno"> 1279</span> <span class="comment">// decl that, because of the asm attribute or the other decl being a builtin,</span></div>
+<div class="line"><a name="l01280"></a><span class="lineno"> 1280</span> <span class="comment">// ends up pointing to itself.</span></div>
+<div class="line"><a name="l01281"></a><span class="lineno"> 1281</span> <span class="keywordtype">bool</span></div>
+<div class="line"><a name="l01282"></a><span class="lineno"> 1282</span> CodeGenModule::isTriviallyRecursive(<span class="keyword">const</span> <a class="code" href="classclang_1_1FunctionDecl.html">FunctionDecl</a> *FD) {</div>
+<div class="line"><a name="l01283"></a><span class="lineno"> 1283</span>   StringRef Name;</div>
+<div class="line"><a name="l01284"></a><span class="lineno"> 1284</span>   <span class="keywordflow">if</span> (<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#abcced6119cfc90ff6332ec96766ff70a">getCXXABI</a>().getMangleContext().shouldMangleDeclName(FD)) {</div>
+<div class="line"><a name="l01285"></a><span class="lineno"> 1285</span>     <span class="comment">// asm labels are a special kind of mangling we have to support.</span></div>
+<div class="line"><a name="l01286"></a><span class="lineno"> 1286</span>     <a class="code" href="classclang_1_1AsmLabelAttr.html">AsmLabelAttr</a> *Attr = FD-><a class="code" href="classclang_1_1Decl.html#a6a041df02fad17a6fabe51af5de0ea3c">getAttr</a><<a class="code" href="classclang_1_1AsmLabelAttr.html">AsmLabelAttr</a>>();</div>
+<div class="line"><a name="l01287"></a><span class="lineno"> 1287</span>     <span class="keywordflow">if</span> (!Attr)</div>
+<div class="line"><a name="l01288"></a><span class="lineno"> 1288</span>       <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01289"></a><span class="lineno"> 1289</span>     Name = Attr-><a class="code" href="classclang_1_1AsmLabelAttr.html#a2aae53e1dc3e4edd4414fb8d467a2060">getLabel</a>();</div>
+<div class="line"><a name="l01290"></a><span class="lineno"> 1290</span>   } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l01291"></a><span class="lineno"> 1291</span>     Name = FD-><a class="code" href="classclang_1_1NamedDecl.html#aaf790590f634520a99e0b45699fc45c3">getName</a>();</div>
+<div class="line"><a name="l01292"></a><span class="lineno"> 1292</span>   }</div>
+<div class="line"><a name="l01293"></a><span class="lineno"> 1293</span> </div>
+<div class="line"><a name="l01294"></a><span class="lineno"> 1294</span>   FunctionIsDirectlyRecursive Walker(Name, Context.<a class="code" href="classclang_1_1ASTContext.html#a502181c4f5710068dddb1b4fc3233238">BuiltinInfo</a>);</div>
+<div class="line"><a name="l01295"></a><span class="lineno"> 1295</span>   Walker.TraverseFunctionDecl(const_cast<FunctionDecl*>(FD));</div>
+<div class="line"><a name="l01296"></a><span class="lineno"> 1296</span>   <span class="keywordflow">return</span> Walker.Result;</div>
+<div class="line"><a name="l01297"></a><span class="lineno"> 1297</span> }</div>
+<div class="line"><a name="l01298"></a><span class="lineno"> 1298</span> </div>
+<div class="line"><a name="l01299"></a><span class="lineno"> 1299</span> <span class="keywordtype">bool</span></div>
+<div class="line"><a name="l01300"></a><span class="lineno"> 1300</span> CodeGenModule::shouldEmitFunction(<a class="code" href="classclang_1_1GlobalDecl.html">GlobalDecl</a> GD) {</div>
+<div class="line"><a name="l01301"></a><span class="lineno"> 1301</span>   <span class="keywordflow">if</span> (<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a9ccb92a536b16bf53e426f4aa7c3b2be">getFunctionLinkage</a>(GD) != llvm::Function::AvailableExternallyLinkage)</div>
+<div class="line"><a name="l01302"></a><span class="lineno"> 1302</span>     <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01303"></a><span class="lineno"> 1303</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1FunctionDecl.html">FunctionDecl</a> *F = cast<FunctionDecl>(GD.<a class="code" href="classclang_1_1GlobalDecl.html#a3971ce53aef50b4c3d829615a5ecd0a0">getDecl</a>());</div>
+<div class="line"><a name="l01304"></a><span class="lineno"> 1304</span>   <span class="keywordflow">if</span> (CodeGenOpts.OptimizationLevel == 0 &&</div>
+<div class="line"><a name="l01305"></a><span class="lineno"> 1305</span>       !F-><a class="code" href="classclang_1_1Decl.html#ac60cc8b34313e03a5c40277c5c5ad61b">hasAttr</a><<a class="code" href="classclang_1_1AlwaysInlineAttr.html">AlwaysInlineAttr</a>>() && !F-><a class="code" href="classclang_1_1Decl.html#ac60cc8b34313e03a5c40277c5c5ad61b">hasAttr</a><<a class="code" href="classclang_1_1ForceInlineAttr.html">ForceInlineAttr</a>>())</div>
+<div class="line"><a name="l01306"></a><span class="lineno"> 1306</span>     <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01307"></a><span class="lineno"> 1307</span>   <span class="comment">// PR9614. Avoid cases where the source code is lying to us. An available</span></div>
+<div class="line"><a name="l01308"></a><span class="lineno"> 1308</span>   <span class="comment">// externally function should have an equivalent function somewhere else,</span></div>
+<div class="line"><a name="l01309"></a><span class="lineno"> 1309</span>   <span class="comment">// but a function that calls itself is clearly not equivalent to the real</span></div>
+<div class="line"><a name="l01310"></a><span class="lineno"> 1310</span>   <span class="comment">// implementation.</span></div>
+<div class="line"><a name="l01311"></a><span class="lineno"> 1311</span>   <span class="comment">// This happens in glibc's btowc and in some configure checks.</span></div>
+<div class="line"><a name="l01312"></a><span class="lineno"> 1312</span>   <span class="keywordflow">return</span> !isTriviallyRecursive(F);</div>
+<div class="line"><a name="l01313"></a><span class="lineno"> 1313</span> }</div>
+<div class="line"><a name="l01314"></a><span class="lineno"> 1314</span> <span class="comment"></span></div>
+<div class="line"><a name="l01315"></a><span class="lineno"> 1315</span> <span class="comment">/// If the type for the method's class was generated by</span></div>
+<div class="line"><a name="l01316"></a><span class="lineno"> 1316</span> <span class="comment">/// CGDebugInfo::createContextChain(), the cache contains only a</span></div>
+<div class="line"><a name="l01317"></a><span class="lineno"> 1317</span> <span class="comment">/// limited DIType without any declarations. Since EmitFunctionStart()</span></div>
+<div class="line"><a name="l01318"></a><span class="lineno"> 1318</span> <span class="comment">/// needs to find the canonical declaration for each method, we need</span></div>
+<div class="line"><a name="l01319"></a><span class="lineno"> 1319</span> <span class="comment">/// to construct the complete type prior to emitting the method.</span></div>
+<div class="line"><a name="l01320"></a><span class="lineno"> 1320</span> <span class="comment"></span><span class="keywordtype">void</span> CodeGenModule::CompleteDIClassType(<span class="keyword">const</span> <a class="code" href="classclang_1_1CXXMethodDecl.html" title="Represents a static or instance method of a struct/union/class.">CXXMethodDecl</a>* D) {</div>
+<div class="line"><a name="l01321"></a><span class="lineno"> 1321</span>   <span class="keywordflow">if</span> (!D-><a class="code" href="classclang_1_1CXXMethodDecl.html#a855a9f0b238457d3131b854bdeae7bce">isInstance</a>())</div>
+<div class="line"><a name="l01322"></a><span class="lineno"> 1322</span>     <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l01323"></a><span class="lineno"> 1323</span> </div>
+<div class="line"><a name="l01324"></a><span class="lineno"> 1324</span>   <span class="keywordflow">if</span> (<a class="code" href="classclang_1_1CodeGen_1_1CGDebugInfo.html">CGDebugInfo</a> *DI = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a919ba4c672da9093f64b9bef0484302f">getModuleDebugInfo</a>())</div>
+<div class="line"><a name="l01325"></a><span class="lineno"> 1325</span>     <span class="keywordflow">if</span> (<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a054eb00391038519d37236032f1ebfe5">getCodeGenOpts</a>().getDebugInfo() >= <a class="code" href="classclang_1_1CodeGenOptions.html#ab49a2a2a0a68577a07a9c0b730fb3cf6ae0f1c5168d0708ca9bd151ea9d89a3d8">CodeGenOptions::LimitedDebugInfo</a>) {</div>
+<div class="line"><a name="l01326"></a><span class="lineno"> 1326</span>       <span class="keyword">const</span> <a class="code" href="classclang_1_1PointerType.html">PointerType</a> *ThisPtr =</div>
+<div class="line"><a name="l01327"></a><span class="lineno"> 1327</span>         cast<PointerType>(D-><a class="code" href="classclang_1_1CXXMethodDecl.html#ace7608e37d6c9d0f4d2b08efa9fa7cd4" title="Returns the type of the this pointer.">getThisType</a>(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>()));</div>
+<div class="line"><a name="l01328"></a><span class="lineno"> 1328</span>       DI->getOrCreateRecordType(ThisPtr-><a class="code" href="classclang_1_1PointerType.html#a3d0af079431148f7da7e2c400052cc66">getPointeeType</a>(), D-><a class="code" href="classclang_1_1Decl.html#a2348196ac4e0b1d5ebb1859c31b99eac">getLocation</a>());</div>
+<div class="line"><a name="l01329"></a><span class="lineno"> 1329</span>     }</div>
+<div class="line"><a name="l01330"></a><span class="lineno"> 1330</span> }</div>
+<div class="line"><a name="l01331"></a><span class="lineno"> 1331</span> </div>
+<div class="line"><a name="l01332"></a><span class="lineno"> 1332</span> <span class="keywordtype">void</span> CodeGenModule::EmitGlobalDefinition(<a class="code" href="classclang_1_1GlobalDecl.html">GlobalDecl</a> GD) {</div>
+<div class="line"><a name="l01333"></a><span class="lineno"> 1333</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1ValueDecl.html">ValueDecl</a> *D = cast<ValueDecl>(GD.<a class="code" href="classclang_1_1GlobalDecl.html#a3971ce53aef50b4c3d829615a5ecd0a0">getDecl</a>());</div>
+<div class="line"><a name="l01334"></a><span class="lineno"> 1334</span> </div>
+<div class="line"><a name="l01335"></a><span class="lineno"> 1335</span>   <a class="code" href="classclang_1_1PrettyStackTraceDecl.html">PrettyStackTraceDecl</a> CrashInfo(const_cast<ValueDecl *>(D), D-><a class="code" href="classclang_1_1Decl.html#a2348196ac4e0b1d5ebb1859c31b99eac">getLocation</a>(), </div>
+<div class="line"><a name="l01336"></a><span class="lineno"> 1336</span>                                  Context.<a class="code" href="classclang_1_1ASTContext.html#a091e2575135f7f9f1aeb25ba0090bfde">getSourceManager</a>(),</div>
+<div class="line"><a name="l01337"></a><span class="lineno"> 1337</span>                                  <span class="stringliteral">"Generating code for declaration"</span>);</div>
+<div class="line"><a name="l01338"></a><span class="lineno"> 1338</span>   </div>
+<div class="line"><a name="l01339"></a><span class="lineno"> 1339</span>   <span class="keywordflow">if</span> (isa<FunctionDecl>(D)) {</div>
+<div class="line"><a name="l01340"></a><span class="lineno"> 1340</span>     <span class="comment">// At -O0, don't generate IR for functions with available_externally </span></div>
+<div class="line"><a name="l01341"></a><span class="lineno"> 1341</span>     <span class="comment">// linkage.</span></div>
+<div class="line"><a name="l01342"></a><span class="lineno"> 1342</span>     <span class="keywordflow">if</span> (!shouldEmitFunction(GD))</div>
+<div class="line"><a name="l01343"></a><span class="lineno"> 1343</span>       <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l01344"></a><span class="lineno"> 1344</span> </div>
+<div class="line"><a name="l01345"></a><span class="lineno"> 1345</span>     <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1CXXMethodDecl.html" title="Represents a static or instance method of a struct/union/class.">CXXMethodDecl</a> *Method = dyn_cast<CXXMethodDecl>(D)) {</div>
+<div class="line"><a name="l01346"></a><span class="lineno"> 1346</span>       CompleteDIClassType(Method);</div>
+<div class="line"><a name="l01347"></a><span class="lineno"> 1347</span>       <span class="comment">// Make sure to emit the definition(s) before we emit the thunks.</span></div>
+<div class="line"><a name="l01348"></a><span class="lineno"> 1348</span>       <span class="comment">// This is necessary for the generation of certain thunks.</span></div>
+<div class="line"><a name="l01349"></a><span class="lineno"> 1349</span>       <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1CXXConstructorDecl.html" title="Represents a C++ constructor within a class.">CXXConstructorDecl</a> *CD = dyn_cast<CXXConstructorDecl>(Method))</div>
+<div class="line"><a name="l01350"></a><span class="lineno"> 1350</span>         EmitCXXConstructor(CD, GD.<a class="code" href="classclang_1_1GlobalDecl.html#a510cae7dd5d57ea1a0d8d89754fe6036">getCtorType</a>());</div>
+<div class="line"><a name="l01351"></a><span class="lineno"> 1351</span>       <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1CXXDestructorDecl.html" title="Represents a C++ destructor within a class.">CXXDestructorDecl</a> *DD =dyn_cast<CXXDestructorDecl>(Method))</div>
+<div class="line"><a name="l01352"></a><span class="lineno"> 1352</span>         EmitCXXDestructor(DD, GD.<a class="code" href="classclang_1_1GlobalDecl.html#acf7986531ee9edab4d776465d455c82f">getDtorType</a>());</div>
+<div class="line"><a name="l01353"></a><span class="lineno"> 1353</span>       <span class="keywordflow">else</span></div>
+<div class="line"><a name="l01354"></a><span class="lineno"> 1354</span>         EmitGlobalFunctionDefinition(GD);</div>
+<div class="line"><a name="l01355"></a><span class="lineno"> 1355</span> </div>
+<div class="line"><a name="l01356"></a><span class="lineno"> 1356</span>       <span class="keywordflow">if</span> (Method->isVirtual())</div>
+<div class="line"><a name="l01357"></a><span class="lineno"> 1357</span>         <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a3cb12d9b5bbf010b0d482ae08f720eba">getVTables</a>().<a class="code" href="classclang_1_1CodeGen_1_1CodeGenVTables.html#ae1be246d1160bbaaa51734fab3b3aba9" title="EmitThunks - Emit the associated thunks for the given global decl.">EmitThunks</a>(GD);</div>
+<div class="line"><a name="l01358"></a><span class="lineno"> 1358</span> </div>
+<div class="line"><a name="l01359"></a><span class="lineno"> 1359</span>       <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l01360"></a><span class="lineno"> 1360</span>     }</div>
+<div class="line"><a name="l01361"></a><span class="lineno"> 1361</span> </div>
+<div class="line"><a name="l01362"></a><span class="lineno"> 1362</span>     <span class="keywordflow">return</span> EmitGlobalFunctionDefinition(GD);</div>
+<div class="line"><a name="l01363"></a><span class="lineno"> 1363</span>   }</div>
+<div class="line"><a name="l01364"></a><span class="lineno"> 1364</span>   </div>
+<div class="line"><a name="l01365"></a><span class="lineno"> 1365</span>   <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1VarDecl.html">VarDecl</a> *VD = dyn_cast<VarDecl>(D))</div>
+<div class="line"><a name="l01366"></a><span class="lineno"> 1366</span>     <span class="keywordflow">return</span> EmitGlobalVarDefinition(VD);</div>
+<div class="line"><a name="l01367"></a><span class="lineno"> 1367</span>   </div>
+<div class="line"><a name="l01368"></a><span class="lineno"> 1368</span>   llvm_unreachable(<span class="stringliteral">"Invalid argument to EmitGlobalDefinition()"</span>);</div>
+<div class="line"><a name="l01369"></a><span class="lineno"> 1369</span> }</div>
+<div class="line"><a name="l01370"></a><span class="lineno"> 1370</span> <span class="comment"></span></div>
+<div class="line"><a name="l01371"></a><span class="lineno"> 1371</span> <span class="comment">/// GetOrCreateLLVMFunction - If the specified mangled name is not in the</span></div>
+<div class="line"><a name="l01372"></a><span class="lineno"> 1372</span> <span class="comment">/// module, create and return an llvm Function with the specified type. If there</span></div>
+<div class="line"><a name="l01373"></a><span class="lineno"> 1373</span> <span class="comment">/// is something in the module with the specified name, return it potentially</span></div>
+<div class="line"><a name="l01374"></a><span class="lineno"> 1374</span> <span class="comment">/// bitcasted to the right type.</span></div>
+<div class="line"><a name="l01375"></a><span class="lineno"> 1375</span> <span class="comment">///</span></div>
+<div class="line"><a name="l01376"></a><span class="lineno"> 1376</span> <span class="comment">/// If D is non-null, it specifies a decl that correspond to this.  This is used</span></div>
+<div class="line"><a name="l01377"></a><span class="lineno"> 1377</span> <span class="comment">/// to set the attributes on the function when it is first created.</span></div>
+<div class="line"><a name="l01378"></a><span class="lineno"> 1378</span> <span class="comment"></span>llvm::Constant *</div>
+<div class="line"><a name="l01379"></a><span class="lineno"> 1379</span> CodeGenModule::GetOrCreateLLVMFunction(StringRef MangledName,</div>
+<div class="line"><a name="l01380"></a><span class="lineno"> 1380</span>                                        llvm::Type *Ty,</div>
+<div class="line"><a name="l01381"></a><span class="lineno"> 1381</span>                                        <a class="code" href="classclang_1_1GlobalDecl.html">GlobalDecl</a> GD, <span class="keywordtype">bool</span> ForVTable,</div>
+<div class="line"><a name="l01382"></a><span class="lineno"> 1382</span>                                        llvm::AttributeSet ExtraAttrs) {</div>
+<div class="line"><a name="l01383"></a><span class="lineno"> 1383</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1Decl.html">Decl</a> *D = GD.<a class="code" href="classclang_1_1GlobalDecl.html#a3971ce53aef50b4c3d829615a5ecd0a0">getDecl</a>();</div>
+<div class="line"><a name="l01384"></a><span class="lineno"> 1384</span> </div>
+<div class="line"><a name="l01385"></a><span class="lineno"> 1385</span>   <span class="comment">// Lookup the entry, lazily creating it if necessary.</span></div>
+<div class="line"><a name="l01386"></a><span class="lineno"> 1386</span>   llvm::GlobalValue *Entry = GetGlobalValue(MangledName);</div>
+<div class="line"><a name="l01387"></a><span class="lineno"> 1387</span>   <span class="keywordflow">if</span> (Entry) {</div>
+<div class="line"><a name="l01388"></a><span class="lineno"> 1388</span>     <span class="keywordflow">if</span> (WeakRefReferences.erase(Entry)) {</div>
+<div class="line"><a name="l01389"></a><span class="lineno"> 1389</span>       <span class="keyword">const</span> <a class="code" href="classclang_1_1FunctionDecl.html">FunctionDecl</a> *FD = cast_or_null<FunctionDecl>(D);</div>
+<div class="line"><a name="l01390"></a><span class="lineno"> 1390</span>       <span class="keywordflow">if</span> (FD && !FD-><a class="code" href="classclang_1_1Decl.html#ac60cc8b34313e03a5c40277c5c5ad61b">hasAttr</a><<a class="code" href="classclang_1_1WeakAttr.html">WeakAttr</a>>())</div>
+<div class="line"><a name="l01391"></a><span class="lineno"> 1391</span>         Entry->setLinkage(<a class="code" href="namespaceclang.html#a78aadfeaf316ded55fdd2d1a9c8815b6abf301cfab14d2b8fac6176f45e6bb54a" title="External linkage, which indicates that the entity can be referred to from other translation units...">llvm::Function::ExternalLinkage</a>);</div>
+<div class="line"><a name="l01392"></a><span class="lineno"> 1392</span>     }</div>
+<div class="line"><a name="l01393"></a><span class="lineno"> 1393</span> </div>
+<div class="line"><a name="l01394"></a><span class="lineno"> 1394</span>     <span class="keywordflow">if</span> (Entry->getType()->getElementType() == Ty)</div>
+<div class="line"><a name="l01395"></a><span class="lineno"> 1395</span>       <span class="keywordflow">return</span> Entry;</div>
+<div class="line"><a name="l01396"></a><span class="lineno"> 1396</span> </div>
+<div class="line"><a name="l01397"></a><span class="lineno"> 1397</span>     <span class="comment">// Make sure the result is of the correct type.</span></div>
+<div class="line"><a name="l01398"></a><span class="lineno"> 1398</span>     <span class="keywordflow">return</span> llvm::ConstantExpr::getBitCast(Entry, Ty->getPointerTo());</div>
+<div class="line"><a name="l01399"></a><span class="lineno"> 1399</span>   }</div>
+<div class="line"><a name="l01400"></a><span class="lineno"> 1400</span> </div>
+<div class="line"><a name="l01401"></a><span class="lineno"> 1401</span>   <span class="comment">// All MSVC dtors other than the base dtor are linkonce_odr and delegate to</span></div>
+<div class="line"><a name="l01402"></a><span class="lineno"> 1402</span>   <span class="comment">// each other bottoming out with the base dtor.  Therefore we emit non-base</span></div>
+<div class="line"><a name="l01403"></a><span class="lineno"> 1403</span>   <span class="comment">// dtors on usage, even if there is no dtor definition in the TU.</span></div>
+<div class="line"><a name="l01404"></a><span class="lineno"> 1404</span>   <span class="keywordflow">if</span> (D && isa<CXXDestructorDecl>(D) &&</div>
+<div class="line"><a name="l01405"></a><span class="lineno"> 1405</span>       <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#abcced6119cfc90ff6332ec96766ff70a">getCXXABI</a>().<a class="code" href="classclang_1_1CodeGen_1_1CGCXXABI.html#a2aba9733cec5208fb46e5ac2b3682049">useThunkForDtorVariant</a>(cast<CXXDestructorDecl>(D),</div>
+<div class="line"><a name="l01406"></a><span class="lineno"> 1406</span>                                          GD.<a class="code" href="classclang_1_1GlobalDecl.html#acf7986531ee9edab4d776465d455c82f">getDtorType</a>()))</div>
+<div class="line"><a name="l01407"></a><span class="lineno"> 1407</span>     DeferredDeclsToEmit.push_back(GD);</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="comment">// This function doesn't have a complete type (for example, the return</span></div>
+<div class="line"><a name="l01410"></a><span class="lineno"> 1410</span>   <span class="comment">// type is an incomplete struct). Use a fake type instead, and make</span></div>
+<div class="line"><a name="l01411"></a><span class="lineno"> 1411</span>   <span class="comment">// sure not to try to set attributes.</span></div>
+<div class="line"><a name="l01412"></a><span class="lineno"> 1412</span>   <span class="keywordtype">bool</span> IsIncompleteFunction = <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01413"></a><span class="lineno"> 1413</span> </div>
+<div class="line"><a name="l01414"></a><span class="lineno"> 1414</span>   llvm::FunctionType *FTy;</div>
+<div class="line"><a name="l01415"></a><span class="lineno"> 1415</span>   <span class="keywordflow">if</span> (isa<llvm::FunctionType>(Ty)) {</div>
+<div class="line"><a name="l01416"></a><span class="lineno"> 1416</span>     FTy = cast<llvm::FunctionType>(Ty);</div>
+<div class="line"><a name="l01417"></a><span class="lineno"> 1417</span>   } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l01418"></a><span class="lineno"> 1418</span>     FTy = llvm::FunctionType::get(<a class="code" href="structclang_1_1CodeGen_1_1CodeGenTypeCache.html#ad2e842be873196b0fab39b1479223209" title="void">VoidTy</a>, <span class="keyword">false</span>);</div>
+<div class="line"><a name="l01419"></a><span class="lineno"> 1419</span>     IsIncompleteFunction = <span class="keyword">true</span>;</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>   </div>
+<div class="line"><a name="l01422"></a><span class="lineno"> 1422</span>   llvm::Function *F = llvm::Function::Create(FTy,</div>
+<div class="line"><a name="l01423"></a><span class="lineno"> 1423</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::Function::ExternalLinkage</a>,</div>
+<div class="line"><a name="l01424"></a><span class="lineno"> 1424</span>                                              MangledName, &<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a908409c9231b015784ca008fd6bcb961">getModule</a>());</div>
+<div class="line"><a name="l01425"></a><span class="lineno"> 1425</span>   assert(F->getName() == MangledName && <span class="stringliteral">"name was uniqued!"</span>);</div>
+<div class="line"><a name="l01426"></a><span class="lineno"> 1426</span>   <span class="keywordflow">if</span> (D)</div>
+<div class="line"><a name="l01427"></a><span class="lineno"> 1427</span>     SetFunctionAttributes(GD, F, IsIncompleteFunction);</div>
+<div class="line"><a name="l01428"></a><span class="lineno"> 1428</span>   <span class="keywordflow">if</span> (ExtraAttrs.hasAttributes(llvm::AttributeSet::FunctionIndex)) {</div>
+<div class="line"><a name="l01429"></a><span class="lineno"> 1429</span>     llvm::AttrBuilder B(ExtraAttrs, llvm::AttributeSet::FunctionIndex);</div>
+<div class="line"><a name="l01430"></a><span class="lineno"> 1430</span>     F->addAttributes(llvm::AttributeSet::FunctionIndex,</div>
+<div class="line"><a name="l01431"></a><span class="lineno"> 1431</span>                      llvm::AttributeSet::get(VMContext,</div>
+<div class="line"><a name="l01432"></a><span class="lineno"> 1432</span>                                              llvm::AttributeSet::FunctionIndex,</div>
+<div class="line"><a name="l01433"></a><span class="lineno"> 1433</span>                                              B));</div>
+<div class="line"><a name="l01434"></a><span class="lineno"> 1434</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="comment">// This is the first use or definition of a mangled name.  If there is a</span></div>
+<div class="line"><a name="l01437"></a><span class="lineno"> 1437</span>   <span class="comment">// deferred decl with this name, remember that we need to emit it at the end</span></div>
+<div class="line"><a name="l01438"></a><span class="lineno"> 1438</span>   <span class="comment">// of the file.</span></div>
+<div class="line"><a name="l01439"></a><span class="lineno"> 1439</span>   llvm::StringMap<GlobalDecl>::iterator DDI = DeferredDecls.find(MangledName);</div>
+<div class="line"><a name="l01440"></a><span class="lineno"> 1440</span>   <span class="keywordflow">if</span> (DDI != DeferredDecls.end()) {</div>
+<div class="line"><a name="l01441"></a><span class="lineno"> 1441</span>     <span class="comment">// Move the potentially referenced deferred decl to the DeferredDeclsToEmit</span></div>
+<div class="line"><a name="l01442"></a><span class="lineno"> 1442</span>     <span class="comment">// list, and remove it from DeferredDecls (since we don't need it anymore).</span></div>
+<div class="line"><a name="l01443"></a><span class="lineno"> 1443</span>     DeferredDeclsToEmit.push_back(DDI->second);</div>
+<div class="line"><a name="l01444"></a><span class="lineno"> 1444</span>     DeferredDecls.erase(DDI);</div>
+<div class="line"><a name="l01445"></a><span class="lineno"> 1445</span> </div>
+<div class="line"><a name="l01446"></a><span class="lineno"> 1446</span>   <span class="comment">// Otherwise, if this is a sized deallocation function, emit a weak definition</span></div>
+<div class="line"><a name="l01447"></a><span class="lineno"> 1447</span>   <span class="comment">// for it at the end of the translation unit.</span></div>
+<div class="line"><a name="l01448"></a><span class="lineno"> 1448</span>   } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (D && cast<FunctionDecl>(D)</div>
+<div class="line"><a name="l01449"></a><span class="lineno"> 1449</span>                       ->getCorrespondingUnsizedGlobalDeallocationFunction()) {</div>
+<div class="line"><a name="l01450"></a><span class="lineno"> 1450</span>     DeferredDeclsToEmit.push_back(GD);</div>
+<div class="line"><a name="l01451"></a><span class="lineno"> 1451</span> </div>
+<div class="line"><a name="l01452"></a><span class="lineno"> 1452</span>   <span class="comment">// Otherwise, there are cases we have to worry about where we're</span></div>
+<div class="line"><a name="l01453"></a><span class="lineno"> 1453</span>   <span class="comment">// using a declaration for which we must emit a definition but where</span></div>
+<div class="line"><a name="l01454"></a><span class="lineno"> 1454</span>   <span class="comment">// we might not find a top-level definition:</span></div>
+<div class="line"><a name="l01455"></a><span class="lineno"> 1455</span>   <span class="comment">//   - member functions defined inline in their classes</span></div>
+<div class="line"><a name="l01456"></a><span class="lineno"> 1456</span>   <span class="comment">//   - friend functions defined inline in some class</span></div>
+<div class="line"><a name="l01457"></a><span class="lineno"> 1457</span>   <span class="comment">//   - special member functions with implicit definitions</span></div>
+<div class="line"><a name="l01458"></a><span class="lineno"> 1458</span>   <span class="comment">// If we ever change our AST traversal to walk into class methods,</span></div>
+<div class="line"><a name="l01459"></a><span class="lineno"> 1459</span>   <span class="comment">// this will be unnecessary.</span></div>
+<div class="line"><a name="l01460"></a><span class="lineno"> 1460</span>   <span class="comment">//</span></div>
+<div class="line"><a name="l01461"></a><span class="lineno"> 1461</span>   <span class="comment">// We also don't emit a definition for a function if it's going to be an entry</span></div>
+<div class="line"><a name="l01462"></a><span class="lineno"> 1462</span>   <span class="comment">// in a vtable, unless it's already marked as used.</span></div>
+<div class="line"><a name="l01463"></a><span class="lineno"> 1463</span>   } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#abae1594027ce284ce5b7f06c66d24ea7">getLangOpts</a>().<a class="code" href="namespaceclang_1_1frontend.html#a09dfa01c4e997a3794d80922c5e853bbaf89a7ac6211aecefb5f7ecc17d3ebed4">CPlusPlus</a> && D) {</div>
+<div class="line"><a name="l01464"></a><span class="lineno"> 1464</span>     <span class="comment">// Look for a declaration that's lexically in a record.</span></div>
+<div class="line"><a name="l01465"></a><span class="lineno"> 1465</span>     <span class="keyword">const</span> <a class="code" href="classclang_1_1FunctionDecl.html">FunctionDecl</a> *FD = cast<FunctionDecl>(D);</div>
+<div class="line"><a name="l01466"></a><span class="lineno"> 1466</span>     FD = FD-><a class="code" href="classclang_1_1Redeclarable.html#a9ea014cf6b0106a824cb7a1eb0b29252" title="Returns the most recent (re)declaration of this declaration.">getMostRecentDecl</a>();</div>
+<div class="line"><a name="l01467"></a><span class="lineno"> 1467</span>     <span class="keywordflow">do</span> {</div>
+<div class="line"><a name="l01468"></a><span class="lineno"> 1468</span>       <span class="keywordflow">if</span> (isa<CXXRecordDecl>(FD->getLexicalDeclContext())) {</div>
+<div class="line"><a name="l01469"></a><span class="lineno"> 1469</span>         <span class="keywordflow">if</span> (FD->isImplicit() && !ForVTable) {</div>
+<div class="line"><a name="l01470"></a><span class="lineno"> 1470</span>           assert(FD->isUsed() && <span class="stringliteral">"Sema didn't mark implicit function as used!"</span>);</div>
+<div class="line"><a name="l01471"></a><span class="lineno"> 1471</span>           DeferredDeclsToEmit.push_back(GD.<a class="code" href="classclang_1_1GlobalDecl.html#a9cae347bd6bfa5923527849839666840">getWithDecl</a>(FD));</div>
+<div class="line"><a name="l01472"></a><span class="lineno"> 1472</span>           <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l01473"></a><span class="lineno"> 1473</span>         } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (FD->doesThisDeclarationHaveABody()) {</div>
+<div class="line"><a name="l01474"></a><span class="lineno"> 1474</span>           DeferredDeclsToEmit.push_back(GD.<a class="code" href="classclang_1_1GlobalDecl.html#a9cae347bd6bfa5923527849839666840">getWithDecl</a>(FD));</div>
+<div class="line"><a name="l01475"></a><span class="lineno"> 1475</span>           <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l01476"></a><span class="lineno"> 1476</span>         }</div>
+<div class="line"><a name="l01477"></a><span class="lineno"> 1477</span>       }</div>
+<div class="line"><a name="l01478"></a><span class="lineno"> 1478</span>       FD = FD->getPreviousDecl();</div>
+<div class="line"><a name="l01479"></a><span class="lineno"> 1479</span>     } <span class="keywordflow">while</span> (FD);</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> </div>
+<div class="line"><a name="l01482"></a><span class="lineno"> 1482</span>   <span class="comment">// Make sure the result is of the requested type.</span></div>
+<div class="line"><a name="l01483"></a><span class="lineno"> 1483</span>   <span class="keywordflow">if</span> (!IsIncompleteFunction) {</div>
+<div class="line"><a name="l01484"></a><span class="lineno"> 1484</span>     assert(F->getType()->getElementType() == Ty);</div>
+<div class="line"><a name="l01485"></a><span class="lineno"> 1485</span>     <span class="keywordflow">return</span> F;</div>
+<div class="line"><a name="l01486"></a><span class="lineno"> 1486</span>   }</div>
+<div class="line"><a name="l01487"></a><span class="lineno"> 1487</span> </div>
+<div class="line"><a name="l01488"></a><span class="lineno"> 1488</span>   llvm::Type *PTy = llvm::PointerType::getUnqual(Ty);</div>
+<div class="line"><a name="l01489"></a><span class="lineno"> 1489</span>   <span class="keywordflow">return</span> llvm::ConstantExpr::getBitCast(F, PTy);</div>
+<div class="line"><a name="l01490"></a><span class="lineno"> 1490</span> }</div>
+<div class="line"><a name="l01491"></a><span class="lineno"> 1491</span> <span class="comment"></span></div>
+<div class="line"><a name="l01492"></a><span class="lineno"> 1492</span> <span class="comment">/// GetAddrOfFunction - Return the address of the given function.  If Ty is</span></div>
+<div class="line"><a name="l01493"></a><span class="lineno"> 1493</span> <span class="comment">/// non-null, then this function will use the specified type if it has to</span></div>
+<div class="line"><a name="l01494"></a><span class="lineno"> 1494</span> <span class="comment">/// create it (this occurs when we see a definition of the function).</span></div>
+<div class="line"><a name="l01495"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ac7a1043756ac6082fa8e9540afa830a9"> 1495</a></span> <span class="comment"></span>llvm::Constant *<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ac7a1043756ac6082fa8e9540afa830a9">CodeGenModule::GetAddrOfFunction</a>(<a class="code" href="classclang_1_1GlobalDecl.html">GlobalDecl</a> GD,</div>
+<div class="line"><a name="l01496"></a><span class="lineno"> 1496</span>                                                  llvm::Type *Ty,</div>
+<div class="line"><a name="l01497"></a><span class="lineno"> 1497</span>                                                  <span class="keywordtype">bool</span> ForVTable) {</div>
+<div class="line"><a name="l01498"></a><span class="lineno"> 1498</span>   <span class="comment">// If there was no specific requested type, just convert it now.</span></div>
+<div class="line"><a name="l01499"></a><span class="lineno"> 1499</span>   <span class="keywordflow">if</span> (!Ty)</div>
+<div class="line"><a name="l01500"></a><span class="lineno"> 1500</span>     Ty = <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>(cast<ValueDecl>(GD.<a class="code" href="classclang_1_1GlobalDecl.html#a3971ce53aef50b4c3d829615a5ecd0a0">getDecl</a>())->getType());</div>
+<div class="line"><a name="l01501"></a><span class="lineno"> 1501</span>   </div>
+<div class="line"><a name="l01502"></a><span class="lineno"> 1502</span>   StringRef MangledName = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ac2e5fda10002d34cd7f20fc0c2615a51">getMangledName</a>(GD);</div>
+<div class="line"><a name="l01503"></a><span class="lineno"> 1503</span>   <span class="keywordflow">return</span> GetOrCreateLLVMFunction(MangledName, Ty, GD, ForVTable);</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="comment"></span></div>
+<div class="line"><a name="l01506"></a><span class="lineno"> 1506</span> <span class="comment">/// CreateRuntimeFunction - Create a new runtime function with the specified</span></div>
+<div class="line"><a name="l01507"></a><span class="lineno"> 1507</span> <span class="comment">/// type and name.</span></div>
+<div class="line"><a name="l01508"></a><span class="lineno"> 1508</span> <span class="comment"></span>llvm::Constant *</div>
+<div class="line"><a name="l01509"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a776cff8c453bd698eae25f3edb82ac40"> 1509</a></span> <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a776cff8c453bd698eae25f3edb82ac40">CodeGenModule::CreateRuntimeFunction</a>(llvm::FunctionType *FTy,</div>
+<div class="line"><a name="l01510"></a><span class="lineno"> 1510</span>                                      StringRef Name,</div>
+<div class="line"><a name="l01511"></a><span class="lineno"> 1511</span>                                      llvm::AttributeSet ExtraAttrs) {</div>
+<div class="line"><a name="l01512"></a><span class="lineno"> 1512</span>   llvm::Constant *C</div>
+<div class="line"><a name="l01513"></a><span class="lineno"> 1513</span>     = GetOrCreateLLVMFunction(Name, FTy, <a class="code" href="classclang_1_1GlobalDecl.html">GlobalDecl</a>(), <span class="comment">/*ForVTable=*/</span><span class="keyword">false</span>,</div>
+<div class="line"><a name="l01514"></a><span class="lineno"> 1514</span>                               ExtraAttrs);</div>
+<div class="line"><a name="l01515"></a><span class="lineno"> 1515</span>   <span class="keywordflow">if</span> (llvm::Function *F = dyn_cast<llvm::Function>(C))</div>
+<div class="line"><a name="l01516"></a><span class="lineno"> 1516</span>     <span class="keywordflow">if</span> (F->empty())</div>
+<div class="line"><a name="l01517"></a><span class="lineno"> 1517</span>       F->setCallingConv(<a class="code" href="structclang_1_1CodeGen_1_1CodeGenTypeCache.html#a8edd84af31019b2d64b66ddb14e2593b">getRuntimeCC</a>());</div>
+<div class="line"><a name="l01518"></a><span class="lineno"> 1518</span>   <span class="keywordflow">return</span> C;</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="comment"></span></div>
+<div class="line"><a name="l01521"></a><span class="lineno"> 1521</span> <span class="comment">/// isTypeConstant - Determine whether an object of this type can be emitted</span></div>
+<div class="line"><a name="l01522"></a><span class="lineno"> 1522</span> <span class="comment">/// as a constant.</span></div>
+<div class="line"><a name="l01523"></a><span class="lineno"> 1523</span> <span class="comment">///</span></div>
+<div class="line"><a name="l01524"></a><span class="lineno"> 1524</span> <span class="comment">/// If ExcludeCtor is true, the duration when the object's constructor runs</span></div>
+<div class="line"><a name="l01525"></a><span class="lineno"> 1525</span> <span class="comment">/// will not be considered. The caller will need to verify that the object is</span></div>
+<div class="line"><a name="l01526"></a><span class="lineno"> 1526</span> <span class="comment">/// not written to during its construction.</span></div>
+<div class="line"><a name="l01527"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a5b6f8d1596aefe7cb9b5ee206494353a"> 1527</a></span> <span class="comment"></span><span class="keywordtype">bool</span> <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a5b6f8d1596aefe7cb9b5ee206494353a">CodeGenModule::isTypeConstant</a>(<a class="code" href="classclang_1_1QualType.html">QualType</a> Ty, <span class="keywordtype">bool</span> ExcludeCtor) {</div>
+<div class="line"><a name="l01528"></a><span class="lineno"> 1528</span>   <span class="keywordflow">if</span> (!Ty.<a class="code" href="classclang_1_1QualType.html#a01b3c45b5f15a6893f4d8ce4f63f94e8">isConstant</a>(Context) && !Ty-><a class="code" href="classclang_1_1Type.html#ab2b860560d2ac12cd365aa09b143d195">isReferenceType</a>())</div>
+<div class="line"><a name="l01529"></a><span class="lineno"> 1529</span>     <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01530"></a><span class="lineno"> 1530</span> </div>
+<div class="line"><a name="l01531"></a><span class="lineno"> 1531</span>   <span class="keywordflow">if</span> (Context.<a class="code" href="classclang_1_1ASTContext.html#a3faa7b5a5e8d1637c53dea680acca0ff">getLangOpts</a>().CPlusPlus) {</div>
+<div class="line"><a name="l01532"></a><span class="lineno"> 1532</span>     <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1CXXRecordDecl.html" title="Represents a C++ struct/union/class.">CXXRecordDecl</a> *Record</div>
+<div class="line"><a name="l01533"></a><span class="lineno"> 1533</span>           = Context.<a class="code" href="classclang_1_1ASTContext.html#ac70f0cc2404d89f7e086b68514f2741a" title="Return the innermost element type of an array type.">getBaseElementType</a>(Ty)-><a class="code" href="classclang_1_1Type.html#a7dc6c3dbc192ad98871c3cc484376b9a" title="Retrieves the CXXRecordDecl that this type refers to, either because the type is a RecordType or beca...">getAsCXXRecordDecl</a>())</div>
+<div class="line"><a name="l01534"></a><span class="lineno"> 1534</span>       <span class="keywordflow">return</span> ExcludeCtor && !Record->hasMutableFields() &&</div>
+<div class="line"><a name="l01535"></a><span class="lineno"> 1535</span>              Record->hasTrivialDestructor();</div>
+<div class="line"><a name="l01536"></a><span class="lineno"> 1536</span>   }</div>
+<div class="line"><a name="l01537"></a><span class="lineno"> 1537</span> </div>
+<div class="line"><a name="l01538"></a><span class="lineno"> 1538</span>   <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01539"></a><span class="lineno"> 1539</span> }</div>
+<div class="line"><a name="l01540"></a><span class="lineno"> 1540</span> <span class="comment"></span></div>
+<div class="line"><a name="l01541"></a><span class="lineno"> 1541</span> <span class="comment">/// GetOrCreateLLVMGlobal - If the specified mangled name is not in the module,</span></div>
+<div class="line"><a name="l01542"></a><span class="lineno"> 1542</span> <span class="comment">/// create and return an llvm GlobalVariable with the specified type.  If there</span></div>
+<div class="line"><a name="l01543"></a><span class="lineno"> 1543</span> <span class="comment">/// is something in the module with the specified name, return it potentially</span></div>
+<div class="line"><a name="l01544"></a><span class="lineno"> 1544</span> <span class="comment">/// bitcasted to the right type.</span></div>
+<div class="line"><a name="l01545"></a><span class="lineno"> 1545</span> <span class="comment">///</span></div>
+<div class="line"><a name="l01546"></a><span class="lineno"> 1546</span> <span class="comment">/// If D is non-null, it specifies a decl that correspond to this.  This is used</span></div>
+<div class="line"><a name="l01547"></a><span class="lineno"> 1547</span> <span class="comment">/// to set the attributes on the global when it is first created.</span></div>
+<div class="line"><a name="l01548"></a><span class="lineno"> 1548</span> <span class="comment"></span>llvm::Constant *</div>
+<div class="line"><a name="l01549"></a><span class="lineno"> 1549</span> CodeGenModule::GetOrCreateLLVMGlobal(StringRef MangledName,</div>
+<div class="line"><a name="l01550"></a><span class="lineno"> 1550</span>                                      llvm::PointerType *Ty,</div>
+<div class="line"><a name="l01551"></a><span class="lineno"> 1551</span>                                      <span class="keyword">const</span> <a class="code" href="classclang_1_1VarDecl.html">VarDecl</a> *D,</div>
+<div class="line"><a name="l01552"></a><span class="lineno"> 1552</span>                                      <span class="keywordtype">bool</span> UnnamedAddr) {</div>
+<div class="line"><a name="l01553"></a><span class="lineno"> 1553</span>   <span class="comment">// Lookup the entry, lazily creating it if necessary.</span></div>
+<div class="line"><a name="l01554"></a><span class="lineno"> 1554</span>   llvm::GlobalValue *Entry = GetGlobalValue(MangledName);</div>
+<div class="line"><a name="l01555"></a><span class="lineno"> 1555</span>   <span class="keywordflow">if</span> (Entry) {</div>
+<div class="line"><a name="l01556"></a><span class="lineno"> 1556</span>     <span class="keywordflow">if</span> (WeakRefReferences.erase(Entry)) {</div>
+<div class="line"><a name="l01557"></a><span class="lineno"> 1557</span>       <span class="keywordflow">if</span> (D && !D-><a class="code" href="classclang_1_1Decl.html#ac60cc8b34313e03a5c40277c5c5ad61b">hasAttr</a><<a class="code" href="classclang_1_1WeakAttr.html">WeakAttr</a>>())</div>
+<div class="line"><a name="l01558"></a><span class="lineno"> 1558</span>         Entry->setLinkage(<a class="code" href="namespaceclang.html#a78aadfeaf316ded55fdd2d1a9c8815b6abf301cfab14d2b8fac6176f45e6bb54a" title="External linkage, which indicates that the entity can be referred to from other translation units...">llvm::Function::ExternalLinkage</a>);</div>
+<div class="line"><a name="l01559"></a><span class="lineno"> 1559</span>     }</div>
+<div class="line"><a name="l01560"></a><span class="lineno"> 1560</span> </div>
+<div class="line"><a name="l01561"></a><span class="lineno"> 1561</span>     <span class="keywordflow">if</span> (UnnamedAddr)</div>
+<div class="line"><a name="l01562"></a><span class="lineno"> 1562</span>       Entry->setUnnamedAddr(<span class="keyword">true</span>);</div>
+<div class="line"><a name="l01563"></a><span class="lineno"> 1563</span> </div>
+<div class="line"><a name="l01564"></a><span class="lineno"> 1564</span>     <span class="keywordflow">if</span> (Entry->getType() == Ty)</div>
+<div class="line"><a name="l01565"></a><span class="lineno"> 1565</span>       <span class="keywordflow">return</span> Entry;</div>
+<div class="line"><a name="l01566"></a><span class="lineno"> 1566</span> </div>
+<div class="line"><a name="l01567"></a><span class="lineno"> 1567</span>     <span class="comment">// Make sure the result is of the correct type.</span></div>
+<div class="line"><a name="l01568"></a><span class="lineno"> 1568</span>     <span class="keywordflow">if</span> (Entry->getType()->getAddressSpace() != Ty->getAddressSpace())</div>
+<div class="line"><a name="l01569"></a><span class="lineno"> 1569</span>       <span class="keywordflow">return</span> llvm::ConstantExpr::getAddrSpaceCast(Entry, Ty);</div>
+<div class="line"><a name="l01570"></a><span class="lineno"> 1570</span> </div>
+<div class="line"><a name="l01571"></a><span class="lineno"> 1571</span>     <span class="keywordflow">return</span> llvm::ConstantExpr::getBitCast(Entry, Ty);</div>
+<div class="line"><a name="l01572"></a><span class="lineno"> 1572</span>   }</div>
+<div class="line"><a name="l01573"></a><span class="lineno"> 1573</span> </div>
+<div class="line"><a name="l01574"></a><span class="lineno"> 1574</span>   <span class="comment">// This is the first use or definition of a mangled name.  If there is a</span></div>
+<div class="line"><a name="l01575"></a><span class="lineno"> 1575</span>   <span class="comment">// deferred decl with this name, remember that we need to emit it at the end</span></div>
+<div class="line"><a name="l01576"></a><span class="lineno"> 1576</span>   <span class="comment">// of the file.</span></div>
+<div class="line"><a name="l01577"></a><span class="lineno"> 1577</span>   llvm::StringMap<GlobalDecl>::iterator DDI = DeferredDecls.find(MangledName);</div>
+<div class="line"><a name="l01578"></a><span class="lineno"> 1578</span>   <span class="keywordflow">if</span> (DDI != DeferredDecls.end()) {</div>
+<div class="line"><a name="l01579"></a><span class="lineno"> 1579</span>     <span class="comment">// Move the potentially referenced deferred decl to the DeferredDeclsToEmit</span></div>
+<div class="line"><a name="l01580"></a><span class="lineno"> 1580</span>     <span class="comment">// list, and remove it from DeferredDecls (since we don't need it anymore).</span></div>
+<div class="line"><a name="l01581"></a><span class="lineno"> 1581</span>     DeferredDeclsToEmit.push_back(DDI->second);</div>
+<div class="line"><a name="l01582"></a><span class="lineno"> 1582</span>     DeferredDecls.erase(DDI);</div>
+<div class="line"><a name="l01583"></a><span class="lineno"> 1583</span>   }</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="keywordtype">unsigned</span> AddrSpace = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#afd8e9c6e79d4518858682e470e95e468">GetGlobalVarAddressSpace</a>(D, Ty->getAddressSpace());</div>
+<div class="line"><a name="l01586"></a><span class="lineno"> 1586</span>   llvm::GlobalVariable *GV =</div>
+<div class="line"><a name="l01587"></a><span class="lineno"> 1587</span>     <span class="keyword">new</span> llvm::GlobalVariable(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a908409c9231b015784ca008fd6bcb961">getModule</a>(), Ty->getElementType(), <span class="keyword">false</span>,</div>
+<div class="line"><a name="l01588"></a><span class="lineno"> 1588</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="l01589"></a><span class="lineno"> 1589</span>                              0, MangledName, 0,</div>
+<div class="line"><a name="l01590"></a><span class="lineno"> 1590</span>                              llvm::GlobalVariable::NotThreadLocal, AddrSpace);</div>
+<div class="line"><a name="l01591"></a><span class="lineno"> 1591</span> </div>
+<div class="line"><a name="l01592"></a><span class="lineno"> 1592</span>   <span class="comment">// Handle things which are present even on external declarations.</span></div>
+<div class="line"><a name="l01593"></a><span class="lineno"> 1593</span>   <span class="keywordflow">if</span> (D) {</div>
+<div class="line"><a name="l01594"></a><span class="lineno"> 1594</span>     <span class="comment">// FIXME: This code is overly simple and should be merged with other global</span></div>
+<div class="line"><a name="l01595"></a><span class="lineno"> 1595</span>     <span class="comment">// handling.</span></div>
+<div class="line"><a name="l01596"></a><span class="lineno"> 1596</span>     GV->setConstant(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a5b6f8d1596aefe7cb9b5ee206494353a">isTypeConstant</a>(D-><a class="code" href="classclang_1_1ValueDecl.html#aefa6d3327144aee23d2935f41d993484">getType</a>(), <span class="keyword">false</span>));</div>
+<div class="line"><a name="l01597"></a><span class="lineno"> 1597</span> </div>
+<div class="line"><a name="l01598"></a><span class="lineno"> 1598</span>     <span class="comment">// Set linkage and visibility in case we never see a definition.</span></div>
+<div class="line"><a name="l01599"></a><span class="lineno"> 1599</span>     <a class="code" href="classclang_1_1LinkageInfo.html">LinkageInfo</a> LV = D-><a class="code" href="classclang_1_1NamedDecl.html#a5ecf2d2b4b520393eb1a39a9aaa30241" title="Determines the linkage and visibility of this entity.">getLinkageAndVisibility</a>();</div>
+<div class="line"><a name="l01600"></a><span class="lineno"> 1600</span>     <span class="keywordflow">if</span> (LV.<a class="code" href="classclang_1_1LinkageInfo.html#ab7fe20ef7b88d45fd902f4548089b66f">getLinkage</a>() != <a class="code" href="namespaceclang.html#a78aadfeaf316ded55fdd2d1a9c8815b6abf301cfab14d2b8fac6176f45e6bb54a" title="External linkage, which indicates that the entity can be referred to from other translation units...">ExternalLinkage</a>) {</div>
+<div class="line"><a name="l01601"></a><span class="lineno"> 1601</span>       <span class="comment">// Don't set internal linkage on declarations.</span></div>
+<div class="line"><a name="l01602"></a><span class="lineno"> 1602</span>     } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l01603"></a><span class="lineno"> 1603</span>       <span class="keywordflow">if</span> (D-><a class="code" href="classclang_1_1Decl.html#ac60cc8b34313e03a5c40277c5c5ad61b">hasAttr</a><<a class="code" href="classclang_1_1DLLImportAttr.html">DLLImportAttr</a>>())</div>
+<div class="line"><a name="l01604"></a><span class="lineno"> 1604</span>         GV-><a class="code" href="classclang_1_1LinkageInfo.html#a1e2902cbe747c8449f7b149f88567f2c">setLinkage</a>(llvm::GlobalValue::DLLImportLinkage);</div>
+<div class="line"><a name="l01605"></a><span class="lineno"> 1605</span>       <span class="keywordflow">else</span> <span class="keywordflow">if</span> (D-><a class="code" href="classclang_1_1Decl.html#ac60cc8b34313e03a5c40277c5c5ad61b">hasAttr</a><<a class="code" href="classclang_1_1WeakAttr.html">WeakAttr</a>>() || D-><a class="code" href="classclang_1_1Decl.html#a1b071e9bafaf5e1ae1733a31b4fbafc9" title="Determine whether this is a weak-imported symbol.">isWeakImported</a>())</div>
+<div class="line"><a name="l01606"></a><span class="lineno"> 1606</span>         GV->setLinkage(llvm::GlobalValue::ExternalWeakLinkage);</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">// Set visibility on a declaration only if it's explicit.</span></div>
+<div class="line"><a name="l01609"></a><span class="lineno"> 1609</span>       <span class="keywordflow">if</span> (LV.<a class="code" href="classclang_1_1LinkageInfo.html#a8a4e6f5836f3b1ae75f2226095b3db80">isVisibilityExplicit</a>())</div>
+<div class="line"><a name="l01610"></a><span class="lineno"> 1610</span>         GV->setVisibility(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a805a8799c1755c409d8a87765dbc67c5">GetLLVMVisibility</a>(LV.<a class="code" href="classclang_1_1LinkageInfo.html#a2836eba199d59b9b99ee7fbdce55f809">getVisibility</a>()));</div>
+<div class="line"><a name="l01611"></a><span class="lineno"> 1611</span>     }</div>
+<div class="line"><a name="l01612"></a><span class="lineno"> 1612</span> </div>
+<div class="line"><a name="l01613"></a><span class="lineno"> 1613</span>     <span class="keywordflow">if</span> (D-><a class="code" href="classclang_1_1VarDecl.html#ae704b725af5821356581f7857a2a2761">getTLSKind</a>()) {</div>
+<div class="line"><a name="l01614"></a><span class="lineno"> 1614</span>       <span class="keywordflow">if</span> (D-><a class="code" href="classclang_1_1VarDecl.html#ae704b725af5821356581f7857a2a2761">getTLSKind</a>() == <a class="code" href="classclang_1_1VarDecl.html#abd5cfc880214a4e8b29d1875602ae3c6a852335662d043a4ad078dc4da11d9ed4" title="TLS with a dynamic initializer.">VarDecl::TLS_Dynamic</a>)</div>
+<div class="line"><a name="l01615"></a><span class="lineno"> 1615</span>         CXXThreadLocals.push_back(std::make_pair(D, GV));</div>
+<div class="line"><a name="l01616"></a><span class="lineno"> 1616</span>       <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a3313f5aef8fbe8be6470e22325ae7fa4">setTLSMode</a>(GV, *D);</div>
+<div class="line"><a name="l01617"></a><span class="lineno"> 1617</span>     }</div>
+<div class="line"><a name="l01618"></a><span class="lineno"> 1618</span> </div>
+<div class="line"><a name="l01619"></a><span class="lineno"> 1619</span>     <span class="comment">// If required by the ABI, treat declarations of static data members with</span></div>
+<div class="line"><a name="l01620"></a><span class="lineno"> 1620</span>     <span class="comment">// inline initializers as definitions.</span></div>
+<div class="line"><a name="l01621"></a><span class="lineno"> 1621</span>     <span class="keywordflow">if</span> (<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#abcced6119cfc90ff6332ec96766ff70a">getCXXABI</a>().isInlineInitializedStaticDataMemberLinkOnce() &&</div>
+<div class="line"><a name="l01622"></a><span class="lineno"> 1622</span>         D-><a class="code" href="classclang_1_1VarDecl.html#a373bffe9299b1e17054f1bd6c46e00a5" title="Determines whether this is a static data member.">isStaticDataMember</a>() && D-><a class="code" href="classclang_1_1VarDecl.html#a0404df3a6f13fbe1cda45150ee725f8a">hasInit</a>() &&</div>
+<div class="line"><a name="l01623"></a><span class="lineno"> 1623</span>         !D-><a class="code" href="classclang_1_1VarDecl.html#a78a1c154d746b4dd700349fa705feaf6" title="Check whether this declaration is a definition. If this could be a tentative definition (in C)...">isThisDeclarationADefinition</a>())</div>
+<div class="line"><a name="l01624"></a><span class="lineno"> 1624</span>       EmitGlobalVarDefinition(D);</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> </div>
+<div class="line"><a name="l01627"></a><span class="lineno"> 1627</span>   <span class="keywordflow">if</span> (AddrSpace != Ty->getAddressSpace())</div>
+<div class="line"><a name="l01628"></a><span class="lineno"> 1628</span>     <span class="keywordflow">return</span> llvm::ConstantExpr::getAddrSpaceCast(GV, Ty);</div>
+<div class="line"><a name="l01629"></a><span class="lineno"> 1629</span> </div>
+<div class="line"><a name="l01630"></a><span class="lineno"> 1630</span>   <span class="keywordflow">return</span> GV;</div>
+<div class="line"><a name="l01631"></a><span class="lineno"> 1631</span> }</div>
+<div class="line"><a name="l01632"></a><span class="lineno"> 1632</span> </div>
+<div class="line"><a name="l01633"></a><span class="lineno"> 1633</span> </div>
+<div class="line"><a name="l01634"></a><span class="lineno"> 1634</span> llvm::GlobalVariable *</div>
+<div class="line"><a name="l01635"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#aa8b94d78463413716ef572aeb9fa6417"> 1635</a></span> <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#aa8b94d78463413716ef572aeb9fa6417">CodeGenModule::CreateOrReplaceCXXRuntimeVariable</a>(StringRef Name, </div>
+<div class="line"><a name="l01636"></a><span class="lineno"> 1636</span>                                       llvm::Type *Ty,</div>
+<div class="line"><a name="l01637"></a><span class="lineno"> 1637</span>                                       llvm::GlobalValue::LinkageTypes <a class="code" href="namespaceclang.html#a78aadfeaf316ded55fdd2d1a9c8815b6" title="Describes the different kinds of linkage (C++ [basic.link], C99 6.2.2) that an entity may have...">Linkage</a>) {</div>
+<div class="line"><a name="l01638"></a><span class="lineno"> 1638</span>   llvm::GlobalVariable *GV = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a908409c9231b015784ca008fd6bcb961">getModule</a>().getNamedGlobal(Name);</div>
+<div class="line"><a name="l01639"></a><span class="lineno"> 1639</span>   llvm::GlobalVariable *OldGV = 0;</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>   </div>
+<div class="line"><a name="l01642"></a><span class="lineno"> 1642</span>   <span class="keywordflow">if</span> (GV) {</div>
+<div class="line"><a name="l01643"></a><span class="lineno"> 1643</span>     <span class="comment">// Check if the variable has the right type.</span></div>
+<div class="line"><a name="l01644"></a><span class="lineno"> 1644</span>     <span class="keywordflow">if</span> (GV->getType()->getElementType() == Ty)</div>
+<div class="line"><a name="l01645"></a><span class="lineno"> 1645</span>       <span class="keywordflow">return</span> GV;</div>
+<div class="line"><a name="l01646"></a><span class="lineno"> 1646</span> </div>
+<div class="line"><a name="l01647"></a><span class="lineno"> 1647</span>     <span class="comment">// Because C++ name mangling, the only way we can end up with an already</span></div>
+<div class="line"><a name="l01648"></a><span class="lineno"> 1648</span>     <span class="comment">// existing global with the same name is if it has been declared extern "C".</span></div>
+<div class="line"><a name="l01649"></a><span class="lineno"> 1649</span>     assert(GV->isDeclaration() && <span class="stringliteral">"Declaration has wrong type!"</span>);</div>
+<div class="line"><a name="l01650"></a><span class="lineno"> 1650</span>     OldGV = GV;</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>   </div>
+<div class="line"><a name="l01653"></a><span class="lineno"> 1653</span>   <span class="comment">// Create a new variable.</span></div>
+<div class="line"><a name="l01654"></a><span class="lineno"> 1654</span>   GV = <span class="keyword">new</span> llvm::GlobalVariable(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a908409c9231b015784ca008fd6bcb961">getModule</a>(), Ty, <span class="comment">/*isConstant=*/</span><span class="keyword">true</span>,</div>
+<div class="line"><a name="l01655"></a><span class="lineno"> 1655</span>                                 Linkage, 0, Name);</div>
+<div class="line"><a name="l01656"></a><span class="lineno"> 1656</span>   </div>
+<div class="line"><a name="l01657"></a><span class="lineno"> 1657</span>   <span class="keywordflow">if</span> (OldGV) {</div>
+<div class="line"><a name="l01658"></a><span class="lineno"> 1658</span>     <span class="comment">// Replace occurrences of the old variable if needed.</span></div>
+<div class="line"><a name="l01659"></a><span class="lineno"> 1659</span>     GV->takeName(OldGV);</div>
+<div class="line"><a name="l01660"></a><span class="lineno"> 1660</span>     </div>
+<div class="line"><a name="l01661"></a><span class="lineno"> 1661</span>     <span class="keywordflow">if</span> (!OldGV->use_empty()) {</div>
+<div class="line"><a name="l01662"></a><span class="lineno"> 1662</span>       llvm::Constant *NewPtrForOldDecl =</div>
+<div class="line"><a name="l01663"></a><span class="lineno"> 1663</span>       llvm::ConstantExpr::getBitCast(GV, OldGV->getType());</div>
+<div class="line"><a name="l01664"></a><span class="lineno"> 1664</span>       OldGV->replaceAllUsesWith(NewPtrForOldDecl);</div>
+<div class="line"><a name="l01665"></a><span class="lineno"> 1665</span>     }</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>     OldGV->eraseFromParent();</div>
+<div class="line"><a name="l01668"></a><span class="lineno"> 1668</span>   }</div>
+<div class="line"><a name="l01669"></a><span class="lineno"> 1669</span>   </div>
+<div class="line"><a name="l01670"></a><span class="lineno"> 1670</span>   <span class="keywordflow">return</span> GV;</div>
+<div class="line"><a name="l01671"></a><span class="lineno"> 1671</span> }</div>
+<div class="line"><a name="l01672"></a><span class="lineno"> 1672</span> <span class="comment"></span></div>
+<div class="line"><a name="l01673"></a><span class="lineno"> 1673</span> <span class="comment">/// GetAddrOfGlobalVar - Return the llvm::Constant for the address of the</span></div>
+<div class="line"><a name="l01674"></a><span class="lineno"> 1674</span> <span class="comment">/// given global variable.  If Ty is non-null and if the global doesn't exist,</span></div>
+<div class="line"><a name="l01675"></a><span class="lineno"> 1675</span> <span class="comment">/// then it will be created with the specified type instead of whatever the</span></div>
+<div class="line"><a name="l01676"></a><span class="lineno"> 1676</span> <span class="comment">/// normal requested type would be.</span></div>
+<div class="line"><a name="l01677"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ada9b3a5077437e849c3d758cca9567e3"> 1677</a></span> <span class="comment"></span>llvm::Constant *<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ada9b3a5077437e849c3d758cca9567e3">CodeGenModule::GetAddrOfGlobalVar</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1VarDecl.html">VarDecl</a> *D,</div>
+<div class="line"><a name="l01678"></a><span class="lineno"> 1678</span>                                                   llvm::Type *Ty) {</div>
+<div class="line"><a name="l01679"></a><span class="lineno"> 1679</span>   assert(D-><a class="code" href="classclang_1_1VarDecl.html#a29acc74cf00aaf5d939367f31eeb3aa3" title="Returns true for all variables that do not have local storage.">hasGlobalStorage</a>() && <span class="stringliteral">"Not a global variable"</span>);</div>
+<div class="line"><a name="l01680"></a><span class="lineno"> 1680</span>   <a class="code" href="classclang_1_1QualType.html">QualType</a> ASTTy = D-><a class="code" href="classclang_1_1ValueDecl.html#aefa6d3327144aee23d2935f41d993484">getType</a>();</div>
+<div class="line"><a name="l01681"></a><span class="lineno"> 1681</span>   <span class="keywordflow">if</span> (Ty == 0)</div>
+<div class="line"><a name="l01682"></a><span class="lineno"> 1682</span>     Ty = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a1325760f10142c1da8521b53734858ef">getTypes</a>().<a class="code" href="classclang_1_1CodeGen_1_1CodeGenTypes.html#a9e549d382da897b9d23ed3e2c65e6cf7">ConvertTypeForMem</a>(ASTTy);</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>   llvm::PointerType *PTy =</div>
+<div class="line"><a name="l01685"></a><span class="lineno"> 1685</span>     llvm::PointerType::get(Ty, <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>().getTargetAddressSpace(ASTTy));</div>
+<div class="line"><a name="l01686"></a><span class="lineno"> 1686</span> </div>
+<div class="line"><a name="l01687"></a><span class="lineno"> 1687</span>   StringRef MangledName = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ac2e5fda10002d34cd7f20fc0c2615a51">getMangledName</a>(D);</div>
+<div class="line"><a name="l01688"></a><span class="lineno"> 1688</span>   <span class="keywordflow">return</span> GetOrCreateLLVMGlobal(MangledName, PTy, D);</div>
+<div class="line"><a name="l01689"></a><span class="lineno"> 1689</span> }</div>
+<div class="line"><a name="l01690"></a><span class="lineno"> 1690</span> <span class="comment"></span></div>
+<div class="line"><a name="l01691"></a><span class="lineno"> 1691</span> <span class="comment">/// CreateRuntimeVariable - Create a new runtime global variable with the</span></div>
+<div class="line"><a name="l01692"></a><span class="lineno"> 1692</span> <span class="comment">/// specified type and name.</span></div>
+<div class="line"><a name="l01693"></a><span class="lineno"> 1693</span> <span class="comment"></span>llvm::Constant *</div>
+<div class="line"><a name="l01694"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#aa09bc64daac1a1dd1ab52ba1335d6c33"> 1694</a></span> <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#aa09bc64daac1a1dd1ab52ba1335d6c33">CodeGenModule::CreateRuntimeVariable</a>(llvm::Type *Ty,</div>
+<div class="line"><a name="l01695"></a><span class="lineno"> 1695</span>                                      StringRef Name) {</div>
+<div class="line"><a name="l01696"></a><span class="lineno"> 1696</span>   <span class="keywordflow">return</span> GetOrCreateLLVMGlobal(Name, llvm::PointerType::getUnqual(Ty), 0,</div>
+<div class="line"><a name="l01697"></a><span class="lineno"> 1697</span>                                <span class="keyword">true</span>);</div>
+<div class="line"><a name="l01698"></a><span class="lineno"> 1698</span> }</div>
+<div class="line"><a name="l01699"></a><span class="lineno"> 1699</span> </div>
+<div class="line"><a name="l01700"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a8072854ccb29ed1d3121c29129529a55"> 1700</a></span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a8072854ccb29ed1d3121c29129529a55">CodeGenModule::EmitTentativeDefinition</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1VarDecl.html">VarDecl</a> *D) {</div>
+<div class="line"><a name="l01701"></a><span class="lineno"> 1701</span>   assert(!D-><a class="code" href="classclang_1_1VarDecl.html#af6438debfc45cb2ad2d5cb5ce2711e0c">getInit</a>() && <span class="stringliteral">"Cannot emit definite definitions here!"</span>);</div>
+<div class="line"><a name="l01702"></a><span class="lineno"> 1702</span> </div>
+<div class="line"><a name="l01703"></a><span class="lineno"> 1703</span>   <span class="keywordflow">if</span> (MayDeferGeneration(D)) {</div>
+<div class="line"><a name="l01704"></a><span class="lineno"> 1704</span>     <span class="comment">// If we have not seen a reference to this variable yet, place it</span></div>
+<div class="line"><a name="l01705"></a><span class="lineno"> 1705</span>     <span class="comment">// into the deferred declarations table to be emitted if needed</span></div>
+<div class="line"><a name="l01706"></a><span class="lineno"> 1706</span>     <span class="comment">// later.</span></div>
+<div class="line"><a name="l01707"></a><span class="lineno"> 1707</span>     StringRef MangledName = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ac2e5fda10002d34cd7f20fc0c2615a51">getMangledName</a>(D);</div>
+<div class="line"><a name="l01708"></a><span class="lineno"> 1708</span>     <span class="keywordflow">if</span> (!GetGlobalValue(MangledName)) {</div>
+<div class="line"><a name="l01709"></a><span class="lineno"> 1709</span>       DeferredDecls[MangledName] = D;</div>
+<div class="line"><a name="l01710"></a><span class="lineno"> 1710</span>       <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l01711"></a><span class="lineno"> 1711</span>     }</div>
+<div class="line"><a name="l01712"></a><span class="lineno"> 1712</span>   }</div>
+<div class="line"><a name="l01713"></a><span class="lineno"> 1713</span> </div>
+<div class="line"><a name="l01714"></a><span class="lineno"> 1714</span>   <span class="comment">// The tentative definition is the only definition.</span></div>
+<div class="line"><a name="l01715"></a><span class="lineno"> 1715</span>   EmitGlobalVarDefinition(D);</div>
+<div class="line"><a name="l01716"></a><span class="lineno"> 1716</span> }</div>
+<div class="line"><a name="l01717"></a><span class="lineno"> 1717</span> </div>
+<div class="line"><a name="l01718"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a165f864bb90a011c849958ce38cd3766"> 1718</a></span> <a class="code" href="classclang_1_1CharUnits.html">CharUnits</a> <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a165f864bb90a011c849958ce38cd3766">CodeGenModule::GetTargetTypeStoreSize</a>(llvm::Type *Ty)<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l01719"></a><span class="lineno"> 1719</span>     <span class="keywordflow">return</span> Context.<a class="code" href="classclang_1_1ASTContext.html#a5d5f812ba1100ca9ef1c1a812b2f5a24" title="Convert a size in bits to a size in characters.">toCharUnitsFromBits</a>(</div>
+<div class="line"><a name="l01720"></a><span class="lineno"> 1720</span>       TheDataLayout.getTypeStoreSizeInBits(Ty));</div>
+<div class="line"><a name="l01721"></a><span class="lineno"> 1721</span> }</div>
+<div class="line"><a name="l01722"></a><span class="lineno"> 1722</span> </div>
+<div class="line"><a name="l01723"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#afd8e9c6e79d4518858682e470e95e468"> 1723</a></span> <span class="keywordtype">unsigned</span> <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#afd8e9c6e79d4518858682e470e95e468">CodeGenModule::GetGlobalVarAddressSpace</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1VarDecl.html">VarDecl</a> *D,</div>
+<div class="line"><a name="l01724"></a><span class="lineno"> 1724</span>                                                  <span class="keywordtype">unsigned</span> AddrSpace) {</div>
+<div class="line"><a name="l01725"></a><span class="lineno"> 1725</span>   <span class="keywordflow">if</span> (LangOpts.CUDA && CodeGenOpts.CUDAIsDevice) {</div>
+<div class="line"><a name="l01726"></a><span class="lineno"> 1726</span>     <span class="keywordflow">if</span> (D-><a class="code" href="classclang_1_1Decl.html#ac60cc8b34313e03a5c40277c5c5ad61b">hasAttr</a><<a class="code" href="classclang_1_1CUDAConstantAttr.html">CUDAConstantAttr</a>>())</div>
+<div class="line"><a name="l01727"></a><span class="lineno"> 1727</span>       AddrSpace = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>().<a class="code" href="classclang_1_1ASTContext.html#aed2e4aedb5a9fafd8bd586349f1b9f6f">getTargetAddressSpace</a>(<a class="code" href="namespaceclang_1_1LangAS.html#a78ee38b55acb7cc806cb61e6d2a9f960ab6ec2a93e70aa3b141d46f0a348ba6be">LangAS::cuda_constant</a>);</div>
+<div class="line"><a name="l01728"></a><span class="lineno"> 1728</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (D-><a class="code" href="classclang_1_1Decl.html#ac60cc8b34313e03a5c40277c5c5ad61b">hasAttr</a><<a class="code" href="classclang_1_1CUDASharedAttr.html">CUDASharedAttr</a>>())</div>
+<div class="line"><a name="l01729"></a><span class="lineno"> 1729</span>       AddrSpace = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>().<a class="code" href="classclang_1_1ASTContext.html#aed2e4aedb5a9fafd8bd586349f1b9f6f">getTargetAddressSpace</a>(<a class="code" href="namespaceclang_1_1LangAS.html#a78ee38b55acb7cc806cb61e6d2a9f960a67fcf944d1b42ce553ddd8be11414032">LangAS::cuda_shared</a>);</div>
+<div class="line"><a name="l01730"></a><span class="lineno"> 1730</span>     <span class="keywordflow">else</span></div>
+<div class="line"><a name="l01731"></a><span class="lineno"> 1731</span>       AddrSpace = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>().<a class="code" href="classclang_1_1ASTContext.html#aed2e4aedb5a9fafd8bd586349f1b9f6f">getTargetAddressSpace</a>(<a class="code" href="namespaceclang_1_1LangAS.html#a78ee38b55acb7cc806cb61e6d2a9f960a6e4d8b0b8d9c66d2dcb24498b30ed4be">LangAS::cuda_device</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>   <span class="keywordflow">return</span> AddrSpace;</div>
+<div class="line"><a name="l01735"></a><span class="lineno"> 1735</span> }</div>
+<div class="line"><a name="l01736"></a><span class="lineno"> 1736</span> </div>
+<div class="line"><a name="l01737"></a><span class="lineno"> 1737</span> <span class="keyword">template</span><<span class="keyword">typename</span> SomeDecl></div>
+<div class="line"><a name="l01738"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a974ab43a2b0873b20b10079c5375aee3"> 1738</a></span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a974ab43a2b0873b20b10079c5375aee3" title="If the declaration has internal linkage but is inside an extern "C" linkage specification, prepare to emit an alias for it to the expected name.">CodeGenModule::MaybeHandleStaticInExternC</a>(<span class="keyword">const</span> SomeDecl *D,</div>
+<div class="line"><a name="l01739"></a><span class="lineno"> 1739</span>                                                llvm::GlobalValue *GV) {</div>
+<div class="line"><a name="l01740"></a><span class="lineno"> 1740</span>   <span class="keywordflow">if</span> (!<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#abae1594027ce284ce5b7f06c66d24ea7">getLangOpts</a>().<a class="code" href="namespaceclang_1_1frontend.html#a09dfa01c4e997a3794d80922c5e853bbaf89a7ac6211aecefb5f7ecc17d3ebed4">CPlusPlus</a>)</div>
+<div class="line"><a name="l01741"></a><span class="lineno"> 1741</span>     <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l01742"></a><span class="lineno"> 1742</span> </div>
+<div class="line"><a name="l01743"></a><span class="lineno"> 1743</span>   <span class="comment">// Must have 'used' attribute, or else inline assembly can't rely on</span></div>
+<div class="line"><a name="l01744"></a><span class="lineno"> 1744</span>   <span class="comment">// the name existing.</span></div>
+<div class="line"><a name="l01745"></a><span class="lineno"> 1745</span>   <span class="keywordflow">if</span> (!D->template hasAttr<UsedAttr>())</div>
+<div class="line"><a name="l01746"></a><span class="lineno"> 1746</span>     <span class="keywordflow">return</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>   <span class="comment">// Must have internal linkage and an ordinary name.</span></div>
+<div class="line"><a name="l01749"></a><span class="lineno"> 1749</span>   <span class="keywordflow">if</span> (!D->getIdentifier() || D->getFormalLinkage() != <a class="code" href="namespaceclang.html#a78aadfeaf316ded55fdd2d1a9c8815b6a140eea3dcce11b617f72600f6644f4a3" title="Internal linkage, which indicates that the entity can be referred to from within the translation unit...">InternalLinkage</a>)</div>
+<div class="line"><a name="l01750"></a><span class="lineno"> 1750</span>     <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l01751"></a><span class="lineno"> 1751</span> </div>
+<div class="line"><a name="l01752"></a><span class="lineno"> 1752</span>   <span class="comment">// Must be in an extern "C" context. Entities declared directly within</span></div>
+<div class="line"><a name="l01753"></a><span class="lineno"> 1753</span>   <span class="comment">// a record are not extern "C" even if the record is in such a context.</span></div>
+<div class="line"><a name="l01754"></a><span class="lineno"> 1754</span>   <span class="keyword">const</span> SomeDecl *First = D->getFirstDecl();</div>
+<div class="line"><a name="l01755"></a><span class="lineno"> 1755</span>   <span class="keywordflow">if</span> (First->getDeclContext()->isRecord() || !First->isInExternCContext())</div>
+<div class="line"><a name="l01756"></a><span class="lineno"> 1756</span>     <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l01757"></a><span class="lineno"> 1757</span> </div>
+<div class="line"><a name="l01758"></a><span class="lineno"> 1758</span>   <span class="comment">// OK, this is an internal linkage entity inside an extern "C" linkage</span></div>
+<div class="line"><a name="l01759"></a><span class="lineno"> 1759</span>   <span class="comment">// specification. Make a note of that so we can give it the "expected"</span></div>
+<div class="line"><a name="l01760"></a><span class="lineno"> 1760</span>   <span class="comment">// mangled name if nothing else is using that name.</span></div>
+<div class="line"><a name="l01761"></a><span class="lineno"> 1761</span>   std::pair<StaticExternCMap::iterator, bool> R =</div>
+<div class="line"><a name="l01762"></a><span class="lineno"> 1762</span>       StaticExternCValues.insert(std::make_pair(D->getIdentifier(), GV));</div>
+<div class="line"><a name="l01763"></a><span class="lineno"> 1763</span> </div>
+<div class="line"><a name="l01764"></a><span class="lineno"> 1764</span>   <span class="comment">// If we have multiple internal linkage entities with the same name</span></div>
+<div class="line"><a name="l01765"></a><span class="lineno"> 1765</span>   <span class="comment">// in extern "C" regions, none of them gets that name.</span></div>
+<div class="line"><a name="l01766"></a><span class="lineno"> 1766</span>   <span class="keywordflow">if</span> (!R.second)</div>
+<div class="line"><a name="l01767"></a><span class="lineno"> 1767</span>     R.first->second = 0;</div>
+<div class="line"><a name="l01768"></a><span class="lineno"> 1768</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> <span class="keywordtype">void</span> CodeGenModule::EmitGlobalVarDefinition(<span class="keyword">const</span> <a class="code" href="classclang_1_1VarDecl.html">VarDecl</a> *D) {</div>
+<div class="line"><a name="l01771"></a><span class="lineno"> 1771</span>   llvm::Constant *Init = 0;</div>
+<div class="line"><a name="l01772"></a><span class="lineno"> 1772</span>   <a class="code" href="classclang_1_1QualType.html">QualType</a> ASTTy = D-><a class="code" href="classclang_1_1ValueDecl.html#aefa6d3327144aee23d2935f41d993484">getType</a>();</div>
+<div class="line"><a name="l01773"></a><span class="lineno"> 1773</span>   <a class="code" href="classclang_1_1CXXRecordDecl.html" title="Represents a C++ struct/union/class.">CXXRecordDecl</a> *RD = ASTTy-><a class="code" href="classclang_1_1Type.html#aaf341a9ef2797f73d9cb091c6712242c">getBaseElementTypeUnsafe</a>()-><a class="code" href="classclang_1_1Type.html#a7dc6c3dbc192ad98871c3cc484376b9a" title="Retrieves the CXXRecordDecl that this type refers to, either because the type is a RecordType or beca...">getAsCXXRecordDecl</a>();</div>
+<div class="line"><a name="l01774"></a><span class="lineno"> 1774</span>   <span class="keywordtype">bool</span> NeedsGlobalCtor = <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01775"></a><span class="lineno"> 1775</span>   <span class="keywordtype">bool</span> NeedsGlobalDtor = RD && !RD-><a class="code" href="classclang_1_1CXXRecordDecl.html#a5ba24967342c02411fb14790a24b8a8a" title="Determine whether this class has a trivial destructor (C++ [class.dtor]p3)">hasTrivialDestructor</a>();</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">const</span> <a class="code" href="classclang_1_1VarDecl.html">VarDecl</a> *InitDecl;</div>
+<div class="line"><a name="l01778"></a><span class="lineno"> 1778</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *InitExpr = D-><a class="code" href="classclang_1_1VarDecl.html#ab495430c7cfc3bf2d5e451b5e670491f">getAnyInitializer</a>(InitDecl);</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="keywordflow">if</span> (!InitExpr) {</div>
+<div class="line"><a name="l01781"></a><span class="lineno"> 1781</span>     <span class="comment">// This is a tentative definition; tentative definitions are</span></div>
+<div class="line"><a name="l01782"></a><span class="lineno"> 1782</span>     <span class="comment">// implicitly initialized with { 0 }.</span></div>
+<div class="line"><a name="l01783"></a><span class="lineno"> 1783</span>     <span class="comment">//</span></div>
+<div class="line"><a name="l01784"></a><span class="lineno"> 1784</span>     <span class="comment">// Note that tentative definitions are only emitted at the end of</span></div>
+<div class="line"><a name="l01785"></a><span class="lineno"> 1785</span>     <span class="comment">// a translation unit, so they should never have incomplete</span></div>
+<div class="line"><a name="l01786"></a><span class="lineno"> 1786</span>     <span class="comment">// type. In addition, EmitTentativeDefinition makes sure that we</span></div>
+<div class="line"><a name="l01787"></a><span class="lineno"> 1787</span>     <span class="comment">// never attempt to emit a tentative definition if a real one</span></div>
+<div class="line"><a name="l01788"></a><span class="lineno"> 1788</span>     <span class="comment">// exists. A use may still exists, however, so we still may need</span></div>
+<div class="line"><a name="l01789"></a><span class="lineno"> 1789</span>     <span class="comment">// to do a RAUW.</span></div>
+<div class="line"><a name="l01790"></a><span class="lineno"> 1790</span>     assert(!ASTTy-><a class="code" href="classclang_1_1Type.html#a6d84e779575f1e510f7ddc98119662bd" title="Def If non-NULL, and the type refers to some kind of declaration that can be completed (such as a C s...">isIncompleteType</a>() && <span class="stringliteral">"Unexpected incomplete type"</span>);</div>
+<div class="line"><a name="l01791"></a><span class="lineno"> 1791</span>     Init = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#adb80a01436354fb32cedf9a6d639d48c">EmitNullConstant</a>(D-><a class="code" href="classclang_1_1ValueDecl.html#aefa6d3327144aee23d2935f41d993484">getType</a>());</div>
+<div class="line"><a name="l01792"></a><span class="lineno"> 1792</span>   } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l01793"></a><span class="lineno"> 1793</span>     initializedGlobalDecl = <a class="code" href="classclang_1_1GlobalDecl.html">GlobalDecl</a>(D);</div>
+<div class="line"><a name="l01794"></a><span class="lineno"> 1794</span>     Init = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a65ea94cb2a22d40ba51423a01fbfd5a3">EmitConstantInit</a>(*InitDecl);</div>
+<div class="line"><a name="l01795"></a><span class="lineno"> 1795</span> </div>
+<div class="line"><a name="l01796"></a><span class="lineno"> 1796</span>     <span class="keywordflow">if</span> (!Init) {</div>
+<div class="line"><a name="l01797"></a><span class="lineno"> 1797</span>       <a class="code" href="classclang_1_1QualType.html">QualType</a> T = InitExpr-><a class="code" href="classclang_1_1Expr.html#a3dd8850a4ad8a5b5f595dd9e9446187b">getType</a>();</div>
+<div class="line"><a name="l01798"></a><span class="lineno"> 1798</span>       <span class="keywordflow">if</span> (D-><a class="code" href="classclang_1_1ValueDecl.html#aefa6d3327144aee23d2935f41d993484">getType</a>()-><a class="code" href="classclang_1_1Type.html#ab2b860560d2ac12cd365aa09b143d195">isReferenceType</a>())</div>
+<div class="line"><a name="l01799"></a><span class="lineno"> 1799</span>         T = D-><a class="code" href="classclang_1_1ValueDecl.html#aefa6d3327144aee23d2935f41d993484">getType</a>();</div>
+<div class="line"><a name="l01800"></a><span class="lineno"> 1800</span> </div>
+<div class="line"><a name="l01801"></a><span class="lineno"> 1801</span>       <span class="keywordflow">if</span> (<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#abae1594027ce284ce5b7f06c66d24ea7">getLangOpts</a>().<a class="code" href="namespaceclang_1_1frontend.html#a09dfa01c4e997a3794d80922c5e853bbaf89a7ac6211aecefb5f7ecc17d3ebed4">CPlusPlus</a>) {</div>
+<div class="line"><a name="l01802"></a><span class="lineno"> 1802</span>         Init = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#adb80a01436354fb32cedf9a6d639d48c">EmitNullConstant</a>(T);</div>
+<div class="line"><a name="l01803"></a><span class="lineno"> 1803</span>         NeedsGlobalCtor = <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01804"></a><span class="lineno"> 1804</span>       } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l01805"></a><span class="lineno"> 1805</span>         <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a376568c3ab5102ebd46232c944128aee">ErrorUnsupported</a>(D, <span class="stringliteral">"static initializer"</span>);</div>
+<div class="line"><a name="l01806"></a><span class="lineno"> 1806</span>         Init = llvm::UndefValue::get(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a1325760f10142c1da8521b53734858ef">getTypes</a>().ConvertType(T));</div>
+<div class="line"><a name="l01807"></a><span class="lineno"> 1807</span>       }</div>
+<div class="line"><a name="l01808"></a><span class="lineno"> 1808</span>     } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l01809"></a><span class="lineno"> 1809</span>       <span class="comment">// We don't need an initializer, so remove the entry for the delayed</span></div>
+<div class="line"><a name="l01810"></a><span class="lineno"> 1810</span>       <span class="comment">// initializer position (just in case this entry was delayed) if we</span></div>
+<div class="line"><a name="l01811"></a><span class="lineno"> 1811</span>       <span class="comment">// also don't need to register a destructor.</span></div>
+<div class="line"><a name="l01812"></a><span class="lineno"> 1812</span>       <span class="keywordflow">if</span> (<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#abae1594027ce284ce5b7f06c66d24ea7">getLangOpts</a>().<a class="code" href="namespaceclang_1_1frontend.html#a09dfa01c4e997a3794d80922c5e853bbaf89a7ac6211aecefb5f7ecc17d3ebed4">CPlusPlus</a> && !NeedsGlobalDtor)</div>
+<div class="line"><a name="l01813"></a><span class="lineno"> 1813</span>         DelayedCXXInitPosition.erase(D);</div>
+<div class="line"><a name="l01814"></a><span class="lineno"> 1814</span>     }</div>
+<div class="line"><a name="l01815"></a><span class="lineno"> 1815</span>   }</div>
+<div class="line"><a name="l01816"></a><span class="lineno"> 1816</span> </div>
+<div class="line"><a name="l01817"></a><span class="lineno"> 1817</span>   llvm::Type* InitType = Init->getType();</div>
+<div class="line"><a name="l01818"></a><span class="lineno"> 1818</span>   llvm::Constant *Entry = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ada9b3a5077437e849c3d758cca9567e3">GetAddrOfGlobalVar</a>(D, InitType);</div>
+<div class="line"><a name="l01819"></a><span class="lineno"> 1819</span> </div>
+<div class="line"><a name="l01820"></a><span class="lineno"> 1820</span>   <span class="comment">// Strip off a bitcast if we got one back.</span></div>
+<div class="line"><a name="l01821"></a><span class="lineno"> 1821</span>   <span class="keywordflow">if</span> (llvm::ConstantExpr *CE = dyn_cast<llvm::ConstantExpr>(Entry)) {</div>
+<div class="line"><a name="l01822"></a><span class="lineno"> 1822</span>     assert(CE->getOpcode() == llvm::Instruction::BitCast ||</div>
+<div class="line"><a name="l01823"></a><span class="lineno"> 1823</span>            CE->getOpcode() == llvm::Instruction::AddrSpaceCast ||</div>
+<div class="line"><a name="l01824"></a><span class="lineno"> 1824</span>            <span class="comment">// All zero index gep.</span></div>
+<div class="line"><a name="l01825"></a><span class="lineno"> 1825</span>            CE->getOpcode() == llvm::Instruction::GetElementPtr);</div>
+<div class="line"><a name="l01826"></a><span class="lineno"> 1826</span>     Entry = CE->getOperand(0);</div>
+<div class="line"><a name="l01827"></a><span class="lineno"> 1827</span>   }</div>
+<div class="line"><a name="l01828"></a><span class="lineno"> 1828</span> </div>
+<div class="line"><a name="l01829"></a><span class="lineno"> 1829</span>   <span class="comment">// Entry is now either a Function or GlobalVariable.</span></div>
+<div class="line"><a name="l01830"></a><span class="lineno"> 1830</span>   llvm::GlobalVariable *GV = dyn_cast<llvm::GlobalVariable>(Entry);</div>
+<div class="line"><a name="l01831"></a><span class="lineno"> 1831</span> </div>
+<div class="line"><a name="l01832"></a><span class="lineno"> 1832</span>   <span class="comment">// We have a definition after a declaration with the wrong type.</span></div>
+<div class="line"><a name="l01833"></a><span class="lineno"> 1833</span>   <span class="comment">// We must make a new GlobalVariable* and update everything that used OldGV</span></div>
+<div class="line"><a name="l01834"></a><span class="lineno"> 1834</span>   <span class="comment">// (a declaration or tentative definition) with the new GlobalVariable*</span></div>
+<div class="line"><a name="l01835"></a><span class="lineno"> 1835</span>   <span class="comment">// (which will be a definition).</span></div>
+<div class="line"><a name="l01836"></a><span class="lineno"> 1836</span>   <span class="comment">//</span></div>
+<div class="line"><a name="l01837"></a><span class="lineno"> 1837</span>   <span class="comment">// This happens if there is a prototype for a global (e.g.</span></div>
+<div class="line"><a name="l01838"></a><span class="lineno"> 1838</span>   <span class="comment">// "extern int x[];") and then a definition of a different type (e.g.</span></div>
+<div class="line"><a name="l01839"></a><span class="lineno"> 1839</span>   <span class="comment">// "int x[10];"). This also happens when an initializer has a different type</span></div>
+<div class="line"><a name="l01840"></a><span class="lineno"> 1840</span>   <span class="comment">// from the type of the global (this happens with unions).</span></div>
+<div class="line"><a name="l01841"></a><span class="lineno"> 1841</span>   <span class="keywordflow">if</span> (GV == 0 ||</div>
+<div class="line"><a name="l01842"></a><span class="lineno"> 1842</span>       GV->getType()->getElementType() != InitType ||</div>
+<div class="line"><a name="l01843"></a><span class="lineno"> 1843</span>       GV->getType()->getAddressSpace() !=</div>
+<div class="line"><a name="l01844"></a><span class="lineno"> 1844</span>        <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#afd8e9c6e79d4518858682e470e95e468">GetGlobalVarAddressSpace</a>(D, <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>().getTargetAddressSpace(ASTTy))) {</div>
+<div class="line"><a name="l01845"></a><span class="lineno"> 1845</span> </div>
+<div class="line"><a name="l01846"></a><span class="lineno"> 1846</span>     <span class="comment">// Move the old entry aside so that we'll create a new one.</span></div>
+<div class="line"><a name="l01847"></a><span class="lineno"> 1847</span>     Entry->setName(StringRef());</div>
+<div class="line"><a name="l01848"></a><span class="lineno"> 1848</span> </div>
+<div class="line"><a name="l01849"></a><span class="lineno"> 1849</span>     <span class="comment">// Make a new global with the correct type, this is now guaranteed to work.</span></div>
+<div class="line"><a name="l01850"></a><span class="lineno"> 1850</span>     GV = cast<llvm::GlobalVariable>(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ada9b3a5077437e849c3d758cca9567e3">GetAddrOfGlobalVar</a>(D, InitType));</div>
+<div class="line"><a name="l01851"></a><span class="lineno"> 1851</span> </div>
+<div class="line"><a name="l01852"></a><span class="lineno"> 1852</span>     <span class="comment">// Replace all uses of the old global with the new global</span></div>
+<div class="line"><a name="l01853"></a><span class="lineno"> 1853</span>     llvm::Constant *NewPtrForOldDecl =</div>
+<div class="line"><a name="l01854"></a><span class="lineno"> 1854</span>         llvm::ConstantExpr::getBitCast(GV, Entry->getType());</div>
+<div class="line"><a name="l01855"></a><span class="lineno"> 1855</span>     Entry->replaceAllUsesWith(NewPtrForOldDecl);</div>
+<div class="line"><a name="l01856"></a><span class="lineno"> 1856</span> </div>
+<div class="line"><a name="l01857"></a><span class="lineno"> 1857</span>     <span class="comment">// Erase the old global, since it is no longer used.</span></div>
+<div class="line"><a name="l01858"></a><span class="lineno"> 1858</span>     cast<llvm::GlobalValue>(Entry)->eraseFromParent();</div>
+<div class="line"><a name="l01859"></a><span class="lineno"> 1859</span>   }</div>
+<div class="line"><a name="l01860"></a><span class="lineno"> 1860</span> </div>
+<div class="line"><a name="l01861"></a><span class="lineno"> 1861</span>   <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a974ab43a2b0873b20b10079c5375aee3" title="If the declaration has internal linkage but is inside an extern "C" linkage specification, prepare to emit an alias for it to the expected name.">MaybeHandleStaticInExternC</a>(D, GV);</div>
+<div class="line"><a name="l01862"></a><span class="lineno"> 1862</span> </div>
+<div class="line"><a name="l01863"></a><span class="lineno"> 1863</span>   <span class="keywordflow">if</span> (D-><a class="code" href="classclang_1_1Decl.html#ac60cc8b34313e03a5c40277c5c5ad61b">hasAttr</a><<a class="code" href="classclang_1_1AnnotateAttr.html">AnnotateAttr</a>>())</div>
+<div class="line"><a name="l01864"></a><span class="lineno"> 1864</span>     <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#aa852a65b18d48138ff889bdb8ce281ad">AddGlobalAnnotations</a>(D, GV);</div>
+<div class="line"><a name="l01865"></a><span class="lineno"> 1865</span> </div>
+<div class="line"><a name="l01866"></a><span class="lineno"> 1866</span>   GV->setInitializer(Init);</div>
+<div class="line"><a name="l01867"></a><span class="lineno"> 1867</span> </div>
+<div class="line"><a name="l01868"></a><span class="lineno"> 1868</span>   <span class="comment">// If it is safe to mark the global 'constant', do so now.</span></div>
+<div class="line"><a name="l01869"></a><span class="lineno"> 1869</span>   GV->setConstant(!NeedsGlobalCtor && !NeedsGlobalDtor &&</div>
+<div class="line"><a name="l01870"></a><span class="lineno"> 1870</span>                   <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a5b6f8d1596aefe7cb9b5ee206494353a">isTypeConstant</a>(D-><a class="code" href="classclang_1_1ValueDecl.html#aefa6d3327144aee23d2935f41d993484">getType</a>(), <span class="keyword">true</span>));</div>
+<div class="line"><a name="l01871"></a><span class="lineno"> 1871</span> </div>
+<div class="line"><a name="l01872"></a><span class="lineno"> 1872</span>   GV->setAlignment(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>().getDeclAlign(D).getQuantity());</div>
+<div class="line"><a name="l01873"></a><span class="lineno"> 1873</span> </div>
+<div class="line"><a name="l01874"></a><span class="lineno"> 1874</span>   <span class="comment">// Set the llvm linkage type as appropriate.</span></div>
+<div class="line"><a name="l01875"></a><span class="lineno"> 1875</span>   llvm::GlobalValue::LinkageTypes <a class="code" href="namespaceclang.html#a78aadfeaf316ded55fdd2d1a9c8815b6" title="Describes the different kinds of linkage (C++ [basic.link], C99 6.2.2) that an entity may have...">Linkage</a> = </div>
+<div class="line"><a name="l01876"></a><span class="lineno"> 1876</span>     <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a8f3a3884745501dbd4c7cfaf440ddf86">GetLLVMLinkageVarDefinition</a>(D, GV->isConstant());</div>
+<div class="line"><a name="l01877"></a><span class="lineno"> 1877</span>   GV->setLinkage(Linkage);</div>
+<div class="line"><a name="l01878"></a><span class="lineno"> 1878</span> </div>
+<div class="line"><a name="l01879"></a><span class="lineno"> 1879</span>   <span class="comment">// If required by the ABI, give definitions of static data members with inline</span></div>
+<div class="line"><a name="l01880"></a><span class="lineno"> 1880</span>   <span class="comment">// initializers linkonce_odr linkage.</span></div>
+<div class="line"><a name="l01881"></a><span class="lineno"> 1881</span>   <span class="keywordflow">if</span> (<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#abcced6119cfc90ff6332ec96766ff70a">getCXXABI</a>().isInlineInitializedStaticDataMemberLinkOnce() &&</div>
+<div class="line"><a name="l01882"></a><span class="lineno"> 1882</span>       D-><a class="code" href="classclang_1_1VarDecl.html#a373bffe9299b1e17054f1bd6c46e00a5" title="Determines whether this is a static data member.">isStaticDataMember</a>() && InitExpr &&</div>
+<div class="line"><a name="l01883"></a><span class="lineno"> 1883</span>       !InitDecl-><a class="code" href="classclang_1_1VarDecl.html#a78a1c154d746b4dd700349fa705feaf6" title="Check whether this declaration is a definition. If this could be a tentative definition (in C)...">isThisDeclarationADefinition</a>())</div>
+<div class="line"><a name="l01884"></a><span class="lineno"> 1884</span>     GV->setLinkage(llvm::GlobalVariable::LinkOnceODRLinkage);</div>
+<div class="line"><a name="l01885"></a><span class="lineno"> 1885</span> </div>
+<div class="line"><a name="l01886"></a><span class="lineno"> 1886</span>   <span class="keywordflow">if</span> (Linkage == llvm::GlobalVariable::CommonLinkage)</div>
+<div class="line"><a name="l01887"></a><span class="lineno"> 1887</span>     <span class="comment">// common vars aren't constant even if declared const.</span></div>
+<div class="line"><a name="l01888"></a><span class="lineno"> 1888</span>     GV->setConstant(<span class="keyword">false</span>);</div>
+<div class="line"><a name="l01889"></a><span class="lineno"> 1889</span> </div>
+<div class="line"><a name="l01890"></a><span class="lineno"> 1890</span>   SetCommonAttributes(D, GV);</div>
+<div class="line"><a name="l01891"></a><span class="lineno"> 1891</span> </div>
+<div class="line"><a name="l01892"></a><span class="lineno"> 1892</span>   <span class="comment">// Emit the initializer function if necessary.</span></div>
+<div class="line"><a name="l01893"></a><span class="lineno"> 1893</span>   <span class="keywordflow">if</span> (NeedsGlobalCtor || NeedsGlobalDtor)</div>
+<div class="line"><a name="l01894"></a><span class="lineno"> 1894</span>     EmitCXXGlobalVarDeclInitFunc(D, GV, NeedsGlobalCtor);</div>
+<div class="line"><a name="l01895"></a><span class="lineno"> 1895</span> </div>
+<div class="line"><a name="l01896"></a><span class="lineno"> 1896</span>   <span class="comment">// If we are compiling with ASan, add metadata indicating dynamically</span></div>
+<div class="line"><a name="l01897"></a><span class="lineno"> 1897</span>   <span class="comment">// initialized globals.</span></div>
+<div class="line"><a name="l01898"></a><span class="lineno"> 1898</span>   <span class="keywordflow">if</span> (SanOpts.Address && NeedsGlobalCtor) {</div>
+<div class="line"><a name="l01899"></a><span class="lineno"> 1899</span>     llvm::Module &M = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a908409c9231b015784ca008fd6bcb961">getModule</a>();</div>
+<div class="line"><a name="l01900"></a><span class="lineno"> 1900</span> </div>
+<div class="line"><a name="l01901"></a><span class="lineno"> 1901</span>     llvm::NamedMDNode *DynamicInitializers =</div>
+<div class="line"><a name="l01902"></a><span class="lineno"> 1902</span>         M.getOrInsertNamedMetadata(<span class="stringliteral">"llvm.asan.dynamically_initialized_globals"</span>);</div>
+<div class="line"><a name="l01903"></a><span class="lineno"> 1903</span>     <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *GlobalToAdd[] = { GV };</div>
+<div class="line"><a name="l01904"></a><span class="lineno"> 1904</span>     llvm::MDNode *ThisGlobal = llvm::MDNode::get(VMContext, GlobalToAdd);</div>
+<div class="line"><a name="l01905"></a><span class="lineno"> 1905</span>     DynamicInitializers->addOperand(ThisGlobal);</div>
+<div class="line"><a name="l01906"></a><span class="lineno"> 1906</span>   }</div>
+<div class="line"><a name="l01907"></a><span class="lineno"> 1907</span> </div>
+<div class="line"><a name="l01908"></a><span class="lineno"> 1908</span>   <span class="comment">// Emit global variable debug information.</span></div>
+<div class="line"><a name="l01909"></a><span class="lineno"> 1909</span>   <span class="keywordflow">if</span> (<a class="code" href="classclang_1_1CodeGen_1_1CGDebugInfo.html">CGDebugInfo</a> *DI = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a919ba4c672da9093f64b9bef0484302f">getModuleDebugInfo</a>())</div>
+<div class="line"><a name="l01910"></a><span class="lineno"> 1910</span>     <span class="keywordflow">if</span> (<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a054eb00391038519d37236032f1ebfe5">getCodeGenOpts</a>().getDebugInfo() >= <a class="code" href="classclang_1_1CodeGenOptions.html#ab49a2a2a0a68577a07a9c0b730fb3cf6ae0f1c5168d0708ca9bd151ea9d89a3d8">CodeGenOptions::LimitedDebugInfo</a>)</div>
+<div class="line"><a name="l01911"></a><span class="lineno"> 1911</span>       DI->EmitGlobalVariable(GV, D);</div>
+<div class="line"><a name="l01912"></a><span class="lineno"> 1912</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> llvm::GlobalValue::LinkageTypes</div>
+<div class="line"><a name="l01915"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a8f3a3884745501dbd4c7cfaf440ddf86"> 1915</a></span> <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a8f3a3884745501dbd4c7cfaf440ddf86">CodeGenModule::GetLLVMLinkageVarDefinition</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1VarDecl.html">VarDecl</a> *D, <span class="keywordtype">bool</span> isConstant) {</div>
+<div class="line"><a name="l01916"></a><span class="lineno"> 1916</span>   <a class="code" href="namespaceclang.html#a1a5806cb5e0c7456e1b8bc7e3878c5a6" title="A more specific kind of linkage than enum Linkage.">GVALinkage</a> Linkage = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>().<a class="code" href="classclang_1_1ASTContext.html#a2f9afae1f2c3921f826789b067f4712d">GetGVALinkageForVariable</a>(D);</div>
+<div class="line"><a name="l01917"></a><span class="lineno"> 1917</span>   <span class="keywordflow">if</span> (Linkage == <a class="code" href="namespaceclang.html#a1a5806cb5e0c7456e1b8bc7e3878c5a6a873139a4373f32de3b9790eb6a422c61">GVA_Internal</a>)</div>
+<div class="line"><a name="l01918"></a><span class="lineno"> 1918</span>     <span class="keywordflow">return</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::Function::InternalLinkage</a>;</div>
+<div class="line"><a name="l01919"></a><span class="lineno"> 1919</span>   <span class="keywordflow">else</span> <span class="keywordflow">if</span> (D-><a class="code" href="classclang_1_1Decl.html#ac60cc8b34313e03a5c40277c5c5ad61b">hasAttr</a><<a class="code" href="classclang_1_1DLLImportAttr.html">DLLImportAttr</a>>())</div>
+<div class="line"><a name="l01920"></a><span class="lineno"> 1920</span>     <span class="keywordflow">return</span> llvm::Function::DLLImportLinkage;</div>
+<div class="line"><a name="l01921"></a><span class="lineno"> 1921</span>   <span class="keywordflow">else</span> <span class="keywordflow">if</span> (D-><a class="code" href="classclang_1_1Decl.html#ac60cc8b34313e03a5c40277c5c5ad61b">hasAttr</a><<a class="code" href="classclang_1_1DLLExportAttr.html">DLLExportAttr</a>>())</div>
+<div class="line"><a name="l01922"></a><span class="lineno"> 1922</span>     <span class="keywordflow">return</span> llvm::Function::DLLExportLinkage;</div>
+<div class="line"><a name="l01923"></a><span class="lineno"> 1923</span>   <span class="keywordflow">else</span> <span class="keywordflow">if</span> (D-><a class="code" href="classclang_1_1Decl.html#ac60cc8b34313e03a5c40277c5c5ad61b">hasAttr</a><<a class="code" href="classclang_1_1SelectAnyAttr.html">SelectAnyAttr</a>>()) {</div>
+<div class="line"><a name="l01924"></a><span class="lineno"> 1924</span>     <span class="comment">// selectany symbols are externally visible, so use weak instead of</span></div>
+<div class="line"><a name="l01925"></a><span class="lineno"> 1925</span>     <span class="comment">// linkonce.  MSVC optimizes away references to const selectany globals, so</span></div>
+<div class="line"><a name="l01926"></a><span class="lineno"> 1926</span>     <span class="comment">// all definitions should be the same and ODR linkage should be used.</span></div>
+<div class="line"><a name="l01927"></a><span class="lineno"> 1927</span>     <span class="comment">// http://msdn.microsoft.com/en-us/library/5tkz6s71.aspx</span></div>
+<div class="line"><a name="l01928"></a><span class="lineno"> 1928</span>     <span class="keywordflow">return</span> llvm::GlobalVariable::WeakODRLinkage;</div>
+<div class="line"><a name="l01929"></a><span class="lineno"> 1929</span>   } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (D-><a class="code" href="classclang_1_1Decl.html#ac60cc8b34313e03a5c40277c5c5ad61b">hasAttr</a><<a class="code" href="classclang_1_1WeakAttr.html">WeakAttr</a>>()) {</div>
+<div class="line"><a name="l01930"></a><span class="lineno"> 1930</span>     <span class="keywordflow">if</span> (isConstant)</div>
+<div class="line"><a name="l01931"></a><span class="lineno"> 1931</span>       <span class="keywordflow">return</span> llvm::GlobalVariable::WeakODRLinkage;</div>
+<div class="line"><a name="l01932"></a><span class="lineno"> 1932</span>     <span class="keywordflow">else</span></div>
+<div class="line"><a name="l01933"></a><span class="lineno"> 1933</span>       <span class="keywordflow">return</span> llvm::GlobalVariable::WeakAnyLinkage;</div>
+<div class="line"><a name="l01934"></a><span class="lineno"> 1934</span>   } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (Linkage == <a class="code" href="namespaceclang.html#a1a5806cb5e0c7456e1b8bc7e3878c5a6ad42aadece0c8ea62049417f0aca215d7">GVA_TemplateInstantiation</a> ||</div>
+<div class="line"><a name="l01935"></a><span class="lineno"> 1935</span>              Linkage == <a class="code" href="namespaceclang.html#a1a5806cb5e0c7456e1b8bc7e3878c5a6a11185aa338b64e79d8366a5e1948e7f1">GVA_ExplicitTemplateInstantiation</a>)</div>
+<div class="line"><a name="l01936"></a><span class="lineno"> 1936</span>     <span class="keywordflow">return</span> llvm::GlobalVariable::WeakODRLinkage;</div>
+<div class="line"><a name="l01937"></a><span class="lineno"> 1937</span>   <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#abae1594027ce284ce5b7f06c66d24ea7">getLangOpts</a>().<a class="code" href="namespaceclang_1_1frontend.html#a09dfa01c4e997a3794d80922c5e853bbaf89a7ac6211aecefb5f7ecc17d3ebed4">CPlusPlus</a> && </div>
+<div class="line"><a name="l01938"></a><span class="lineno"> 1938</span>            ((!CodeGenOpts.NoCommon && !D-><a class="code" href="classclang_1_1Decl.html#a6a041df02fad17a6fabe51af5de0ea3c">getAttr</a><<a class="code" href="classclang_1_1NoCommonAttr.html">NoCommonAttr</a>>()) ||</div>
+<div class="line"><a name="l01939"></a><span class="lineno"> 1939</span>              D-><a class="code" href="classclang_1_1Decl.html#a6a041df02fad17a6fabe51af5de0ea3c">getAttr</a><<a class="code" href="classclang_1_1CommonAttr.html">CommonAttr</a>>()) &&</div>
+<div class="line"><a name="l01940"></a><span class="lineno"> 1940</span>            !D-><a class="code" href="classclang_1_1VarDecl.html#af5dd1edb6eb7f647ad42d953fe38ed54" title="Returns true if a variable has extern or private_extern storage.">hasExternalStorage</a>() && !D-><a class="code" href="classclang_1_1VarDecl.html#af6438debfc45cb2ad2d5cb5ce2711e0c">getInit</a>() &&</div>
+<div class="line"><a name="l01941"></a><span class="lineno"> 1941</span>            !D-><a class="code" href="classclang_1_1Decl.html#a6a041df02fad17a6fabe51af5de0ea3c">getAttr</a><<a class="code" href="classclang_1_1SectionAttr.html">SectionAttr</a>>() && !D-><a class="code" href="classclang_1_1VarDecl.html#ae704b725af5821356581f7857a2a2761">getTLSKind</a>() &&</div>
+<div class="line"><a name="l01942"></a><span class="lineno"> 1942</span>            !D-><a class="code" href="classclang_1_1Decl.html#a6a041df02fad17a6fabe51af5de0ea3c">getAttr</a><<a class="code" href="classclang_1_1WeakImportAttr.html">WeakImportAttr</a>>()) {</div>
+<div class="line"><a name="l01943"></a><span class="lineno"> 1943</span>     <span class="comment">// Thread local vars aren't considered common linkage.</span></div>
+<div class="line"><a name="l01944"></a><span class="lineno"> 1944</span>     <span class="keywordflow">return</span> llvm::GlobalVariable::CommonLinkage;</div>
+<div class="line"><a name="l01945"></a><span class="lineno"> 1945</span>   } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (D-><a class="code" href="classclang_1_1VarDecl.html#ae704b725af5821356581f7857a2a2761">getTLSKind</a>() == <a class="code" href="classclang_1_1VarDecl.html#abd5cfc880214a4e8b29d1875602ae3c6a852335662d043a4ad078dc4da11d9ed4" title="TLS with a dynamic initializer.">VarDecl::TLS_Dynamic</a> &&</div>
+<div class="line"><a name="l01946"></a><span class="lineno"> 1946</span>              <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a0256b70c5f3ad3812e767f745196fa3f">getTarget</a>().<a class="code" href="classclang_1_1TargetInfo.html#a20f1dc9686f1a537a03975c7603774e7" title="Returns the target triple of the primary target.">getTriple</a>().isMacOSX())</div>
+<div class="line"><a name="l01947"></a><span class="lineno"> 1947</span>     <span class="comment">// On Darwin, the backing variable for a C++11 thread_local variable always</span></div>
+<div class="line"><a name="l01948"></a><span class="lineno"> 1948</span>     <span class="comment">// has internal linkage; all accesses should just be calls to the</span></div>
+<div class="line"><a name="l01949"></a><span class="lineno"> 1949</span>     <span class="comment">// Itanium-specified entry point, which has the normal linkage of the</span></div>
+<div class="line"><a name="l01950"></a><span class="lineno"> 1950</span>     <span class="comment">// variable.</span></div>
+<div class="line"><a name="l01951"></a><span class="lineno"> 1951</span>     <span class="keywordflow">return</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="l01952"></a><span class="lineno"> 1952</span>   <span class="keywordflow">return</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::GlobalVariable::ExternalLinkage</a>;</div>
+<div class="line"><a name="l01953"></a><span class="lineno"> 1953</span> }</div>
+<div class="line"><a name="l01954"></a><span class="lineno"> 1954</span> <span class="comment"></span></div>
+<div class="line"><a name="l01955"></a><span class="lineno"> 1955</span> <span class="comment">/// Replace the uses of a function that was declared with a non-proto type.</span></div>
+<div class="line"><a name="l01956"></a><span class="lineno"> 1956</span> <span class="comment">/// We want to silently drop extra arguments from call sites</span></div>
+<div class="line"><a name="l01957"></a><span class="lineno"><a class="code" href="CodeGenModule_8cpp.html#a61a3adc3e2b5eb9b0e4e6b67c9a6f0de"> 1957</a></span> <span class="comment"></span><span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="CodeGenModule_8cpp.html#a61a3adc3e2b5eb9b0e4e6b67c9a6f0de">replaceUsesOfNonProtoConstant</a>(llvm::Constant *old,</div>
+<div class="line"><a name="l01958"></a><span class="lineno"> 1958</span>                                           llvm::Function *newFn) {</div>
+<div class="line"><a name="l01959"></a><span class="lineno"> 1959</span>   <span class="comment">// Fast path.</span></div>
+<div class="line"><a name="l01960"></a><span class="lineno"> 1960</span>   <span class="keywordflow">if</span> (old->use_empty()) <span class="keywordflow">return</span>;</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>   llvm::Type *newRetTy = newFn->getReturnType();</div>
+<div class="line"><a name="l01963"></a><span class="lineno"> 1963</span>   <a class="code" href="classllvm_1_1SmallVector.html">SmallVector<llvm::Value*, 4></a> newArgs;</div>
+<div class="line"><a name="l01964"></a><span class="lineno"> 1964</span> </div>
+<div class="line"><a name="l01965"></a><span class="lineno"> 1965</span>   <span class="keywordflow">for</span> (llvm::Value::use_iterator ui = old->use_begin(), ue = old->use_end();</div>
+<div class="line"><a name="l01966"></a><span class="lineno"> 1966</span>          ui != ue; ) {</div>
+<div class="line"><a name="l01967"></a><span class="lineno"> 1967</span>     llvm::Value::use_iterator use = ui++; <span class="comment">// Increment before the use is erased.</span></div>
+<div class="line"><a name="l01968"></a><span class="lineno"> 1968</span>     llvm::User *user = *use;</div>
+<div class="line"><a name="l01969"></a><span class="lineno"> 1969</span> </div>
+<div class="line"><a name="l01970"></a><span class="lineno"> 1970</span>     <span class="comment">// Recognize and replace uses of bitcasts.  Most calls to</span></div>
+<div class="line"><a name="l01971"></a><span class="lineno"> 1971</span>     <span class="comment">// unprototyped functions will use bitcasts.</span></div>
+<div class="line"><a name="l01972"></a><span class="lineno"> 1972</span>     <span class="keywordflow">if</span> (llvm::ConstantExpr *bitcast = dyn_cast<llvm::ConstantExpr>(user)) {</div>
+<div class="line"><a name="l01973"></a><span class="lineno"> 1973</span>       <span class="keywordflow">if</span> (bitcast->getOpcode() == llvm::Instruction::BitCast)</div>
+<div class="line"><a name="l01974"></a><span class="lineno"> 1974</span>         <a class="code" href="CodeGenModule_8cpp.html#a61a3adc3e2b5eb9b0e4e6b67c9a6f0de">replaceUsesOfNonProtoConstant</a>(bitcast, newFn);</div>
+<div class="line"><a name="l01975"></a><span class="lineno"> 1975</span>       <span class="keywordflow">continue</span>;</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> </div>
+<div class="line"><a name="l01978"></a><span class="lineno"> 1978</span>     <span class="comment">// Recognize calls to the function.</span></div>
+<div class="line"><a name="l01979"></a><span class="lineno"> 1979</span>     llvm::CallSite callSite(user);</div>
+<div class="line"><a name="l01980"></a><span class="lineno"> 1980</span>     <span class="keywordflow">if</span> (!callSite) <span class="keywordflow">continue</span>;</div>
+<div class="line"><a name="l01981"></a><span class="lineno"> 1981</span>     <span class="keywordflow">if</span> (!callSite.isCallee(use)) <span class="keywordflow">continue</span>;</div>
+<div class="line"><a name="l01982"></a><span class="lineno"> 1982</span> </div>
+<div class="line"><a name="l01983"></a><span class="lineno"> 1983</span>     <span class="comment">// If the return types don't match exactly, then we can't</span></div>
+<div class="line"><a name="l01984"></a><span class="lineno"> 1984</span>     <span class="comment">// transform this call unless it's dead.</span></div>
+<div class="line"><a name="l01985"></a><span class="lineno"> 1985</span>     <span class="keywordflow">if</span> (callSite->getType() != newRetTy && !callSite->use_empty())</div>
+<div class="line"><a name="l01986"></a><span class="lineno"> 1986</span>       <span class="keywordflow">continue</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>     <span class="comment">// Get the call site's attribute list.</span></div>
+<div class="line"><a name="l01989"></a><span class="lineno"> 1989</span>     <a class="code" href="classllvm_1_1SmallVector.html">SmallVector<llvm::AttributeSet, 8></a> newAttrs;</div>
+<div class="line"><a name="l01990"></a><span class="lineno"> 1990</span>     llvm::AttributeSet oldAttrs = callSite.getAttributes();</div>
+<div class="line"><a name="l01991"></a><span class="lineno"> 1991</span> </div>
+<div class="line"><a name="l01992"></a><span class="lineno"> 1992</span>     <span class="comment">// Collect any return attributes from the call.</span></div>
+<div class="line"><a name="l01993"></a><span class="lineno"> 1993</span>     <span class="keywordflow">if</span> (oldAttrs.hasAttributes(llvm::AttributeSet::ReturnIndex))</div>
+<div class="line"><a name="l01994"></a><span class="lineno"> 1994</span>       newAttrs.push_back(</div>
+<div class="line"><a name="l01995"></a><span class="lineno"> 1995</span>         llvm::AttributeSet::get(newFn->getContext(),</div>
+<div class="line"><a name="l01996"></a><span class="lineno"> 1996</span>                                 oldAttrs.getRetAttributes()));</div>
+<div class="line"><a name="l01997"></a><span class="lineno"> 1997</span> </div>
+<div class="line"><a name="l01998"></a><span class="lineno"> 1998</span>     <span class="comment">// If the function was passed too few arguments, don't transform.</span></div>
+<div class="line"><a name="l01999"></a><span class="lineno"> 1999</span>     <span class="keywordtype">unsigned</span> newNumArgs = newFn->arg_size();</div>
+<div class="line"><a name="l02000"></a><span class="lineno"> 2000</span>     <span class="keywordflow">if</span> (callSite.arg_size() < newNumArgs) <span class="keywordflow">continue</span>;</div>
+<div class="line"><a name="l02001"></a><span class="lineno"> 2001</span> </div>
+<div class="line"><a name="l02002"></a><span class="lineno"> 2002</span>     <span class="comment">// If extra arguments were passed, we silently drop them.</span></div>
+<div class="line"><a name="l02003"></a><span class="lineno"> 2003</span>     <span class="comment">// If any of the types mismatch, we don't transform.</span></div>
+<div class="line"><a name="l02004"></a><span class="lineno"> 2004</span>     <span class="keywordtype">unsigned</span> argNo = 0;</div>
+<div class="line"><a name="l02005"></a><span class="lineno"> 2005</span>     <span class="keywordtype">bool</span> dontTransform = <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02006"></a><span class="lineno"> 2006</span>     <span class="keywordflow">for</span> (llvm::Function::arg_iterator ai = newFn->arg_begin(),</div>
+<div class="line"><a name="l02007"></a><span class="lineno"> 2007</span>            ae = newFn->arg_end(); ai != ae; ++ai, ++argNo) {</div>
+<div class="line"><a name="l02008"></a><span class="lineno"> 2008</span>       <span class="keywordflow">if</span> (callSite.getArgument(argNo)->getType() != ai->getType()) {</div>
+<div class="line"><a name="l02009"></a><span class="lineno"> 2009</span>         dontTransform = <span class="keyword">true</span>;</div>
+<div class="line"><a name="l02010"></a><span class="lineno"> 2010</span>         <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l02011"></a><span class="lineno"> 2011</span>       }</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>       <span class="comment">// Add any parameter attributes.</span></div>
+<div class="line"><a name="l02014"></a><span class="lineno"> 2014</span>       <span class="keywordflow">if</span> (oldAttrs.hasAttributes(argNo + 1))</div>
+<div class="line"><a name="l02015"></a><span class="lineno"> 2015</span>         newAttrs.</div>
+<div class="line"><a name="l02016"></a><span class="lineno"> 2016</span>           push_back(llvm::</div>
+<div class="line"><a name="l02017"></a><span class="lineno"> 2017</span>                     AttributeSet::get(newFn->getContext(),</div>
+<div class="line"><a name="l02018"></a><span class="lineno"> 2018</span>                                       oldAttrs.getParamAttributes(argNo + 1)));</div>
+<div class="line"><a name="l02019"></a><span class="lineno"> 2019</span>     }</div>
+<div class="line"><a name="l02020"></a><span class="lineno"> 2020</span>     <span class="keywordflow">if</span> (dontTransform)</div>
+<div class="line"><a name="l02021"></a><span class="lineno"> 2021</span>       <span class="keywordflow">continue</span>;</div>
+<div class="line"><a name="l02022"></a><span class="lineno"> 2022</span> </div>
+<div class="line"><a name="l02023"></a><span class="lineno"> 2023</span>     <span class="keywordflow">if</span> (oldAttrs.hasAttributes(llvm::AttributeSet::FunctionIndex))</div>
+<div class="line"><a name="l02024"></a><span class="lineno"> 2024</span>       newAttrs.push_back(llvm::AttributeSet::get(newFn->getContext(),</div>
+<div class="line"><a name="l02025"></a><span class="lineno"> 2025</span>                                                  oldAttrs.getFnAttributes()));</div>
+<div class="line"><a name="l02026"></a><span class="lineno"> 2026</span> </div>
+<div class="line"><a name="l02027"></a><span class="lineno"> 2027</span>     <span class="comment">// Okay, we can transform this.  Create the new call instruction and copy</span></div>
+<div class="line"><a name="l02028"></a><span class="lineno"> 2028</span>     <span class="comment">// over the required information.</span></div>
+<div class="line"><a name="l02029"></a><span class="lineno"> 2029</span>     newArgs.append(callSite.arg_begin(), callSite.arg_begin() + argNo);</div>
+<div class="line"><a name="l02030"></a><span class="lineno"> 2030</span> </div>
+<div class="line"><a name="l02031"></a><span class="lineno"> 2031</span>     llvm::CallSite newCall;</div>
+<div class="line"><a name="l02032"></a><span class="lineno"> 2032</span>     <span class="keywordflow">if</span> (callSite.isCall()) {</div>
+<div class="line"><a name="l02033"></a><span class="lineno"> 2033</span>       newCall = llvm::CallInst::Create(newFn, newArgs, <span class="stringliteral">""</span>,</div>
+<div class="line"><a name="l02034"></a><span class="lineno"> 2034</span>                                        callSite.getInstruction());</div>
+<div class="line"><a name="l02035"></a><span class="lineno"> 2035</span>     } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l02036"></a><span class="lineno"> 2036</span>       llvm::InvokeInst *oldInvoke =</div>
+<div class="line"><a name="l02037"></a><span class="lineno"> 2037</span>         cast<llvm::InvokeInst>(callSite.getInstruction());</div>
+<div class="line"><a name="l02038"></a><span class="lineno"> 2038</span>       newCall = llvm::InvokeInst::Create(newFn,</div>
+<div class="line"><a name="l02039"></a><span class="lineno"> 2039</span>                                          oldInvoke->getNormalDest(),</div>
+<div class="line"><a name="l02040"></a><span class="lineno"> 2040</span>                                          oldInvoke->getUnwindDest(),</div>
+<div class="line"><a name="l02041"></a><span class="lineno"> 2041</span>                                          newArgs, <span class="stringliteral">""</span>,</div>
+<div class="line"><a name="l02042"></a><span class="lineno"> 2042</span>                                          callSite.getInstruction());</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>     newArgs.clear(); <span class="comment">// for the next iteration</span></div>
+<div class="line"><a name="l02045"></a><span class="lineno"> 2045</span> </div>
+<div class="line"><a name="l02046"></a><span class="lineno"> 2046</span>     <span class="keywordflow">if</span> (!newCall->getType()->isVoidTy())</div>
+<div class="line"><a name="l02047"></a><span class="lineno"> 2047</span>       newCall->takeName(callSite.getInstruction());</div>
+<div class="line"><a name="l02048"></a><span class="lineno"> 2048</span>     newCall.setAttributes(</div>
+<div class="line"><a name="l02049"></a><span class="lineno"> 2049</span>                      llvm::AttributeSet::get(newFn->getContext(), newAttrs));</div>
+<div class="line"><a name="l02050"></a><span class="lineno"> 2050</span>     newCall.setCallingConv(callSite.getCallingConv());</div>
+<div class="line"><a name="l02051"></a><span class="lineno"> 2051</span> </div>
+<div class="line"><a name="l02052"></a><span class="lineno"> 2052</span>     <span class="comment">// Finally, remove the old call, replacing any uses with the new one.</span></div>
+<div class="line"><a name="l02053"></a><span class="lineno"> 2053</span>     <span class="keywordflow">if</span> (!callSite->use_empty())</div>
+<div class="line"><a name="l02054"></a><span class="lineno"> 2054</span>       callSite->replaceAllUsesWith(newCall.getInstruction());</div>
+<div class="line"><a name="l02055"></a><span class="lineno"> 2055</span> </div>
+<div class="line"><a name="l02056"></a><span class="lineno"> 2056</span>     <span class="comment">// Copy debug location attached to CI.</span></div>
+<div class="line"><a name="l02057"></a><span class="lineno"> 2057</span>     <span class="keywordflow">if</span> (!callSite->getDebugLoc().isUnknown())</div>
+<div class="line"><a name="l02058"></a><span class="lineno"> 2058</span>       newCall->setDebugLoc(callSite->getDebugLoc());</div>
+<div class="line"><a name="l02059"></a><span class="lineno"> 2059</span>     callSite->eraseFromParent();</div>
+<div class="line"><a name="l02060"></a><span class="lineno"> 2060</span>   }</div>
+<div class="line"><a name="l02061"></a><span class="lineno"> 2061</span> }</div>
+<div class="line"><a name="l02062"></a><span class="lineno"> 2062</span> <span class="comment"></span></div>
+<div class="line"><a name="l02063"></a><span class="lineno"> 2063</span> <span class="comment">/// ReplaceUsesOfNonProtoTypeWithRealFunction - This function is called when we</span></div>
+<div class="line"><a name="l02064"></a><span class="lineno"> 2064</span> <span class="comment">/// implement a function with no prototype, e.g. "int foo() {}".  If there are</span></div>
+<div class="line"><a name="l02065"></a><span class="lineno"> 2065</span> <span class="comment">/// existing call uses of the old function in the module, this adjusts them to</span></div>
+<div class="line"><a name="l02066"></a><span class="lineno"> 2066</span> <span class="comment">/// call the new function directly.</span></div>
+<div class="line"><a name="l02067"></a><span class="lineno"> 2067</span> <span class="comment">///</span></div>
+<div class="line"><a name="l02068"></a><span class="lineno"> 2068</span> <span class="comment">/// This is not just a cleanup: the always_inline pass requires direct calls to</span></div>
+<div class="line"><a name="l02069"></a><span class="lineno"> 2069</span> <span class="comment">/// functions to be able to inline them.  If there is a bitcast in the way, it</span></div>
+<div class="line"><a name="l02070"></a><span class="lineno"> 2070</span> <span class="comment">/// won't inline them.  Instcombine normally deletes these calls, but it isn't</span></div>
+<div class="line"><a name="l02071"></a><span class="lineno"> 2071</span> <span class="comment">/// run at -O0.</span></div>
+<div class="line"><a name="l02072"></a><span class="lineno"><a class="code" href="CodeGenModule_8cpp.html#ae3568e14ee20dd7717afac0f83581973"> 2072</a></span> <span class="comment"></span><span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="CodeGenModule_8cpp.html#ae3568e14ee20dd7717afac0f83581973">ReplaceUsesOfNonProtoTypeWithRealFunction</a>(llvm::GlobalValue *Old,</div>
+<div class="line"><a name="l02073"></a><span class="lineno"> 2073</span>                                                       llvm::Function *NewFn) {</div>
+<div class="line"><a name="l02074"></a><span class="lineno"> 2074</span>   <span class="comment">// If we're redefining a global as a function, don't transform it.</span></div>
+<div class="line"><a name="l02075"></a><span class="lineno"> 2075</span>   <span class="keywordflow">if</span> (!isa<llvm::Function>(Old)) <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l02076"></a><span class="lineno"> 2076</span> </div>
+<div class="line"><a name="l02077"></a><span class="lineno"> 2077</span>   <a class="code" href="CodeGenModule_8cpp.html#a61a3adc3e2b5eb9b0e4e6b67c9a6f0de">replaceUsesOfNonProtoConstant</a>(Old, NewFn);</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> </div>
+<div class="line"><a name="l02080"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#abc4eda0dfe61c7fe5d86cc908f362308"> 2080</a></span> <span class="keywordtype">void</span> <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#abc4eda0dfe61c7fe5d86cc908f362308" title="HandleCXXStaticMemberVarInstantiation - Tell the consumer that this.">CodeGenModule::HandleCXXStaticMemberVarInstantiation</a>(<a class="code" href="classclang_1_1VarDecl.html">VarDecl</a> *VD) {</div>
+<div class="line"><a name="l02081"></a><span class="lineno"> 2081</span>   <a class="code" href="namespaceclang.html#ae689bf8e3dcc54751a81974a4a12c3d2" title="Describes the kind of template specialization that a particular template specialization declaration r...">TemplateSpecializationKind</a> TSK = VD-><a class="code" href="classclang_1_1VarDecl.html#ac3c0230bd05b03d58d4355cca9551a09" title="If this variable is an instantiation of a variable template or a static data member of a class templa...">getTemplateSpecializationKind</a>();</div>
+<div class="line"><a name="l02082"></a><span class="lineno"> 2082</span>   <span class="comment">// If we have a definition, this might be a deferred decl. If the</span></div>
+<div class="line"><a name="l02083"></a><span class="lineno"> 2083</span>   <span class="comment">// instantiation is explicit, make sure we emit it at the end.</span></div>
+<div class="line"><a name="l02084"></a><span class="lineno"> 2084</span>   <span class="keywordflow">if</span> (VD-><a class="code" href="classclang_1_1VarDecl.html#a6ce5eabab501c68c3150b65372e5062f" title="Get the real (not just tentative) definition for this declaration.">getDefinition</a>() && TSK == <a class="code" href="namespaceclang.html#ae689bf8e3dcc54751a81974a4a12c3d2a4e1ba3c64fa82dff03cc7e5c6371e098">TSK_ExplicitInstantiationDefinition</a>)</div>
+<div class="line"><a name="l02085"></a><span class="lineno"> 2085</span>     <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ada9b3a5077437e849c3d758cca9567e3">GetAddrOfGlobalVar</a>(VD);</div>
+<div class="line"><a name="l02086"></a><span class="lineno"> 2086</span> </div>
+<div class="line"><a name="l02087"></a><span class="lineno"> 2087</span>   <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#af65667662896cf69535a77fd2a389401" title="EmitTopLevelDecl - Emit code for a single top level declaration.">EmitTopLevelDecl</a>(VD);</div>
+<div class="line"><a name="l02088"></a><span class="lineno"> 2088</span> }</div>
+<div class="line"><a name="l02089"></a><span class="lineno"> 2089</span> </div>
+<div class="line"><a name="l02090"></a><span class="lineno"> 2090</span> <span class="keywordtype">void</span> CodeGenModule::EmitGlobalFunctionDefinition(<a class="code" href="classclang_1_1GlobalDecl.html">GlobalDecl</a> GD) {</div>
+<div class="line"><a name="l02091"></a><span class="lineno"> 2091</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1FunctionDecl.html">FunctionDecl</a> *D = cast<FunctionDecl>(GD.<a class="code" href="classclang_1_1GlobalDecl.html#a3971ce53aef50b4c3d829615a5ecd0a0">getDecl</a>());</div>
+<div class="line"><a name="l02092"></a><span class="lineno"> 2092</span> </div>
+<div class="line"><a name="l02093"></a><span class="lineno"> 2093</span>   <span class="comment">// Compute the function info and LLVM type.</span></div>
+<div class="line"><a name="l02094"></a><span class="lineno"> 2094</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1CodeGen_1_1CGFunctionInfo.html">CGFunctionInfo</a> &FI = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a1325760f10142c1da8521b53734858ef">getTypes</a>().<a class="code" href="classclang_1_1CodeGen_1_1CodeGenTypes.html#ab8d78176cc0855b9620a98f32b0379c5">arrangeGlobalDeclaration</a>(GD);</div>
+<div class="line"><a name="l02095"></a><span class="lineno"> 2095</span>   llvm::FunctionType *Ty = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a1325760f10142c1da8521b53734858ef">getTypes</a>().<a class="code" href="classclang_1_1CodeGen_1_1CodeGenTypes.html#a5e6c7473f14643c5a5b45ac9c0bb2ef8" title="GetFunctionType - Get the LLVM function type for.">GetFunctionType</a>(FI);</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>   <span class="comment">// Get or create the prototype for the function.</span></div>
+<div class="line"><a name="l02098"></a><span class="lineno"> 2098</span>   llvm::Constant *Entry = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ac7a1043756ac6082fa8e9540afa830a9">GetAddrOfFunction</a>(GD, Ty);</div>
+<div class="line"><a name="l02099"></a><span class="lineno"> 2099</span> </div>
+<div class="line"><a name="l02100"></a><span class="lineno"> 2100</span>   <span class="comment">// Strip off a bitcast if we got one back.</span></div>
+<div class="line"><a name="l02101"></a><span class="lineno"> 2101</span>   <span class="keywordflow">if</span> (llvm::ConstantExpr *CE = dyn_cast<llvm::ConstantExpr>(Entry)) {</div>
+<div class="line"><a name="l02102"></a><span class="lineno"> 2102</span>     assert(CE->getOpcode() == llvm::Instruction::BitCast);</div>
+<div class="line"><a name="l02103"></a><span class="lineno"> 2103</span>     Entry = CE->getOperand(0);</div>
+<div class="line"><a name="l02104"></a><span class="lineno"> 2104</span>   }</div>
+<div class="line"><a name="l02105"></a><span class="lineno"> 2105</span> </div>
+<div class="line"><a name="l02106"></a><span class="lineno"> 2106</span>   <span class="keywordflow">if</span> (!cast<llvm::GlobalValue>(Entry)->isDeclaration()) {</div>
+<div class="line"><a name="l02107"></a><span class="lineno"> 2107</span>     <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a0be90fe263387e16942ad91f70b6af26">getDiags</a>().<a class="code" href="classclang_1_1DiagnosticsEngine.html#a03686c59442babd725417ff740b397b4" title="Issue the message to the client.">Report</a>(D-><a class="code" href="classclang_1_1Decl.html#a2348196ac4e0b1d5ebb1859c31b99eac">getLocation</a>(), diag::err_duplicate_mangled_name);</div>
+<div class="line"><a name="l02108"></a><span class="lineno"> 2108</span>     <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l02109"></a><span class="lineno"> 2109</span>   }</div>
+<div class="line"><a name="l02110"></a><span class="lineno"> 2110</span> </div>
+<div class="line"><a name="l02111"></a><span class="lineno"> 2111</span>   <span class="keywordflow">if</span> (cast<llvm::GlobalValue>(Entry)->getType()->getElementType() != Ty) {</div>
+<div class="line"><a name="l02112"></a><span class="lineno"> 2112</span>     llvm::GlobalValue *OldFn = cast<llvm::GlobalValue>(Entry);</div>
+<div class="line"><a name="l02113"></a><span class="lineno"> 2113</span> </div>
+<div class="line"><a name="l02114"></a><span class="lineno"> 2114</span>     <span class="comment">// If the types mismatch then we have to rewrite the definition.</span></div>
+<div class="line"><a name="l02115"></a><span class="lineno"> 2115</span>     assert(OldFn->isDeclaration() &&</div>
+<div class="line"><a name="l02116"></a><span class="lineno"> 2116</span>            <span class="stringliteral">"Shouldn't replace non-declaration"</span>);</div>
+<div class="line"><a name="l02117"></a><span class="lineno"> 2117</span> </div>
+<div class="line"><a name="l02118"></a><span class="lineno"> 2118</span>     <span class="comment">// F is the Function* for the one with the wrong type, we must make a new</span></div>
+<div class="line"><a name="l02119"></a><span class="lineno"> 2119</span>     <span class="comment">// Function* and update everything that used F (a declaration) with the new</span></div>
+<div class="line"><a name="l02120"></a><span class="lineno"> 2120</span>     <span class="comment">// Function* (which will be a definition).</span></div>
+<div class="line"><a name="l02121"></a><span class="lineno"> 2121</span>     <span class="comment">//</span></div>
+<div class="line"><a name="l02122"></a><span class="lineno"> 2122</span>     <span class="comment">// This happens if there is a prototype for a function</span></div>
+<div class="line"><a name="l02123"></a><span class="lineno"> 2123</span>     <span class="comment">// (e.g. "int f()") and then a definition of a different type</span></div>
+<div class="line"><a name="l02124"></a><span class="lineno"> 2124</span>     <span class="comment">// (e.g. "int f(int x)").  Move the old function aside so that it</span></div>
+<div class="line"><a name="l02125"></a><span class="lineno"> 2125</span>     <span class="comment">// doesn't interfere with GetAddrOfFunction.</span></div>
+<div class="line"><a name="l02126"></a><span class="lineno"> 2126</span>     OldFn->setName(StringRef());</div>
+<div class="line"><a name="l02127"></a><span class="lineno"> 2127</span>     llvm::Function *NewFn = cast<llvm::Function>(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ac7a1043756ac6082fa8e9540afa830a9">GetAddrOfFunction</a>(GD, Ty));</div>
+<div class="line"><a name="l02128"></a><span class="lineno"> 2128</span> </div>
+<div class="line"><a name="l02129"></a><span class="lineno"> 2129</span>     <span class="comment">// This might be an implementation of a function without a</span></div>
+<div class="line"><a name="l02130"></a><span class="lineno"> 2130</span>     <span class="comment">// prototype, in which case, try to do special replacement of</span></div>
+<div class="line"><a name="l02131"></a><span class="lineno"> 2131</span>     <span class="comment">// calls which match the new prototype.  The really key thing here</span></div>
+<div class="line"><a name="l02132"></a><span class="lineno"> 2132</span>     <span class="comment">// is that we also potentially drop arguments from the call site</span></div>
+<div class="line"><a name="l02133"></a><span class="lineno"> 2133</span>     <span class="comment">// so as to make a direct call, which makes the inliner happier</span></div>
+<div class="line"><a name="l02134"></a><span class="lineno"> 2134</span>     <span class="comment">// and suppresses a number of optimizer warnings (!) about</span></div>
+<div class="line"><a name="l02135"></a><span class="lineno"> 2135</span>     <span class="comment">// dropping arguments.</span></div>
+<div class="line"><a name="l02136"></a><span class="lineno"> 2136</span>     <span class="keywordflow">if</span> (!OldFn->use_empty()) {</div>
+<div class="line"><a name="l02137"></a><span class="lineno"> 2137</span>       <a class="code" href="CodeGenModule_8cpp.html#ae3568e14ee20dd7717afac0f83581973">ReplaceUsesOfNonProtoTypeWithRealFunction</a>(OldFn, NewFn);</div>
+<div class="line"><a name="l02138"></a><span class="lineno"> 2138</span>       OldFn->removeDeadConstantUsers();</div>
+<div class="line"><a name="l02139"></a><span class="lineno"> 2139</span>     }</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="comment">// Replace uses of F with the Function we will endow with a body.</span></div>
+<div class="line"><a name="l02142"></a><span class="lineno"> 2142</span>     <span class="keywordflow">if</span> (!Entry->use_empty()) {</div>
+<div class="line"><a name="l02143"></a><span class="lineno"> 2143</span>       llvm::Constant *NewPtrForOldDecl =</div>
+<div class="line"><a name="l02144"></a><span class="lineno"> 2144</span>         llvm::ConstantExpr::getBitCast(NewFn, Entry->getType());</div>
+<div class="line"><a name="l02145"></a><span class="lineno"> 2145</span>       Entry->replaceAllUsesWith(NewPtrForOldDecl);</div>
+<div class="line"><a name="l02146"></a><span class="lineno"> 2146</span>     }</div>
+<div class="line"><a name="l02147"></a><span class="lineno"> 2147</span> </div>
+<div class="line"><a name="l02148"></a><span class="lineno"> 2148</span>     <span class="comment">// Ok, delete the old function now, which is dead.</span></div>
+<div class="line"><a name="l02149"></a><span class="lineno"> 2149</span>     OldFn->eraseFromParent();</div>
+<div class="line"><a name="l02150"></a><span class="lineno"> 2150</span> </div>
+<div class="line"><a name="l02151"></a><span class="lineno"> 2151</span>     Entry = NewFn;</div>
+<div class="line"><a name="l02152"></a><span class="lineno"> 2152</span>   }</div>
+<div class="line"><a name="l02153"></a><span class="lineno"> 2153</span> </div>
+<div class="line"><a name="l02154"></a><span class="lineno"> 2154</span>   <span class="comment">// We need to set linkage and visibility on the function before</span></div>
+<div class="line"><a name="l02155"></a><span class="lineno"> 2155</span>   <span class="comment">// generating code for it because various parts of IR generation</span></div>
+<div class="line"><a name="l02156"></a><span class="lineno"> 2156</span>   <span class="comment">// want to propagate this information down (e.g. to local static</span></div>
+<div class="line"><a name="l02157"></a><span class="lineno"> 2157</span>   <span class="comment">// declarations).</span></div>
+<div class="line"><a name="l02158"></a><span class="lineno"> 2158</span>   llvm::Function *Fn = cast<llvm::Function>(Entry);</div>
+<div class="line"><a name="l02159"></a><span class="lineno"> 2159</span>   <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a0c7dee2827c3a9aacef9dc92e8809a6a">setFunctionLinkage</a>(GD, Fn);</div>
+<div class="line"><a name="l02160"></a><span class="lineno"> 2160</span> </div>
+<div class="line"><a name="l02161"></a><span class="lineno"> 2161</span>   <span class="comment">// FIXME: this is redundant with part of SetFunctionDefinitionAttributes</span></div>
+<div class="line"><a name="l02162"></a><span class="lineno"> 2162</span>   <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a426a15bb17382a3c64ce2719cb0ae2da">setGlobalVisibility</a>(Fn, D);</div>
+<div class="line"><a name="l02163"></a><span class="lineno"> 2163</span> </div>
+<div class="line"><a name="l02164"></a><span class="lineno"> 2164</span>   <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a974ab43a2b0873b20b10079c5375aee3" title="If the declaration has internal linkage but is inside an extern "C" linkage specification, prepare to emit an alias for it to the expected name.">MaybeHandleStaticInExternC</a>(D, Fn);</div>
+<div class="line"><a name="l02165"></a><span class="lineno"> 2165</span> </div>
+<div class="line"><a name="l02166"></a><span class="lineno"> 2166</span>   <a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGenFunction</a>(*this).<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a1dd5a4b71539ee048882c256c396d5dc">GenerateCode</a>(D, Fn, FI);</div>
+<div class="line"><a name="l02167"></a><span class="lineno"> 2167</span> </div>
+<div class="line"><a name="l02168"></a><span class="lineno"> 2168</span>   SetFunctionDefinitionAttributes(D, Fn);</div>
+<div class="line"><a name="l02169"></a><span class="lineno"> 2169</span>   <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ae9889f0aa89bb9e2c853e5046ea2ce98">SetLLVMFunctionAttributesForDefinition</a>(D, Fn);</div>
+<div class="line"><a name="l02170"></a><span class="lineno"> 2170</span> </div>
+<div class="line"><a name="l02171"></a><span class="lineno"> 2171</span>   <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1ConstructorAttr.html">ConstructorAttr</a> *CA = D-><a class="code" href="classclang_1_1Decl.html#a6a041df02fad17a6fabe51af5de0ea3c">getAttr</a><<a class="code" href="classclang_1_1ConstructorAttr.html">ConstructorAttr</a>>())</div>
+<div class="line"><a name="l02172"></a><span class="lineno"> 2172</span>     AddGlobalCtor(Fn, CA->getPriority());</div>
+<div class="line"><a name="l02173"></a><span class="lineno"> 2173</span>   <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1DestructorAttr.html">DestructorAttr</a> *DA = D-><a class="code" href="classclang_1_1Decl.html#a6a041df02fad17a6fabe51af5de0ea3c">getAttr</a><<a class="code" href="classclang_1_1DestructorAttr.html">DestructorAttr</a>>())</div>
+<div class="line"><a name="l02174"></a><span class="lineno"> 2174</span>     AddGlobalDtor(Fn, DA->getPriority());</div>
+<div class="line"><a name="l02175"></a><span class="lineno"> 2175</span>   <span class="keywordflow">if</span> (D-><a class="code" href="classclang_1_1Decl.html#ac60cc8b34313e03a5c40277c5c5ad61b">hasAttr</a><<a class="code" href="classclang_1_1AnnotateAttr.html">AnnotateAttr</a>>())</div>
+<div class="line"><a name="l02176"></a><span class="lineno"> 2176</span>     <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#aa852a65b18d48138ff889bdb8ce281ad">AddGlobalAnnotations</a>(D, Fn);</div>
+<div class="line"><a name="l02177"></a><span class="lineno"> 2177</span> }</div>
+<div class="line"><a name="l02178"></a><span class="lineno"> 2178</span> </div>
+<div class="line"><a name="l02179"></a><span class="lineno"> 2179</span> <span class="keywordtype">void</span> CodeGenModule::EmitAliasDefinition(<a class="code" href="classclang_1_1GlobalDecl.html">GlobalDecl</a> GD) {</div>
+<div class="line"><a name="l02180"></a><span class="lineno"> 2180</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1ValueDecl.html">ValueDecl</a> *D = cast<ValueDecl>(GD.<a class="code" href="classclang_1_1GlobalDecl.html#a3971ce53aef50b4c3d829615a5ecd0a0">getDecl</a>());</div>
+<div class="line"><a name="l02181"></a><span class="lineno"> 2181</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1AliasAttr.html">AliasAttr</a> *AA = D-><a class="code" href="classclang_1_1Decl.html#a6a041df02fad17a6fabe51af5de0ea3c">getAttr</a><<a class="code" href="classclang_1_1AliasAttr.html">AliasAttr</a>>();</div>
+<div class="line"><a name="l02182"></a><span class="lineno"> 2182</span>   assert(AA && <span class="stringliteral">"Not an alias?"</span>);</div>
+<div class="line"><a name="l02183"></a><span class="lineno"> 2183</span> </div>
+<div class="line"><a name="l02184"></a><span class="lineno"> 2184</span>   StringRef MangledName = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ac2e5fda10002d34cd7f20fc0c2615a51">getMangledName</a>(GD);</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>   <span class="comment">// If there is a definition in the module, then it wins over the alias.</span></div>
+<div class="line"><a name="l02187"></a><span class="lineno"> 2187</span>   <span class="comment">// This is dubious, but allow it to be safe.  Just ignore the alias.</span></div>
+<div class="line"><a name="l02188"></a><span class="lineno"> 2188</span>   llvm::GlobalValue *Entry = GetGlobalValue(MangledName);</div>
+<div class="line"><a name="l02189"></a><span class="lineno"> 2189</span>   <span class="keywordflow">if</span> (Entry && !Entry->isDeclaration())</div>
+<div class="line"><a name="l02190"></a><span class="lineno"> 2190</span>     <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l02191"></a><span class="lineno"> 2191</span> </div>
+<div class="line"><a name="l02192"></a><span class="lineno"> 2192</span>   Aliases.push_back(GD);</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>   llvm::Type *DeclTy = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a1325760f10142c1da8521b53734858ef">getTypes</a>().<a class="code" href="classclang_1_1CodeGen_1_1CodeGenTypes.html#a9e549d382da897b9d23ed3e2c65e6cf7">ConvertTypeForMem</a>(D-><a class="code" href="classclang_1_1ValueDecl.html#aefa6d3327144aee23d2935f41d993484">getType</a>());</div>
+<div class="line"><a name="l02195"></a><span class="lineno"> 2195</span> </div>
+<div class="line"><a name="l02196"></a><span class="lineno"> 2196</span>   <span class="comment">// Create a reference to the named value.  This ensures that it is emitted</span></div>
+<div class="line"><a name="l02197"></a><span class="lineno"> 2197</span>   <span class="comment">// if a deferred decl.</span></div>
+<div class="line"><a name="l02198"></a><span class="lineno"> 2198</span>   llvm::Constant *Aliasee;</div>
+<div class="line"><a name="l02199"></a><span class="lineno"> 2199</span>   <span class="keywordflow">if</span> (isa<llvm::FunctionType>(DeclTy))</div>
+<div class="line"><a name="l02200"></a><span class="lineno"> 2200</span>     Aliasee = GetOrCreateLLVMFunction(AA->getAliasee(), DeclTy, GD,</div>
+<div class="line"><a name="l02201"></a><span class="lineno"> 2201</span>                                       <span class="comment">/*ForVTable=*/</span><span class="keyword">false</span>);</div>
+<div class="line"><a name="l02202"></a><span class="lineno"> 2202</span>   <span class="keywordflow">else</span></div>
+<div class="line"><a name="l02203"></a><span class="lineno"> 2203</span>     Aliasee = GetOrCreateLLVMGlobal(AA->getAliasee(),</div>
+<div class="line"><a name="l02204"></a><span class="lineno"> 2204</span>                                     llvm::PointerType::getUnqual(DeclTy), 0);</div>
+<div class="line"><a name="l02205"></a><span class="lineno"> 2205</span> </div>
+<div class="line"><a name="l02206"></a><span class="lineno"> 2206</span>   <span class="comment">// Create the new alias itself, but don't set a name yet.</span></div>
+<div class="line"><a name="l02207"></a><span class="lineno"> 2207</span>   llvm::GlobalValue *GA =</div>
+<div class="line"><a name="l02208"></a><span class="lineno"> 2208</span>     <span class="keyword">new</span> llvm::GlobalAlias(Aliasee->getType(),</div>
+<div class="line"><a name="l02209"></a><span class="lineno"> 2209</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::Function::ExternalLinkage</a>,</div>
+<div class="line"><a name="l02210"></a><span class="lineno"> 2210</span>                           <span class="stringliteral">""</span>, Aliasee, &<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a908409c9231b015784ca008fd6bcb961">getModule</a>());</div>
+<div class="line"><a name="l02211"></a><span class="lineno"> 2211</span> </div>
+<div class="line"><a name="l02212"></a><span class="lineno"> 2212</span>   <span class="keywordflow">if</span> (Entry) {</div>
+<div class="line"><a name="l02213"></a><span class="lineno"> 2213</span>     assert(Entry->isDeclaration());</div>
+<div class="line"><a name="l02214"></a><span class="lineno"> 2214</span> </div>
+<div class="line"><a name="l02215"></a><span class="lineno"> 2215</span>     <span class="comment">// If there is a declaration in the module, then we had an extern followed</span></div>
+<div class="line"><a name="l02216"></a><span class="lineno"> 2216</span>     <span class="comment">// by the alias, as in:</span></div>
+<div class="line"><a name="l02217"></a><span class="lineno"> 2217</span>     <span class="comment">//   extern int test6();</span></div>
+<div class="line"><a name="l02218"></a><span class="lineno"> 2218</span>     <span class="comment">//   ...</span></div>
+<div class="line"><a name="l02219"></a><span class="lineno"> 2219</span>     <span class="comment">//   int test6() __attribute__((alias("test7")));</span></div>
+<div class="line"><a name="l02220"></a><span class="lineno"> 2220</span>     <span class="comment">//</span></div>
+<div class="line"><a name="l02221"></a><span class="lineno"> 2221</span>     <span class="comment">// Remove it and replace uses of it with the alias.</span></div>
+<div class="line"><a name="l02222"></a><span class="lineno"> 2222</span>     GA->takeName(Entry);</div>
+<div class="line"><a name="l02223"></a><span class="lineno"> 2223</span> </div>
+<div class="line"><a name="l02224"></a><span class="lineno"> 2224</span>     Entry->replaceAllUsesWith(llvm::ConstantExpr::getBitCast(GA,</div>
+<div class="line"><a name="l02225"></a><span class="lineno"> 2225</span>                                                           Entry->getType()));</div>
+<div class="line"><a name="l02226"></a><span class="lineno"> 2226</span>     Entry->eraseFromParent();</div>
+<div class="line"><a name="l02227"></a><span class="lineno"> 2227</span>   } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l02228"></a><span class="lineno"> 2228</span>     GA->setName(MangledName);</div>
+<div class="line"><a name="l02229"></a><span class="lineno"> 2229</span>   }</div>
+<div class="line"><a name="l02230"></a><span class="lineno"> 2230</span> </div>
+<div class="line"><a name="l02231"></a><span class="lineno"> 2231</span>   <span class="comment">// Set attributes which are particular to an alias; this is a</span></div>
+<div class="line"><a name="l02232"></a><span class="lineno"> 2232</span>   <span class="comment">// specialization of the attributes which may be set on a global</span></div>
+<div class="line"><a name="l02233"></a><span class="lineno"> 2233</span>   <span class="comment">// variable/function.</span></div>
+<div class="line"><a name="l02234"></a><span class="lineno"> 2234</span>   <span class="keywordflow">if</span> (D-><a class="code" href="classclang_1_1Decl.html#ac60cc8b34313e03a5c40277c5c5ad61b">hasAttr</a><<a class="code" href="classclang_1_1DLLExportAttr.html">DLLExportAttr</a>>()) {</div>
+<div class="line"><a name="l02235"></a><span class="lineno"> 2235</span>     <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1FunctionDecl.html">FunctionDecl</a> *FD = dyn_cast<FunctionDecl>(D)) {</div>
+<div class="line"><a name="l02236"></a><span class="lineno"> 2236</span>       <span class="comment">// The dllexport attribute is ignored for undefined symbols.</span></div>
+<div class="line"><a name="l02237"></a><span class="lineno"> 2237</span>       <span class="keywordflow">if</span> (FD->hasBody())</div>
+<div class="line"><a name="l02238"></a><span class="lineno"> 2238</span>         GA->setLinkage(llvm::Function::DLLExportLinkage);</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>       GA->setLinkage(llvm::Function::DLLExportLinkage);</div>
+<div class="line"><a name="l02241"></a><span class="lineno"> 2241</span>     }</div>
+<div class="line"><a name="l02242"></a><span class="lineno"> 2242</span>   } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (D-><a class="code" href="classclang_1_1Decl.html#ac60cc8b34313e03a5c40277c5c5ad61b">hasAttr</a><<a class="code" href="classclang_1_1WeakAttr.html">WeakAttr</a>>() ||</div>
+<div class="line"><a name="l02243"></a><span class="lineno"> 2243</span>              D-><a class="code" href="classclang_1_1Decl.html#ac60cc8b34313e03a5c40277c5c5ad61b">hasAttr</a><<a class="code" href="classclang_1_1WeakRefAttr.html">WeakRefAttr</a>>() ||</div>
+<div class="line"><a name="l02244"></a><span class="lineno"> 2244</span>              D-><a class="code" href="classclang_1_1Decl.html#a1b071e9bafaf5e1ae1733a31b4fbafc9" title="Determine whether this is a weak-imported symbol.">isWeakImported</a>()) {</div>
+<div class="line"><a name="l02245"></a><span class="lineno"> 2245</span>     GA->setLinkage(llvm::Function::WeakAnyLinkage);</div>
+<div class="line"><a name="l02246"></a><span class="lineno"> 2246</span>   }</div>
+<div class="line"><a name="l02247"></a><span class="lineno"> 2247</span> </div>
+<div class="line"><a name="l02248"></a><span class="lineno"> 2248</span>   SetCommonAttributes(D, GA);</div>
+<div class="line"><a name="l02249"></a><span class="lineno"> 2249</span> }</div>
+<div class="line"><a name="l02250"></a><span class="lineno"> 2250</span> </div>
+<div class="line"><a name="l02251"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a746e030a00d8dc22123b52c48120aad3"> 2251</a></span> llvm::Function *<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a746e030a00d8dc22123b52c48120aad3">CodeGenModule::getIntrinsic</a>(<span class="keywordtype">unsigned</span> IID,</div>
+<div class="line"><a name="l02252"></a><span class="lineno"> 2252</span>                                             <a class="code" href="classllvm_1_1ArrayRef.html">ArrayRef<llvm::Type*></a> Tys) {</div>
+<div class="line"><a name="l02253"></a><span class="lineno"> 2253</span>   <span class="keywordflow">return</span> llvm::Intrinsic::getDeclaration(&<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a908409c9231b015784ca008fd6bcb961">getModule</a>(), (<a class="code" href="namespaceclang_1_1LangAS.html#a78ee38b55acb7cc806cb61e6d2a9f960" title="Defines the set of possible language-specific address spaces.">llvm::Intrinsic::ID</a>)IID,</div>
+<div class="line"><a name="l02254"></a><span class="lineno"> 2254</span>                                          Tys);</div>
+<div class="line"><a name="l02255"></a><span class="lineno"> 2255</span> }</div>
+<div class="line"><a name="l02256"></a><span class="lineno"> 2256</span> </div>
+<div class="line"><a name="l02257"></a><span class="lineno"> 2257</span> <span class="keyword">static</span> llvm::StringMapEntry<llvm::Constant*> &</div>
+<div class="line"><a name="l02258"></a><span class="lineno"><a class="code" href="CodeGenModule_8cpp.html#ac2dfcaa391ae9cc96a3c59a9a7196a0c"> 2258</a></span> <a class="code" href="CodeGenModule_8cpp.html#ac2dfcaa391ae9cc96a3c59a9a7196a0c">GetConstantCFStringEntry</a>(llvm::StringMap<llvm::Constant*> &<a class="code" href="namespaceclang_1_1LangAS.html#a241b6fc974438ba623ec877f2b294f0c">Map</a>,</div>
+<div class="line"><a name="l02259"></a><span class="lineno"> 2259</span>                          <span class="keyword">const</span> <a class="code" href="classclang_1_1StringLiteral.html">StringLiteral</a> *Literal,</div>
+<div class="line"><a name="l02260"></a><span class="lineno"> 2260</span>                          <span class="keywordtype">bool</span> TargetIsLSB,</div>
+<div class="line"><a name="l02261"></a><span class="lineno"> 2261</span>                          <span class="keywordtype">bool</span> &IsUTF16,</div>
+<div class="line"><a name="l02262"></a><span class="lineno"> 2262</span>                          <span class="keywordtype">unsigned</span> &StringLength) {</div>
+<div class="line"><a name="l02263"></a><span class="lineno"> 2263</span>   StringRef String = Literal-><a class="code" href="classclang_1_1StringLiteral.html#a5ac45571169396e74d296c733811a243">getString</a>();</div>
+<div class="line"><a name="l02264"></a><span class="lineno"> 2264</span>   <span class="keywordtype">unsigned</span> NumBytes = String.size();</div>
+<div class="line"><a name="l02265"></a><span class="lineno"> 2265</span> </div>
+<div class="line"><a name="l02266"></a><span class="lineno"> 2266</span>   <span class="comment">// Check for simple case.</span></div>
+<div class="line"><a name="l02267"></a><span class="lineno"> 2267</span>   <span class="keywordflow">if</span> (!Literal-><a class="code" href="classclang_1_1StringLiteral.html#a96a9378f873031c3252cf6ea47d244c5">containsNonAsciiOrNull</a>()) {</div>
+<div class="line"><a name="l02268"></a><span class="lineno"> 2268</span>     StringLength = NumBytes;</div>
+<div class="line"><a name="l02269"></a><span class="lineno"> 2269</span>     <span class="keywordflow">return</span> Map.GetOrCreateValue(String);</div>
+<div class="line"><a name="l02270"></a><span class="lineno"> 2270</span>   }</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="comment">// Otherwise, convert the UTF8 literals into a string of shorts.</span></div>
+<div class="line"><a name="l02273"></a><span class="lineno"> 2273</span>   IsUTF16 = <span class="keyword">true</span>;</div>
+<div class="line"><a name="l02274"></a><span class="lineno"> 2274</span> </div>
+<div class="line"><a name="l02275"></a><span class="lineno"> 2275</span>   <a class="code" href="classllvm_1_1SmallVector.html">SmallVector<UTF16, 128></a> ToBuf(NumBytes + 1); <span class="comment">// +1 for ending nulls.</span></div>
+<div class="line"><a name="l02276"></a><span class="lineno"> 2276</span>   <span class="keyword">const</span> UTF8 *FromPtr = (<span class="keyword">const</span> UTF8 *)String.data();</div>
+<div class="line"><a name="l02277"></a><span class="lineno"> 2277</span>   UTF16 *ToPtr = &ToBuf[0];</div>
+<div class="line"><a name="l02278"></a><span class="lineno"> 2278</span> </div>
+<div class="line"><a name="l02279"></a><span class="lineno"> 2279</span>   (void)ConvertUTF8toUTF16(&FromPtr, FromPtr + NumBytes,</div>
+<div class="line"><a name="l02280"></a><span class="lineno"> 2280</span>                            &ToPtr, ToPtr + NumBytes,</div>
+<div class="line"><a name="l02281"></a><span class="lineno"> 2281</span>                            strictConversion);</div>
+<div class="line"><a name="l02282"></a><span class="lineno"> 2282</span> </div>
+<div class="line"><a name="l02283"></a><span class="lineno"> 2283</span>   <span class="comment">// ConvertUTF8toUTF16 returns the length in ToPtr.</span></div>
+<div class="line"><a name="l02284"></a><span class="lineno"> 2284</span>   StringLength = ToPtr - &ToBuf[0];</div>
+<div class="line"><a name="l02285"></a><span class="lineno"> 2285</span> </div>
+<div class="line"><a name="l02286"></a><span class="lineno"> 2286</span>   <span class="comment">// Add an explicit null.</span></div>
+<div class="line"><a name="l02287"></a><span class="lineno"> 2287</span>   *ToPtr = 0;</div>
+<div class="line"><a name="l02288"></a><span class="lineno"> 2288</span>   <span class="keywordflow">return</span> Map.</div>
+<div class="line"><a name="l02289"></a><span class="lineno"> 2289</span>     GetOrCreateValue(StringRef(reinterpret_cast<const char *>(ToBuf.data()),</div>
+<div class="line"><a name="l02290"></a><span class="lineno"> 2290</span>                                (StringLength + 1) * 2));</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="keyword">static</span> llvm::StringMapEntry<llvm::Constant*> &</div>
+<div class="line"><a name="l02294"></a><span class="lineno"><a class="code" href="CodeGenModule_8cpp.html#aec841ff12369fc123b6564d8280a2113"> 2294</a></span> <a class="code" href="CodeGenModule_8cpp.html#aec841ff12369fc123b6564d8280a2113">GetConstantStringEntry</a>(llvm::StringMap<llvm::Constant*> &<a class="code" href="namespaceclang_1_1LangAS.html#a241b6fc974438ba623ec877f2b294f0c">Map</a>,</div>
+<div class="line"><a name="l02295"></a><span class="lineno"> 2295</span>                        <span class="keyword">const</span> <a class="code" href="classclang_1_1StringLiteral.html">StringLiteral</a> *Literal,</div>
+<div class="line"><a name="l02296"></a><span class="lineno"> 2296</span>                        <span class="keywordtype">unsigned</span> &StringLength) {</div>
+<div class="line"><a name="l02297"></a><span class="lineno"> 2297</span>   StringRef String = Literal-><a class="code" href="classclang_1_1StringLiteral.html#a5ac45571169396e74d296c733811a243">getString</a>();</div>
+<div class="line"><a name="l02298"></a><span class="lineno"> 2298</span>   StringLength = String.size();</div>
+<div class="line"><a name="l02299"></a><span class="lineno"> 2299</span>   <span class="keywordflow">return</span> Map.GetOrCreateValue(String);</div>
+<div class="line"><a name="l02300"></a><span class="lineno"> 2300</span> }</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> llvm::Constant *</div>
+<div class="line"><a name="l02303"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#aefacd3ca90f4ba3f9fa8473a8afdfe34"> 2303</a></span> <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#aefacd3ca90f4ba3f9fa8473a8afdfe34">CodeGenModule::GetAddrOfConstantCFString</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1StringLiteral.html">StringLiteral</a> *Literal) {</div>
+<div class="line"><a name="l02304"></a><span class="lineno"> 2304</span>   <span class="keywordtype">unsigned</span> StringLength = 0;</div>
+<div class="line"><a name="l02305"></a><span class="lineno"> 2305</span>   <span class="keywordtype">bool</span> isUTF16 = <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02306"></a><span class="lineno"> 2306</span>   llvm::StringMapEntry<llvm::Constant*> &Entry =</div>
+<div class="line"><a name="l02307"></a><span class="lineno"> 2307</span>     <a class="code" href="CodeGenModule_8cpp.html#ac2dfcaa391ae9cc96a3c59a9a7196a0c">GetConstantCFStringEntry</a>(CFConstantStringMap, Literal,</div>
+<div class="line"><a name="l02308"></a><span class="lineno"> 2308</span>                              <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a7a01d2bf67fc7c685a8648809c0913a7">getDataLayout</a>().isLittleEndian(),</div>
+<div class="line"><a name="l02309"></a><span class="lineno"> 2309</span>                              isUTF16, StringLength);</div>
+<div class="line"><a name="l02310"></a><span class="lineno"> 2310</span> </div>
+<div class="line"><a name="l02311"></a><span class="lineno"> 2311</span>   <span class="keywordflow">if</span> (llvm::Constant *C = Entry.getValue())</div>
+<div class="line"><a name="l02312"></a><span class="lineno"> 2312</span>     <span class="keywordflow">return</span> C;</div>
+<div class="line"><a name="l02313"></a><span class="lineno"> 2313</span> </div>
+<div class="line"><a name="l02314"></a><span class="lineno"> 2314</span>   llvm::Constant *Zero = llvm::Constant::getNullValue(<a class="code" href="structclang_1_1CodeGen_1_1CodeGenTypeCache.html#a9b70851ea2ff034ca9a5443ce213a81c">Int32Ty</a>);</div>
+<div class="line"><a name="l02315"></a><span class="lineno"> 2315</span>   llvm::Constant *Zeros[] = { Zero, Zero };</div>
+<div class="line"><a name="l02316"></a><span class="lineno"> 2316</span>   <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *V;</div>
+<div class="line"><a name="l02317"></a><span class="lineno"> 2317</span>   </div>
+<div class="line"><a name="l02318"></a><span class="lineno"> 2318</span>   <span class="comment">// If we don't already have it, get __CFConstantStringClassReference.</span></div>
+<div class="line"><a name="l02319"></a><span class="lineno"> 2319</span>   <span class="keywordflow">if</span> (!CFConstantStringClassRef) {</div>
+<div class="line"><a name="l02320"></a><span class="lineno"> 2320</span>     llvm::Type *Ty = <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_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>().<a class="code" href="structclang_1_1CodeGen_1_1CodeGenTypeCache.html#aa0d14821b268a724ecc3a9add2f290e6" title="int">IntTy</a>);</div>
+<div class="line"><a name="l02321"></a><span class="lineno"> 2321</span>     Ty = llvm::ArrayType::get(Ty, 0);</div>
+<div class="line"><a name="l02322"></a><span class="lineno"> 2322</span>     llvm::Constant *GV = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#aa09bc64daac1a1dd1ab52ba1335d6c33">CreateRuntimeVariable</a>(Ty,</div>
+<div class="line"><a name="l02323"></a><span class="lineno"> 2323</span>                                            <span class="stringliteral">"__CFConstantStringClassReference"</span>);</div>
+<div class="line"><a name="l02324"></a><span class="lineno"> 2324</span>     <span class="comment">// Decay array -> ptr</span></div>
+<div class="line"><a name="l02325"></a><span class="lineno"> 2325</span>     V = llvm::ConstantExpr::getGetElementPtr(GV, Zeros);</div>
+<div class="line"><a name="l02326"></a><span class="lineno"> 2326</span>     CFConstantStringClassRef = V;</div>
+<div class="line"><a name="l02327"></a><span class="lineno"> 2327</span>   }</div>
+<div class="line"><a name="l02328"></a><span class="lineno"> 2328</span>   <span class="keywordflow">else</span></div>
+<div class="line"><a name="l02329"></a><span class="lineno"> 2329</span>     V = CFConstantStringClassRef;</div>
+<div class="line"><a name="l02330"></a><span class="lineno"> 2330</span> </div>
+<div class="line"><a name="l02331"></a><span class="lineno"> 2331</span>   <a class="code" href="classclang_1_1QualType.html">QualType</a> CFTy = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>().<a class="code" href="classclang_1_1ASTContext.html#aaffe63781c2c0ef1ec5cafc0fa31b229" title="Return the C structure type used to represent constant CFStrings.">getCFConstantStringType</a>();</div>
+<div class="line"><a name="l02332"></a><span class="lineno"> 2332</span> </div>
+<div class="line"><a name="l02333"></a><span class="lineno"> 2333</span>   llvm::StructType *STy =</div>
+<div class="line"><a name="l02334"></a><span class="lineno"> 2334</span>     cast<llvm::StructType>(<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>(CFTy));</div>
+<div class="line"><a name="l02335"></a><span class="lineno"> 2335</span> </div>
+<div class="line"><a name="l02336"></a><span class="lineno"> 2336</span>   llvm::Constant *Fields[4];</div>
+<div class="line"><a name="l02337"></a><span class="lineno"> 2337</span> </div>
+<div class="line"><a name="l02338"></a><span class="lineno"> 2338</span>   <span class="comment">// Class pointer.</span></div>
+<div class="line"><a name="l02339"></a><span class="lineno"> 2339</span>   Fields[0] = cast<llvm::ConstantExpr>(V);</div>
+<div class="line"><a name="l02340"></a><span class="lineno"> 2340</span> </div>
+<div class="line"><a name="l02341"></a><span class="lineno"> 2341</span>   <span class="comment">// Flags.</span></div>
+<div class="line"><a name="l02342"></a><span class="lineno"> 2342</span>   llvm::Type *Ty = <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_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>().UnsignedIntTy);</div>
+<div class="line"><a name="l02343"></a><span class="lineno"> 2343</span>   Fields[1] = isUTF16 ? llvm::ConstantInt::get(Ty, 0x07d0) :</div>
+<div class="line"><a name="l02344"></a><span class="lineno"> 2344</span>     llvm::ConstantInt::get(Ty, 0x07C8);</div>
+<div class="line"><a name="l02345"></a><span class="lineno"> 2345</span> </div>
+<div class="line"><a name="l02346"></a><span class="lineno"> 2346</span>   <span class="comment">// String pointer.</span></div>
+<div class="line"><a name="l02347"></a><span class="lineno"> 2347</span>   llvm::Constant *C = 0;</div>
+<div class="line"><a name="l02348"></a><span class="lineno"> 2348</span>   <span class="keywordflow">if</span> (isUTF16) {</div>
+<div class="line"><a name="l02349"></a><span class="lineno"> 2349</span>     <a class="code" href="classllvm_1_1ArrayRef.html">ArrayRef<uint16_t></a> Arr =</div>
+<div class="line"><a name="l02350"></a><span class="lineno"> 2350</span>       llvm::makeArrayRef<uint16_t>(<span class="keyword">reinterpret_cast<</span>uint16_t*<span class="keyword">></span>(</div>
+<div class="line"><a name="l02351"></a><span class="lineno"> 2351</span>                                      <span class="keyword">const_cast<</span><span class="keywordtype">char</span> *<span class="keyword">></span>(Entry.getKey().data())),</div>
+<div class="line"><a name="l02352"></a><span class="lineno"> 2352</span>                                    Entry.getKey().size() / 2);</div>
+<div class="line"><a name="l02353"></a><span class="lineno"> 2353</span>     C = llvm::ConstantDataArray::get(VMContext, Arr);</div>
+<div class="line"><a name="l02354"></a><span class="lineno"> 2354</span>   } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l02355"></a><span class="lineno"> 2355</span>     C = llvm::ConstantDataArray::getString(VMContext, Entry.getKey());</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>   llvm::GlobalValue::LinkageTypes <a class="code" href="namespaceclang.html#a78aadfeaf316ded55fdd2d1a9c8815b6" title="Describes the different kinds of linkage (C++ [basic.link], C99 6.2.2) that an entity may have...">Linkage</a>;</div>
+<div class="line"><a name="l02359"></a><span class="lineno"> 2359</span>   <span class="keywordflow">if</span> (isUTF16)</div>
+<div class="line"><a name="l02360"></a><span class="lineno"> 2360</span>     <span class="comment">// FIXME: why do utf strings get "_" labels instead of "L" labels?</span></div>
+<div class="line"><a name="l02361"></a><span class="lineno"> 2361</span>     Linkage = <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="l02362"></a><span class="lineno"> 2362</span>   <span class="keywordflow">else</span></div>
+<div class="line"><a name="l02363"></a><span class="lineno"> 2363</span>     <span class="comment">// FIXME: With OS X ld 123.2 (xcode 4) and LTO we would get a linker error</span></div>
+<div class="line"><a name="l02364"></a><span class="lineno"> 2364</span>     <span class="comment">// when using private linkage. It is not clear if this is a bug in ld</span></div>
+<div class="line"><a name="l02365"></a><span class="lineno"> 2365</span>     <span class="comment">// or a reasonable new restriction.</span></div>
+<div class="line"><a name="l02366"></a><span class="lineno"> 2366</span>     Linkage = llvm::GlobalValue::LinkerPrivateLinkage;</div>
+<div class="line"><a name="l02367"></a><span class="lineno"> 2367</span>   </div>
+<div class="line"><a name="l02368"></a><span class="lineno"> 2368</span>   <span class="comment">// Note: -fwritable-strings doesn't make the backing store strings of</span></div>
+<div class="line"><a name="l02369"></a><span class="lineno"> 2369</span>   <span class="comment">// CFStrings writable. (See <rdar://problem/10657500>)</span></div>
+<div class="line"><a name="l02370"></a><span class="lineno"> 2370</span>   llvm::GlobalVariable *GV =</div>
+<div class="line"><a name="l02371"></a><span class="lineno"> 2371</span>     <span class="keyword">new</span> llvm::GlobalVariable(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a908409c9231b015784ca008fd6bcb961">getModule</a>(), C->getType(), <span class="comment">/*isConstant=*/</span><span class="keyword">true</span>,</div>
+<div class="line"><a name="l02372"></a><span class="lineno"> 2372</span>                              <a class="code" href="namespaceclang.html#a78aadfeaf316ded55fdd2d1a9c8815b6" title="Describes the different kinds of linkage (C++ [basic.link], C99 6.2.2) that an entity may have...">Linkage</a>, C, <span class="stringliteral">".str"</span>);</div>
+<div class="line"><a name="l02373"></a><span class="lineno"> 2373</span>   GV->setUnnamedAddr(<span class="keyword">true</span>);</div>
+<div class="line"><a name="l02374"></a><span class="lineno"> 2374</span>   <span class="comment">// Don't enforce the target's minimum global alignment, since the only use</span></div>
+<div class="line"><a name="l02375"></a><span class="lineno"> 2375</span>   <span class="comment">// of the string is via this class initializer.</span></div>
+<div class="line"><a name="l02376"></a><span class="lineno"> 2376</span>   <span class="keywordflow">if</span> (isUTF16) {</div>
+<div class="line"><a name="l02377"></a><span class="lineno"> 2377</span>     <a class="code" href="classclang_1_1CharUnits.html">CharUnits</a> Align = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>().<a class="code" href="classclang_1_1ASTContext.html#a78053c06e4477f81b295cac200144fc4" title="Return the ABI-specified alignment of a (complete) type T, in characters.">getTypeAlignInChars</a>(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>().ShortTy);</div>
+<div class="line"><a name="l02378"></a><span class="lineno"> 2378</span>     GV->setAlignment(Align.<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="l02379"></a><span class="lineno"> 2379</span>   } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l02380"></a><span class="lineno"> 2380</span>     <a class="code" href="classclang_1_1CharUnits.html">CharUnits</a> Align = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>().<a class="code" href="classclang_1_1ASTContext.html#a78053c06e4477f81b295cac200144fc4" title="Return the ABI-specified alignment of a (complete) type T, in characters.">getTypeAlignInChars</a>(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>().CharTy);</div>
+<div class="line"><a name="l02381"></a><span class="lineno"> 2381</span>     GV->setAlignment(Align.<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="l02382"></a><span class="lineno"> 2382</span>   }</div>
+<div class="line"><a name="l02383"></a><span class="lineno"> 2383</span> </div>
+<div class="line"><a name="l02384"></a><span class="lineno"> 2384</span>   <span class="comment">// String.</span></div>
+<div class="line"><a name="l02385"></a><span class="lineno"> 2385</span>   Fields[2] = llvm::ConstantExpr::getGetElementPtr(GV, Zeros);</div>
+<div class="line"><a name="l02386"></a><span class="lineno"> 2386</span> </div>
+<div class="line"><a name="l02387"></a><span class="lineno"> 2387</span>   <span class="keywordflow">if</span> (isUTF16)</div>
+<div class="line"><a name="l02388"></a><span class="lineno"> 2388</span>     <span class="comment">// Cast the UTF16 string to the correct type.</span></div>
+<div class="line"><a name="l02389"></a><span class="lineno"> 2389</span>     Fields[2] = llvm::ConstantExpr::getBitCast(Fields[2], <a class="code" href="structclang_1_1CodeGen_1_1CodeGenTypeCache.html#ac3ec7e3938996c5354dbee1a103ed4d2">Int8PtrTy</a>);</div>
+<div class="line"><a name="l02390"></a><span class="lineno"> 2390</span> </div>
+<div class="line"><a name="l02391"></a><span class="lineno"> 2391</span>   <span class="comment">// String length.</span></div>
+<div class="line"><a name="l02392"></a><span class="lineno"> 2392</span>   Ty = <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_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>().LongTy);</div>
+<div class="line"><a name="l02393"></a><span class="lineno"> 2393</span>   Fields[3] = llvm::ConstantInt::get(Ty, StringLength);</div>
+<div class="line"><a name="l02394"></a><span class="lineno"> 2394</span> </div>
+<div class="line"><a name="l02395"></a><span class="lineno"> 2395</span>   <span class="comment">// The struct.</span></div>
+<div class="line"><a name="l02396"></a><span class="lineno"> 2396</span>   C = llvm::ConstantStruct::get(STy, Fields);</div>
+<div class="line"><a name="l02397"></a><span class="lineno"> 2397</span>   GV = <span class="keyword">new</span> llvm::GlobalVariable(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a908409c9231b015784ca008fd6bcb961">getModule</a>(), C->getType(), <span class="keyword">true</span>,</div>
+<div class="line"><a name="l02398"></a><span class="lineno"> 2398</span>                                 llvm::GlobalVariable::PrivateLinkage, C,</div>
+<div class="line"><a name="l02399"></a><span class="lineno"> 2399</span>                                 <span class="stringliteral">"_unnamed_cfstring_"</span>);</div>
+<div class="line"><a name="l02400"></a><span class="lineno"> 2400</span>   <span class="keywordflow">if</span> (<span class="keyword">const</span> <span class="keywordtype">char</span> *Sect = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a0256b70c5f3ad3812e767f745196fa3f">getTarget</a>().<a class="code" href="classclang_1_1TargetInfo.html#a67ea367224ab264aa51b2393fcbc26af" title="Return the section to use for CFString literals, or 0 if no special section is used.">getCFStringSection</a>())</div>
+<div class="line"><a name="l02401"></a><span class="lineno"> 2401</span>     GV->setSection(Sect);</div>
+<div class="line"><a name="l02402"></a><span class="lineno"> 2402</span>   Entry.setValue(GV);</div>
+<div class="line"><a name="l02403"></a><span class="lineno"> 2403</span> </div>
+<div class="line"><a name="l02404"></a><span class="lineno"> 2404</span>   <span class="keywordflow">return</span> GV;</div>
+<div class="line"><a name="l02405"></a><span class="lineno"> 2405</span> }</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> <span class="keyword">static</span> <a class="code" href="classclang_1_1RecordDecl.html">RecordDecl</a> *</div>
+<div class="line"><a name="l02408"></a><span class="lineno"><a class="code" href="CodeGenModule_8cpp.html#aa4da6bef9ba68025cd40141ffea6087f"> 2408</a></span> <a class="code" href="CodeGenModule_8cpp.html#aa4da6bef9ba68025cd40141ffea6087f">CreateRecordDecl</a>(<span class="keyword">const</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, <a class="code" href="classclang_1_1TagDecl.html#acf2a07f89cc90e820189f2cafae2df2c">RecordDecl::TagKind</a> TK,</div>
+<div class="line"><a name="l02409"></a><span class="lineno"> 2409</span>                  <a class="code" href="classclang_1_1DeclContext.html">DeclContext</a> *DC, <a class="code" href="classclang_1_1IdentifierInfo.html">IdentifierInfo</a> *Id) {</div>
+<div class="line"><a name="l02410"></a><span class="lineno"> 2410</span>   <a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> Loc;</div>
+<div class="line"><a name="l02411"></a><span class="lineno"> 2411</span>   <span class="keywordflow">if</span> (Ctx.<a class="code" href="classclang_1_1ASTContext.html#a3faa7b5a5e8d1637c53dea680acca0ff">getLangOpts</a>().CPlusPlus)</div>
+<div class="line"><a name="l02412"></a><span class="lineno"> 2412</span>     <span class="keywordflow">return</span> <a class="code" href="classclang_1_1CXXRecordDecl.html#a5fd9b830edb5b3b128e9eebc1bb2d6d2">CXXRecordDecl::Create</a>(Ctx, TK, DC, Loc, Loc, Id);</div>
+<div class="line"><a name="l02413"></a><span class="lineno"> 2413</span>   <span class="keywordflow">else</span></div>
+<div class="line"><a name="l02414"></a><span class="lineno"> 2414</span>     <span class="keywordflow">return</span> <a class="code" href="classclang_1_1RecordDecl.html#a0e802209d6f62075ebaf1712f3ac0ef6">RecordDecl::Create</a>(Ctx, TK, DC, Loc, Loc, Id);</div>
+<div class="line"><a name="l02415"></a><span class="lineno"> 2415</span> }</div>
+<div class="line"><a name="l02416"></a><span class="lineno"> 2416</span> </div>
+<div class="line"><a name="l02417"></a><span class="lineno"> 2417</span> llvm::Constant *</div>
+<div class="line"><a name="l02418"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ac3a9460bf085254088a74e1a64bed11b"> 2418</a></span> <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ac3a9460bf085254088a74e1a64bed11b">CodeGenModule::GetAddrOfConstantString</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1StringLiteral.html">StringLiteral</a> *Literal) {</div>
+<div class="line"><a name="l02419"></a><span class="lineno"> 2419</span>   <span class="keywordtype">unsigned</span> StringLength = 0;</div>
+<div class="line"><a name="l02420"></a><span class="lineno"> 2420</span>   llvm::StringMapEntry<llvm::Constant*> &Entry =</div>
+<div class="line"><a name="l02421"></a><span class="lineno"> 2421</span>     <a class="code" href="CodeGenModule_8cpp.html#aec841ff12369fc123b6564d8280a2113">GetConstantStringEntry</a>(CFConstantStringMap, Literal, StringLength);</div>
+<div class="line"><a name="l02422"></a><span class="lineno"> 2422</span>   </div>
+<div class="line"><a name="l02423"></a><span class="lineno"> 2423</span>   <span class="keywordflow">if</span> (llvm::Constant *C = Entry.getValue())</div>
+<div class="line"><a name="l02424"></a><span class="lineno"> 2424</span>     <span class="keywordflow">return</span> C;</div>
+<div class="line"><a name="l02425"></a><span class="lineno"> 2425</span>   </div>
+<div class="line"><a name="l02426"></a><span class="lineno"> 2426</span>   llvm::Constant *Zero = llvm::Constant::getNullValue(<a class="code" href="structclang_1_1CodeGen_1_1CodeGenTypeCache.html#a9b70851ea2ff034ca9a5443ce213a81c">Int32Ty</a>);</div>
+<div class="line"><a name="l02427"></a><span class="lineno"> 2427</span>   llvm::Constant *Zeros[] = { Zero, Zero };</div>
+<div class="line"><a name="l02428"></a><span class="lineno"> 2428</span>   <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *V;</div>
+<div class="line"><a name="l02429"></a><span class="lineno"> 2429</span>   <span class="comment">// If we don't already have it, get _NSConstantStringClassReference.</span></div>
+<div class="line"><a name="l02430"></a><span class="lineno"> 2430</span>   <span class="keywordflow">if</span> (!ConstantStringClassRef) {</div>
+<div class="line"><a name="l02431"></a><span class="lineno"> 2431</span>     std::string StringClass(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#abae1594027ce284ce5b7f06c66d24ea7">getLangOpts</a>().ObjCConstantStringClass);</div>
+<div class="line"><a name="l02432"></a><span class="lineno"> 2432</span>     llvm::Type *Ty = <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_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>().<a class="code" href="structclang_1_1CodeGen_1_1CodeGenTypeCache.html#aa0d14821b268a724ecc3a9add2f290e6" title="int">IntTy</a>);</div>
+<div class="line"><a name="l02433"></a><span class="lineno"> 2433</span>     llvm::Constant *GV;</div>
+<div class="line"><a name="l02434"></a><span class="lineno"> 2434</span>     <span class="keywordflow">if</span> (LangOpts.<a class="code" href="classclang_1_1LangOptions.html#a34a8b84f730051971c84c36daa84dda7">ObjCRuntime</a>.<a class="code" href="classclang_1_1ObjCRuntime.html#a5523ca4491b7915e32c02d98a491505e" title="Does this runtime follow the set of implied behaviors for a "non-fragile" ABI?">isNonFragile</a>()) {</div>
+<div class="line"><a name="l02435"></a><span class="lineno"> 2435</span>       std::string str = </div>
+<div class="line"><a name="l02436"></a><span class="lineno"> 2436</span>         StringClass.empty() ? <span class="stringliteral">"OBJC_CLASS_$_NSConstantString"</span> </div>
+<div class="line"><a name="l02437"></a><span class="lineno"> 2437</span>                             : <span class="stringliteral">"OBJC_CLASS_$_"</span> + StringClass;</div>
+<div class="line"><a name="l02438"></a><span class="lineno"> 2438</span>       GV = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a16bb1e08ec65a39764922030379aa5bc">getObjCRuntime</a>().<a class="code" href="classclang_1_1CodeGen_1_1CGObjCRuntime.html#af393814504ae4e0e4e0e60606a46d352">GetClassGlobal</a>(str);</div>
+<div class="line"><a name="l02439"></a><span class="lineno"> 2439</span>       <span class="comment">// Make sure the result is of the correct type.</span></div>
+<div class="line"><a name="l02440"></a><span class="lineno"> 2440</span>       llvm::Type *PTy = llvm::PointerType::getUnqual(Ty);</div>
+<div class="line"><a name="l02441"></a><span class="lineno"> 2441</span>       V = llvm::ConstantExpr::getBitCast(GV, PTy);</div>
+<div class="line"><a name="l02442"></a><span class="lineno"> 2442</span>       ConstantStringClassRef = V;</div>
+<div class="line"><a name="l02443"></a><span class="lineno"> 2443</span>     } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l02444"></a><span class="lineno"> 2444</span>       std::string str =</div>
+<div class="line"><a name="l02445"></a><span class="lineno"> 2445</span>         StringClass.empty() ? <span class="stringliteral">"_NSConstantStringClassReference"</span></div>
+<div class="line"><a name="l02446"></a><span class="lineno"> 2446</span>                             : <span class="stringliteral">"_"</span> + StringClass + <span class="stringliteral">"ClassReference"</span>;</div>
+<div class="line"><a name="l02447"></a><span class="lineno"> 2447</span>       llvm::Type *PTy = llvm::ArrayType::get(Ty, 0);</div>
+<div class="line"><a name="l02448"></a><span class="lineno"> 2448</span>       GV = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#aa09bc64daac1a1dd1ab52ba1335d6c33">CreateRuntimeVariable</a>(PTy, str);</div>
+<div class="line"><a name="l02449"></a><span class="lineno"> 2449</span>       <span class="comment">// Decay array -> ptr</span></div>
+<div class="line"><a name="l02450"></a><span class="lineno"> 2450</span>       V = llvm::ConstantExpr::getGetElementPtr(GV, Zeros);</div>
+<div class="line"><a name="l02451"></a><span class="lineno"> 2451</span>       ConstantStringClassRef = V;</div>
+<div class="line"><a name="l02452"></a><span class="lineno"> 2452</span>     }</div>
+<div class="line"><a name="l02453"></a><span class="lineno"> 2453</span>   }</div>
+<div class="line"><a name="l02454"></a><span class="lineno"> 2454</span>   <span class="keywordflow">else</span></div>
+<div class="line"><a name="l02455"></a><span class="lineno"> 2455</span>     V = ConstantStringClassRef;</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>   <span class="keywordflow">if</span> (!NSConstantStringType) {</div>
+<div class="line"><a name="l02458"></a><span class="lineno"> 2458</span>     <span class="comment">// Construct the type for a constant NSString.</span></div>
+<div class="line"><a name="l02459"></a><span class="lineno"> 2459</span>     <a class="code" href="classclang_1_1RecordDecl.html">RecordDecl</a> *D = <a class="code" href="CodeGenModule_8cpp.html#aa4da6bef9ba68025cd40141ffea6087f">CreateRecordDecl</a>(Context, <a class="code" href="namespaceclang.html#a9237bdb3cf715b9bff8bcb3172635548ac341a3cfc4dae72e09e2348561fffc12" title="The "struct" keyword.">TTK_Struct</a>, </div>
+<div class="line"><a name="l02460"></a><span class="lineno"> 2460</span>                                      Context.<a class="code" href="classclang_1_1ASTContext.html#abd909fb01ef10cfd0244832a67b1dd64">getTranslationUnitDecl</a>(),</div>
+<div class="line"><a name="l02461"></a><span class="lineno"> 2461</span>                                    &Context.<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">"__builtin_NSString"</span>));</div>
+<div class="line"><a name="l02462"></a><span class="lineno"> 2462</span>     D-><a class="code" href="classclang_1_1TagDecl.html#a5a54066831bd4af8a720ca33d3fc46da" title="Starts the definition of this tag declaration.">startDefinition</a>();</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>     <a class="code" href="classclang_1_1QualType.html">QualType</a> FieldTypes[3];</div>
+<div class="line"><a name="l02465"></a><span class="lineno"> 2465</span>     </div>
+<div class="line"><a name="l02466"></a><span class="lineno"> 2466</span>     <span class="comment">// const int *isa;</span></div>
+<div class="line"><a name="l02467"></a><span class="lineno"> 2467</span>     FieldTypes[0] = Context.<a class="code" href="classclang_1_1ASTContext.html#a3574cad49cba0fc48ab7b4c953e7e31e" title="Return the uniqued reference to the type for a pointer to the specified type.">getPointerType</a>(Context.<a class="code" href="classclang_1_1ASTContext.html#a873a1148a8ffe184f0e5bd27bf90c0dc">IntTy</a>.<a class="code" href="classclang_1_1CanQual.html#a788438f6f48e273fe9d64ef4df9ff2fb" title="Retrieves a version of this type with const applied. Note that this does not always yield a canonical...">withConst</a>());</div>
+<div class="line"><a name="l02468"></a><span class="lineno"> 2468</span>     <span class="comment">// const char *str;</span></div>
+<div class="line"><a name="l02469"></a><span class="lineno"> 2469</span>     FieldTypes[1] = Context.<a class="code" href="classclang_1_1ASTContext.html#a3574cad49cba0fc48ab7b4c953e7e31e" title="Return the uniqued reference to the type for a pointer to the specified type.">getPointerType</a>(Context.<a class="code" href="classclang_1_1ASTContext.html#a80ed5a736a74c76bbbd66b90821d1689">CharTy</a>.<a class="code" href="classclang_1_1CanQual.html#a788438f6f48e273fe9d64ef4df9ff2fb" title="Retrieves a version of this type with const applied. Note that this does not always yield a canonical...">withConst</a>());</div>
+<div class="line"><a name="l02470"></a><span class="lineno"> 2470</span>     <span class="comment">// unsigned int length;</span></div>
+<div class="line"><a name="l02471"></a><span class="lineno"> 2471</span>     FieldTypes[2] = Context.<a class="code" href="classclang_1_1ASTContext.html#aad4fc6bf8d266a4dbc03cd9d3a86aab4">UnsignedIntTy</a>;</div>
+<div class="line"><a name="l02472"></a><span class="lineno"> 2472</span>     </div>
+<div class="line"><a name="l02473"></a><span class="lineno"> 2473</span>     <span class="comment">// Create fields</span></div>
+<div class="line"><a name="l02474"></a><span class="lineno"> 2474</span>     <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> i = 0; i < 3; ++i) {</div>
+<div class="line"><a name="l02475"></a><span class="lineno"> 2475</span>       <a class="code" href="classclang_1_1FieldDecl.html">FieldDecl</a> *Field = <a class="code" href="classclang_1_1FieldDecl.html#aaa8d682d61b64a07ebcc49fd9ff5ec4d">FieldDecl::Create</a>(Context, D,</div>
+<div class="line"><a name="l02476"></a><span class="lineno"> 2476</span>                                            <a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a>(),</div>
+<div class="line"><a name="l02477"></a><span class="lineno"> 2477</span>                                            <a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a>(), 0,</div>
+<div class="line"><a name="l02478"></a><span class="lineno"> 2478</span>                                            FieldTypes[i], <span class="comment">/*TInfo=*/</span>0,</div>
+<div class="line"><a name="l02479"></a><span class="lineno"> 2479</span>                                            <span class="comment">/*BitWidth=*/</span>0,</div>
+<div class="line"><a name="l02480"></a><span class="lineno"> 2480</span>                                            <span class="comment">/*Mutable=*/</span><span class="keyword">false</span>,</div>
+<div class="line"><a name="l02481"></a><span class="lineno"> 2481</span>                                            <a class="code" href="namespaceclang.html#a38631de947cb87dc51f30d539410a786aa7e7fcec7cfb08e0975e5fc01e88fb44" title="No in-class initializer.">ICIS_NoInit</a>);</div>
+<div class="line"><a name="l02482"></a><span class="lineno"> 2482</span>       Field-><a class="code" href="classclang_1_1Decl.html#a96fe786efdaa56c50aaa76baaf787a02">setAccess</a>(<a class="code" href="namespaceclang.html#afc8aabd1f46cf32e805cd0d970ef988fa163ae3a419460301961bc458f8f01fd3">AS_public</a>);</div>
+<div class="line"><a name="l02483"></a><span class="lineno"> 2483</span>       D-><a class="code" href="classclang_1_1DeclContext.html#a86d2d92d17fbed1a41461bef1ec5cef8" title="Add the declaration D into this context.">addDecl</a>(Field);</div>
+<div class="line"><a name="l02484"></a><span class="lineno"> 2484</span>     }</div>
+<div class="line"><a name="l02485"></a><span class="lineno"> 2485</span>     </div>
+<div class="line"><a name="l02486"></a><span class="lineno"> 2486</span>     D-><a class="code" href="classclang_1_1RecordDecl.html#acc8668f235e310c30c64285c46c640be">completeDefinition</a>();</div>
+<div class="line"><a name="l02487"></a><span class="lineno"> 2487</span>     <a class="code" href="classclang_1_1QualType.html">QualType</a> NSTy = Context.<a class="code" href="classclang_1_1ASTContext.html#a92752b8dd75428a63b2e787642db884a" title="Return the unique reference to the type for the specified TagDecl (struct/union/class/enum) decl...">getTagDeclType</a>(D);</div>
+<div class="line"><a name="l02488"></a><span class="lineno"> 2488</span>     NSConstantStringType = cast<llvm::StructType>(<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>(NSTy));</div>
+<div class="line"><a name="l02489"></a><span class="lineno"> 2489</span>   }</div>
+<div class="line"><a name="l02490"></a><span class="lineno"> 2490</span>   </div>
+<div class="line"><a name="l02491"></a><span class="lineno"> 2491</span>   llvm::Constant *Fields[3];</div>
+<div class="line"><a name="l02492"></a><span class="lineno"> 2492</span>   </div>
+<div class="line"><a name="l02493"></a><span class="lineno"> 2493</span>   <span class="comment">// Class pointer.</span></div>
+<div class="line"><a name="l02494"></a><span class="lineno"> 2494</span>   Fields[0] = cast<llvm::ConstantExpr>(V);</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">// String pointer.</span></div>
+<div class="line"><a name="l02497"></a><span class="lineno"> 2497</span>   llvm::Constant *C =</div>
+<div class="line"><a name="l02498"></a><span class="lineno"> 2498</span>     llvm::ConstantDataArray::getString(VMContext, Entry.getKey());</div>
+<div class="line"><a name="l02499"></a><span class="lineno"> 2499</span>   </div>
+<div class="line"><a name="l02500"></a><span class="lineno"> 2500</span>   llvm::GlobalValue::LinkageTypes <a class="code" href="namespaceclang.html#a78aadfeaf316ded55fdd2d1a9c8815b6" title="Describes the different kinds of linkage (C++ [basic.link], C99 6.2.2) that an entity may have...">Linkage</a>;</div>
+<div class="line"><a name="l02501"></a><span class="lineno"> 2501</span>   <span class="keywordtype">bool</span> isConstant;</div>
+<div class="line"><a name="l02502"></a><span class="lineno"> 2502</span>   Linkage = llvm::GlobalValue::PrivateLinkage;</div>
+<div class="line"><a name="l02503"></a><span class="lineno"> 2503</span>   isConstant = !LangOpts.WritableStrings;</div>
+<div class="line"><a name="l02504"></a><span class="lineno"> 2504</span>   </div>
+<div class="line"><a name="l02505"></a><span class="lineno"> 2505</span>   llvm::GlobalVariable *GV =</div>
+<div class="line"><a name="l02506"></a><span class="lineno"> 2506</span>   <span class="keyword">new</span> llvm::GlobalVariable(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a908409c9231b015784ca008fd6bcb961">getModule</a>(), C->getType(), isConstant, <a class="code" href="namespaceclang.html#a78aadfeaf316ded55fdd2d1a9c8815b6" title="Describes the different kinds of linkage (C++ [basic.link], C99 6.2.2) that an entity may have...">Linkage</a>, C,</div>
+<div class="line"><a name="l02507"></a><span class="lineno"> 2507</span>                            <span class="stringliteral">".str"</span>);</div>
+<div class="line"><a name="l02508"></a><span class="lineno"> 2508</span>   GV->setUnnamedAddr(<span class="keyword">true</span>);</div>
+<div class="line"><a name="l02509"></a><span class="lineno"> 2509</span>   <span class="comment">// Don't enforce the target's minimum global alignment, since the only use</span></div>
+<div class="line"><a name="l02510"></a><span class="lineno"> 2510</span>   <span class="comment">// of the string is via this class initializer.</span></div>
+<div class="line"><a name="l02511"></a><span class="lineno"> 2511</span>   <a class="code" href="classclang_1_1CharUnits.html">CharUnits</a> Align = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>().<a class="code" href="classclang_1_1ASTContext.html#a78053c06e4477f81b295cac200144fc4" title="Return the ABI-specified alignment of a (complete) type T, in characters.">getTypeAlignInChars</a>(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>().CharTy);</div>
+<div class="line"><a name="l02512"></a><span class="lineno"> 2512</span>   GV->setAlignment(Align.<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="l02513"></a><span class="lineno"> 2513</span>   Fields[1] = llvm::ConstantExpr::getGetElementPtr(GV, Zeros);</div>
+<div class="line"><a name="l02514"></a><span class="lineno"> 2514</span>   </div>
+<div class="line"><a name="l02515"></a><span class="lineno"> 2515</span>   <span class="comment">// String length.</span></div>
+<div class="line"><a name="l02516"></a><span class="lineno"> 2516</span>   llvm::Type *Ty = <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_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>().UnsignedIntTy);</div>
+<div class="line"><a name="l02517"></a><span class="lineno"> 2517</span>   Fields[2] = llvm::ConstantInt::get(Ty, StringLength);</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>   <span class="comment">// The struct.</span></div>
+<div class="line"><a name="l02520"></a><span class="lineno"> 2520</span>   C = llvm::ConstantStruct::get(NSConstantStringType, Fields);</div>
+<div class="line"><a name="l02521"></a><span class="lineno"> 2521</span>   GV = <span class="keyword">new</span> llvm::GlobalVariable(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a908409c9231b015784ca008fd6bcb961">getModule</a>(), C->getType(), <span class="keyword">true</span>,</div>
+<div class="line"><a name="l02522"></a><span class="lineno"> 2522</span>                                 llvm::GlobalVariable::PrivateLinkage, C,</div>
+<div class="line"><a name="l02523"></a><span class="lineno"> 2523</span>                                 <span class="stringliteral">"_unnamed_nsstring_"</span>);</div>
+<div class="line"><a name="l02524"></a><span class="lineno"> 2524</span>   <span class="comment">// FIXME. Fix section.</span></div>
+<div class="line"><a name="l02525"></a><span class="lineno"> 2525</span>   <span class="keywordflow">if</span> (<span class="keyword">const</span> <span class="keywordtype">char</span> *Sect = </div>
+<div class="line"><a name="l02526"></a><span class="lineno"> 2526</span>         LangOpts.<a class="code" href="classclang_1_1LangOptions.html#a34a8b84f730051971c84c36daa84dda7">ObjCRuntime</a>.<a class="code" href="classclang_1_1ObjCRuntime.html#a5523ca4491b7915e32c02d98a491505e" title="Does this runtime follow the set of implied behaviors for a "non-fragile" ABI?">isNonFragile</a>() </div>
+<div class="line"><a name="l02527"></a><span class="lineno"> 2527</span>           ? <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a0256b70c5f3ad3812e767f745196fa3f">getTarget</a>().<a class="code" href="classclang_1_1TargetInfo.html#a037f50cad13c0854512458c227951f82" title="Return the section to use for NSString literals, or 0 if no special section is used (NonFragile ABI)...">getNSStringNonFragileABISection</a>() </div>
+<div class="line"><a name="l02528"></a><span class="lineno"> 2528</span>           : <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a0256b70c5f3ad3812e767f745196fa3f">getTarget</a>().<a class="code" href="classclang_1_1TargetInfo.html#a61f6140e2cdf79b283fedaab3399f647" title="Return the section to use for NSString literals, or 0 if no special section is used.">getNSStringSection</a>())</div>
+<div class="line"><a name="l02529"></a><span class="lineno"> 2529</span>     GV->setSection(Sect);</div>
+<div class="line"><a name="l02530"></a><span class="lineno"> 2530</span>   Entry.setValue(GV);</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>   <span class="keywordflow">return</span> GV;</div>
+<div class="line"><a name="l02533"></a><span class="lineno"> 2533</span> }</div>
+<div class="line"><a name="l02534"></a><span class="lineno"> 2534</span> </div>
+<div class="line"><a name="l02535"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4369d5282e78727f80f1466a71038733"> 2535</a></span> <a class="code" href="classclang_1_1QualType.html">QualType</a> <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4369d5282e78727f80f1466a71038733" title="Retrieve the record type that describes the state of an Objective-C fast enumeration loop (for...">CodeGenModule::getObjCFastEnumerationStateType</a>() {</div>
+<div class="line"><a name="l02536"></a><span class="lineno"> 2536</span>   <span class="keywordflow">if</span> (ObjCFastEnumerationStateType.<a class="code" href="classclang_1_1QualType.html#a8f87f58000490ad01cd09add1f27d7ac" title="isNull - Return true if this QualType doesn't point to a type yet.">isNull</a>()) {</div>
+<div class="line"><a name="l02537"></a><span class="lineno"> 2537</span>     <a class="code" href="classclang_1_1RecordDecl.html">RecordDecl</a> *D = <a class="code" href="CodeGenModule_8cpp.html#aa4da6bef9ba68025cd40141ffea6087f">CreateRecordDecl</a>(Context, <a class="code" href="namespaceclang.html#a9237bdb3cf715b9bff8bcb3172635548ac341a3cfc4dae72e09e2348561fffc12" title="The "struct" keyword.">TTK_Struct</a>, </div>
+<div class="line"><a name="l02538"></a><span class="lineno"> 2538</span>                                      Context.<a class="code" href="classclang_1_1ASTContext.html#abd909fb01ef10cfd0244832a67b1dd64">getTranslationUnitDecl</a>(),</div>
+<div class="line"><a name="l02539"></a><span class="lineno"> 2539</span>                       &Context.<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">"__objcFastEnumerationState"</span>));</div>
+<div class="line"><a name="l02540"></a><span class="lineno"> 2540</span>     D-><a class="code" href="classclang_1_1TagDecl.html#a5a54066831bd4af8a720ca33d3fc46da" title="Starts the definition of this tag declaration.">startDefinition</a>();</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>     <a class="code" href="classclang_1_1QualType.html">QualType</a> FieldTypes[] = {</div>
+<div class="line"><a name="l02543"></a><span class="lineno"> 2543</span>       Context.<a class="code" href="classclang_1_1ASTContext.html#a76182acff43ec4d01c06751bb8a2f7bc">UnsignedLongTy</a>,</div>
+<div class="line"><a name="l02544"></a><span class="lineno"> 2544</span>       Context.<a class="code" href="classclang_1_1ASTContext.html#a3574cad49cba0fc48ab7b4c953e7e31e" title="Return the uniqued reference to the type for a pointer to the specified type.">getPointerType</a>(Context.<a class="code" href="classclang_1_1ASTContext.html#a46cf0bb1b4e31396963afe4f98956273" title="Represents the Objective-CC id type.">getObjCIdType</a>()),</div>
+<div class="line"><a name="l02545"></a><span class="lineno"> 2545</span>       Context.<a class="code" href="classclang_1_1ASTContext.html#a3574cad49cba0fc48ab7b4c953e7e31e" title="Return the uniqued reference to the type for a pointer to the specified type.">getPointerType</a>(Context.<a class="code" href="classclang_1_1ASTContext.html#a76182acff43ec4d01c06751bb8a2f7bc">UnsignedLongTy</a>),</div>
+<div class="line"><a name="l02546"></a><span class="lineno"> 2546</span>       Context.<a class="code" href="classclang_1_1ASTContext.html#a1dfd9aba04afad486b0dbbfc17de130b" title="Return the unique reference to the type for a constant array of the specified element type...">getConstantArrayType</a>(Context.<a class="code" href="classclang_1_1ASTContext.html#a76182acff43ec4d01c06751bb8a2f7bc">UnsignedLongTy</a>,</div>
+<div class="line"><a name="l02547"></a><span class="lineno"> 2547</span>                            llvm::APInt(32, 5), <a class="code" href="classclang_1_1ArrayType.html#a044cc135a180b91387c89659ab7cabb4a4c2f47d08e59b0457e60184462599c17">ArrayType::Normal</a>, 0)</div>
+<div class="line"><a name="l02548"></a><span class="lineno"> 2548</span>     };</div>
+<div class="line"><a name="l02549"></a><span class="lineno"> 2549</span>     </div>
+<div class="line"><a name="l02550"></a><span class="lineno"> 2550</span>     <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0; i < 4; ++i) {</div>
+<div class="line"><a name="l02551"></a><span class="lineno"> 2551</span>       <a class="code" href="classclang_1_1FieldDecl.html">FieldDecl</a> *Field = <a class="code" href="classclang_1_1FieldDecl.html#aaa8d682d61b64a07ebcc49fd9ff5ec4d">FieldDecl::Create</a>(Context,</div>
+<div class="line"><a name="l02552"></a><span class="lineno"> 2552</span>                                            D,</div>
+<div class="line"><a name="l02553"></a><span class="lineno"> 2553</span>                                            <a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a>(),</div>
+<div class="line"><a name="l02554"></a><span class="lineno"> 2554</span>                                            <a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a>(), 0,</div>
+<div class="line"><a name="l02555"></a><span class="lineno"> 2555</span>                                            FieldTypes[i], <span class="comment">/*TInfo=*/</span>0,</div>
+<div class="line"><a name="l02556"></a><span class="lineno"> 2556</span>                                            <span class="comment">/*BitWidth=*/</span>0,</div>
+<div class="line"><a name="l02557"></a><span class="lineno"> 2557</span>                                            <span class="comment">/*Mutable=*/</span><span class="keyword">false</span>,</div>
+<div class="line"><a name="l02558"></a><span class="lineno"> 2558</span>                                            <a class="code" href="namespaceclang.html#a38631de947cb87dc51f30d539410a786aa7e7fcec7cfb08e0975e5fc01e88fb44" title="No in-class initializer.">ICIS_NoInit</a>);</div>
+<div class="line"><a name="l02559"></a><span class="lineno"> 2559</span>       Field-><a class="code" href="classclang_1_1Decl.html#a96fe786efdaa56c50aaa76baaf787a02">setAccess</a>(<a class="code" href="namespaceclang.html#afc8aabd1f46cf32e805cd0d970ef988fa163ae3a419460301961bc458f8f01fd3">AS_public</a>);</div>
+<div class="line"><a name="l02560"></a><span class="lineno"> 2560</span>       D-><a class="code" href="classclang_1_1DeclContext.html#a86d2d92d17fbed1a41461bef1ec5cef8" title="Add the declaration D into this context.">addDecl</a>(Field);</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>     </div>
+<div class="line"><a name="l02563"></a><span class="lineno"> 2563</span>     D-><a class="code" href="classclang_1_1RecordDecl.html#acc8668f235e310c30c64285c46c640be">completeDefinition</a>();</div>
+<div class="line"><a name="l02564"></a><span class="lineno"> 2564</span>     ObjCFastEnumerationStateType = Context.<a class="code" href="classclang_1_1ASTContext.html#a92752b8dd75428a63b2e787642db884a" title="Return the unique reference to the type for the specified TagDecl (struct/union/class/enum) decl...">getTagDeclType</a>(D);</div>
+<div class="line"><a name="l02565"></a><span class="lineno"> 2565</span>   }</div>
+<div class="line"><a name="l02566"></a><span class="lineno"> 2566</span>   </div>
+<div class="line"><a name="l02567"></a><span class="lineno"> 2567</span>   <span class="keywordflow">return</span> ObjCFastEnumerationStateType;</div>
+<div class="line"><a name="l02568"></a><span class="lineno"> 2568</span> }</div>
+<div class="line"><a name="l02569"></a><span class="lineno"> 2569</span> </div>
+<div class="line"><a name="l02570"></a><span class="lineno"> 2570</span> llvm::Constant *</div>
+<div class="line"><a name="l02571"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ac7972cf66efbbb2f95b42f42e63e0b37"> 2571</a></span> <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ac7972cf66efbbb2f95b42f42e63e0b37">CodeGenModule::GetConstantArrayFromStringLiteral</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1StringLiteral.html">StringLiteral</a> *E) {</div>
+<div class="line"><a name="l02572"></a><span class="lineno"> 2572</span>   assert(!E-><a class="code" href="classclang_1_1Expr.html#a3dd8850a4ad8a5b5f595dd9e9446187b">getType</a>()-><a class="code" href="classclang_1_1Type.html#a1c0038a55083ee0a292a020038ee04d8">isPointerType</a>() && <span class="stringliteral">"Strings are always arrays"</span>);</div>
+<div class="line"><a name="l02573"></a><span class="lineno"> 2573</span>   </div>
+<div class="line"><a name="l02574"></a><span class="lineno"> 2574</span>   <span class="comment">// Don't emit it as the address of the string, emit the string data itself</span></div>
+<div class="line"><a name="l02575"></a><span class="lineno"> 2575</span>   <span class="comment">// as an inline array.</span></div>
+<div class="line"><a name="l02576"></a><span class="lineno"> 2576</span>   <span class="keywordflow">if</span> (E-><a class="code" href="classclang_1_1StringLiteral.html#a1e6df71fc612f1b4353be0b05e3d04c7">getCharByteWidth</a>() == 1) {</div>
+<div class="line"><a name="l02577"></a><span class="lineno"> 2577</span>     <a class="code" href="classllvm_1_1SmallString.html">SmallString<64></a> Str(E-><a class="code" href="classclang_1_1StringLiteral.html#a5ac45571169396e74d296c733811a243">getString</a>());</div>
+<div class="line"><a name="l02578"></a><span class="lineno"> 2578</span> </div>
+<div class="line"><a name="l02579"></a><span class="lineno"> 2579</span>     <span class="comment">// Resize the string to the right size, which is indicated by its type.</span></div>
+<div class="line"><a name="l02580"></a><span class="lineno"> 2580</span>     <span class="keyword">const</span> <a class="code" href="classclang_1_1ConstantArrayType.html">ConstantArrayType</a> *CAT = Context.<a class="code" href="classclang_1_1ASTContext.html#a881d1a09f9d299e910aaa0b6c40a7780">getAsConstantArrayType</a>(E-><a class="code" href="classclang_1_1Expr.html#a3dd8850a4ad8a5b5f595dd9e9446187b">getType</a>());</div>
+<div class="line"><a name="l02581"></a><span class="lineno"> 2581</span>     Str.resize(CAT->getSize().getZExtValue());</div>
+<div class="line"><a name="l02582"></a><span class="lineno"> 2582</span>     <span class="keywordflow">return</span> llvm::ConstantDataArray::getString(VMContext, Str, <span class="keyword">false</span>);</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>   </div>
+<div class="line"><a name="l02585"></a><span class="lineno"> 2585</span>   llvm::ArrayType *AType =</div>
+<div class="line"><a name="l02586"></a><span class="lineno"> 2586</span>     cast<llvm::ArrayType>(<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>(E-><a class="code" href="classclang_1_1Expr.html#a3dd8850a4ad8a5b5f595dd9e9446187b">getType</a>()));</div>
+<div class="line"><a name="l02587"></a><span class="lineno"> 2587</span>   llvm::Type *ElemTy = AType->getElementType();</div>
+<div class="line"><a name="l02588"></a><span class="lineno"> 2588</span>   <span class="keywordtype">unsigned</span> NumElements = AType->getNumElements();</div>
+<div class="line"><a name="l02589"></a><span class="lineno"> 2589</span> </div>
+<div class="line"><a name="l02590"></a><span class="lineno"> 2590</span>   <span class="comment">// Wide strings have either 2-byte or 4-byte elements.</span></div>
+<div class="line"><a name="l02591"></a><span class="lineno"> 2591</span>   <span class="keywordflow">if</span> (ElemTy->getPrimitiveSizeInBits() == 16) {</div>
+<div class="line"><a name="l02592"></a><span class="lineno"> 2592</span>     <a class="code" href="classllvm_1_1SmallVector.html">SmallVector<uint16_t, 32></a> Elements;</div>
+<div class="line"><a name="l02593"></a><span class="lineno"> 2593</span>     Elements.reserve(NumElements);</div>
+<div class="line"><a name="l02594"></a><span class="lineno"> 2594</span> </div>
+<div class="line"><a name="l02595"></a><span class="lineno"> 2595</span>     <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> i = 0, e = E-><a class="code" href="classclang_1_1StringLiteral.html#af2c46f51df665b6837c7d11cbb4a312c">getLength</a>(); i != e; ++i)</div>
+<div class="line"><a name="l02596"></a><span class="lineno"> 2596</span>       Elements.push_back(E-><a class="code" href="classclang_1_1StringLiteral.html#aaa05172236515550a9a3e41d4c152b92">getCodeUnit</a>(i));</div>
+<div class="line"><a name="l02597"></a><span class="lineno"> 2597</span>     Elements.resize(NumElements);</div>
+<div class="line"><a name="l02598"></a><span class="lineno"> 2598</span>     <span class="keywordflow">return</span> llvm::ConstantDataArray::get(VMContext, Elements);</div>
+<div class="line"><a name="l02599"></a><span class="lineno"> 2599</span>   }</div>
+<div class="line"><a name="l02600"></a><span class="lineno"> 2600</span>   </div>
+<div class="line"><a name="l02601"></a><span class="lineno"> 2601</span>   assert(ElemTy->getPrimitiveSizeInBits() == 32);</div>
+<div class="line"><a name="l02602"></a><span class="lineno"> 2602</span>   <a class="code" href="classllvm_1_1SmallVector.html">SmallVector<uint32_t, 32></a> Elements;</div>
+<div class="line"><a name="l02603"></a><span class="lineno"> 2603</span>   Elements.reserve(NumElements);</div>
+<div class="line"><a name="l02604"></a><span class="lineno"> 2604</span>   </div>
+<div class="line"><a name="l02605"></a><span class="lineno"> 2605</span>   <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> i = 0, e = E-><a class="code" href="classclang_1_1StringLiteral.html#af2c46f51df665b6837c7d11cbb4a312c">getLength</a>(); i != e; ++i)</div>
+<div class="line"><a name="l02606"></a><span class="lineno"> 2606</span>     Elements.push_back(E-><a class="code" href="classclang_1_1StringLiteral.html#aaa05172236515550a9a3e41d4c152b92">getCodeUnit</a>(i));</div>
+<div class="line"><a name="l02607"></a><span class="lineno"> 2607</span>   Elements.resize(NumElements);</div>
+<div class="line"><a name="l02608"></a><span class="lineno"> 2608</span>   <span class="keywordflow">return</span> llvm::ConstantDataArray::get(VMContext, Elements);</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> <span class="comment"></span></div>
+<div class="line"><a name="l02611"></a><span class="lineno"> 2611</span> <span class="comment">/// GetAddrOfConstantStringFromLiteral - Return a pointer to a</span></div>
+<div class="line"><a name="l02612"></a><span class="lineno"> 2612</span> <span class="comment">/// constant array for the given string literal.</span></div>
+<div class="line"><a name="l02613"></a><span class="lineno"> 2613</span> <span class="comment"></span>llvm::Constant *</div>
+<div class="line"><a name="l02614"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a396ff6eccf560fb925b31f7a9929fed4"> 2614</a></span> <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a396ff6eccf560fb925b31f7a9929fed4">CodeGenModule::GetAddrOfConstantStringFromLiteral</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1StringLiteral.html">StringLiteral</a> *S) {</div>
+<div class="line"><a name="l02615"></a><span class="lineno"> 2615</span>   <a class="code" href="classclang_1_1CharUnits.html">CharUnits</a> Align = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>().<a class="code" href="classclang_1_1ASTContext.html#a948784ae13b13a6fc97fbc9c109559b9" title="Return the alignment in characters that should be given to a global variable with type T...">getAlignOfGlobalVarInChars</a>(S-><a class="code" href="classclang_1_1Expr.html#a3dd8850a4ad8a5b5f595dd9e9446187b">getType</a>());</div>
+<div class="line"><a name="l02616"></a><span class="lineno"> 2616</span>   <span class="keywordflow">if</span> (S-><a class="code" href="classclang_1_1StringLiteral.html#a7de7620dc8a11dcd19cd60c2517a955d">isAscii</a>() || S-><a class="code" href="classclang_1_1StringLiteral.html#ac0deb02295b643313afb899b2b998675">isUTF8</a>()) {</div>
+<div class="line"><a name="l02617"></a><span class="lineno"> 2617</span>     <a class="code" href="classllvm_1_1SmallString.html">SmallString<64></a> Str(S-><a class="code" href="classclang_1_1StringLiteral.html#a5ac45571169396e74d296c733811a243">getString</a>());</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="comment">// Resize the string to the right size, which is indicated by its type.</span></div>
+<div class="line"><a name="l02620"></a><span class="lineno"> 2620</span>     <span class="keyword">const</span> <a class="code" href="classclang_1_1ConstantArrayType.html">ConstantArrayType</a> *CAT = Context.<a class="code" href="classclang_1_1ASTContext.html#a881d1a09f9d299e910aaa0b6c40a7780">getAsConstantArrayType</a>(S-><a class="code" href="classclang_1_1Expr.html#a3dd8850a4ad8a5b5f595dd9e9446187b">getType</a>());</div>
+<div class="line"><a name="l02621"></a><span class="lineno"> 2621</span>     Str.resize(CAT->getSize().getZExtValue());</div>
+<div class="line"><a name="l02622"></a><span class="lineno"> 2622</span>     <span class="keywordflow">return</span> <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ac3a9460bf085254088a74e1a64bed11b">GetAddrOfConstantString</a>(Str, <span class="comment">/*GlobalName*/</span> 0, Align.<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="l02623"></a><span class="lineno"> 2623</span>   }</div>
+<div class="line"><a name="l02624"></a><span class="lineno"> 2624</span> </div>
+<div class="line"><a name="l02625"></a><span class="lineno"> 2625</span>   <span class="comment">// FIXME: the following does not memoize wide strings.</span></div>
+<div class="line"><a name="l02626"></a><span class="lineno"> 2626</span>   llvm::Constant *C = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ac7972cf66efbbb2f95b42f42e63e0b37">GetConstantArrayFromStringLiteral</a>(S);</div>
+<div class="line"><a name="l02627"></a><span class="lineno"> 2627</span>   llvm::GlobalVariable *GV =</div>
+<div class="line"><a name="l02628"></a><span class="lineno"> 2628</span>     <span class="keyword">new</span> llvm::GlobalVariable(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a908409c9231b015784ca008fd6bcb961">getModule</a>(),C->getType(),</div>
+<div class="line"><a name="l02629"></a><span class="lineno"> 2629</span>                              !LangOpts.WritableStrings,</div>
+<div class="line"><a name="l02630"></a><span class="lineno"> 2630</span>                              llvm::GlobalValue::PrivateLinkage,</div>
+<div class="line"><a name="l02631"></a><span class="lineno"> 2631</span>                              C,<span class="stringliteral">".str"</span>);</div>
+<div class="line"><a name="l02632"></a><span class="lineno"> 2632</span> </div>
+<div class="line"><a name="l02633"></a><span class="lineno"> 2633</span>   GV->setAlignment(Align.<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="l02634"></a><span class="lineno"> 2634</span>   GV->setUnnamedAddr(<span class="keyword">true</span>);</div>
+<div class="line"><a name="l02635"></a><span class="lineno"> 2635</span>   <span class="keywordflow">return</span> GV;</div>
+<div class="line"><a name="l02636"></a><span class="lineno"> 2636</span> }</div>
+<div class="line"><a name="l02637"></a><span class="lineno"> 2637</span> <span class="comment"></span></div>
+<div class="line"><a name="l02638"></a><span class="lineno"> 2638</span> <span class="comment">/// GetAddrOfConstantStringFromObjCEncode - Return a pointer to a constant</span></div>
+<div class="line"><a name="l02639"></a><span class="lineno"> 2639</span> <span class="comment">/// array for the given ObjCEncodeExpr node.</span></div>
+<div class="line"><a name="l02640"></a><span class="lineno"> 2640</span> <span class="comment"></span>llvm::Constant *</div>
+<div class="line"><a name="l02641"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a60757eaf49a35b362296871c3a260ab0"> 2641</a></span> <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a60757eaf49a35b362296871c3a260ab0">CodeGenModule::GetAddrOfConstantStringFromObjCEncode</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCEncodeExpr.html">ObjCEncodeExpr</a> *E) {</div>
+<div class="line"><a name="l02642"></a><span class="lineno"> 2642</span>   std::string Str;</div>
+<div class="line"><a name="l02643"></a><span class="lineno"> 2643</span>   <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>().<a class="code" href="classclang_1_1ASTContext.html#a569fb528261328166e6851503ba82178" title="Emit the Objective-CC type encoding for the given type T into S.">getObjCEncodingForType</a>(E-><a class="code" href="classclang_1_1ObjCEncodeExpr.html#af09d4edc96995177a4931a9143afed32">getEncodedType</a>(), Str);</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>   <span class="keywordflow">return</span> <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a2dee53e72ceb4a881d1afa41d9e04450">GetAddrOfConstantCString</a>(Str);</div>
+<div class="line"><a name="l02646"></a><span class="lineno"> 2646</span> }</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="comment"></span></div>
+<div class="line"><a name="l02649"></a><span class="lineno"> 2649</span> <span class="comment">/// GenerateWritableString -- Creates storage for a string literal.</span></div>
+<div class="line"><a name="l02650"></a><span class="lineno"><a class="code" href="CodeGenModule_8cpp.html#abb051f479f30e23bb8337ea4d09c8d67"> 2650</a></span> <span class="comment"></span><span class="keyword">static</span> llvm::GlobalVariable *<a class="code" href="CodeGenModule_8cpp.html#abb051f479f30e23bb8337ea4d09c8d67" title="GenerateWritableString – Creates storage for a string literal.">GenerateStringLiteral</a>(StringRef str,</div>
+<div class="line"><a name="l02651"></a><span class="lineno"> 2651</span>                                              <span class="keywordtype">bool</span> constant,</div>
+<div class="line"><a name="l02652"></a><span class="lineno"> 2652</span>                                              <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html">CodeGenModule</a> &CGM,</div>
+<div class="line"><a name="l02653"></a><span class="lineno"> 2653</span>                                              <span class="keyword">const</span> <span class="keywordtype">char</span> *GlobalName,</div>
+<div class="line"><a name="l02654"></a><span class="lineno"> 2654</span>                                              <span class="keywordtype">unsigned</span> Alignment) {</div>
+<div class="line"><a name="l02655"></a><span class="lineno"> 2655</span>   <span class="comment">// Create Constant for this string literal. Don't add a '\0'.</span></div>
+<div class="line"><a name="l02656"></a><span class="lineno"> 2656</span>   llvm::Constant *C =</div>
+<div class="line"><a name="l02657"></a><span class="lineno"> 2657</span>       llvm::ConstantDataArray::getString(CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a6c8cff399ad98c730cce0907b1acd44e">getLLVMContext</a>(), str, <span class="keyword">false</span>);</div>
+<div class="line"><a name="l02658"></a><span class="lineno"> 2658</span> </div>
+<div class="line"><a name="l02659"></a><span class="lineno"> 2659</span>   <span class="comment">// OpenCL v1.1 s6.5.3: a string literal is in the constant address space.</span></div>
+<div class="line"><a name="l02660"></a><span class="lineno"> 2660</span>   <span class="keywordtype">unsigned</span> AddrSpace = 0;</div>
+<div class="line"><a name="l02661"></a><span class="lineno"> 2661</span>   <span class="keywordflow">if</span> (CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#abae1594027ce284ce5b7f06c66d24ea7">getLangOpts</a>().OpenCL)</div>
+<div class="line"><a name="l02662"></a><span class="lineno"> 2662</span>     AddrSpace = CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>().<a class="code" href="classclang_1_1ASTContext.html#aed2e4aedb5a9fafd8bd586349f1b9f6f">getTargetAddressSpace</a>(<a class="code" href="namespaceclang_1_1LangAS.html#a78ee38b55acb7cc806cb61e6d2a9f960a550f6bebb117bdf4da90cc288cf5ddc8">LangAS::opencl_constant</a>);</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>   <span class="comment">// Create a global variable for this string</span></div>
+<div class="line"><a name="l02665"></a><span class="lineno"> 2665</span>   llvm::GlobalVariable *GV = <span class="keyword">new</span> llvm::GlobalVariable(</div>
+<div class="line"><a name="l02666"></a><span class="lineno"> 2666</span>       CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a908409c9231b015784ca008fd6bcb961">getModule</a>(), C->getType(), constant,</div>
+<div class="line"><a name="l02667"></a><span class="lineno"> 2667</span>       llvm::GlobalValue::PrivateLinkage, C, GlobalName, 0,</div>
+<div class="line"><a name="l02668"></a><span class="lineno"> 2668</span>       llvm::GlobalVariable::NotThreadLocal, AddrSpace);</div>
+<div class="line"><a name="l02669"></a><span class="lineno"> 2669</span>   GV->setAlignment(Alignment);</div>
+<div class="line"><a name="l02670"></a><span class="lineno"> 2670</span>   GV->setUnnamedAddr(<span class="keyword">true</span>);</div>
+<div class="line"><a name="l02671"></a><span class="lineno"> 2671</span>   <span class="keywordflow">return</span> GV;</div>
+<div class="line"><a name="l02672"></a><span class="lineno"> 2672</span> }</div>
+<div class="line"><a name="l02673"></a><span class="lineno"> 2673</span> <span class="comment"></span></div>
+<div class="line"><a name="l02674"></a><span class="lineno"> 2674</span> <span class="comment">/// GetAddrOfConstantString - Returns a pointer to a character array</span></div>
+<div class="line"><a name="l02675"></a><span class="lineno"> 2675</span> <span class="comment">/// containing the literal. This contents are exactly that of the</span></div>
+<div class="line"><a name="l02676"></a><span class="lineno"> 2676</span> <span class="comment">/// given string, i.e. it will not be null terminated automatically;</span></div>
+<div class="line"><a name="l02677"></a><span class="lineno"> 2677</span> <span class="comment">/// see GetAddrOfConstantCString. Note that whether the result is</span></div>
+<div class="line"><a name="l02678"></a><span class="lineno"> 2678</span> <span class="comment">/// actually a pointer to an LLVM constant depends on</span></div>
+<div class="line"><a name="l02679"></a><span class="lineno"> 2679</span> <span class="comment">/// Feature.WriteableStrings.</span></div>
+<div class="line"><a name="l02680"></a><span class="lineno"> 2680</span> <span class="comment">///</span></div>
+<div class="line"><a name="l02681"></a><span class="lineno"> 2681</span> <span class="comment">/// The result has pointer to array type.</span></div>
+<div class="line"><a name="l02682"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a47bd8c1a298ec026f2e5c0a4640508a7"> 2682</a></span> <span class="comment"></span>llvm::Constant *<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ac3a9460bf085254088a74e1a64bed11b">CodeGenModule::GetAddrOfConstantString</a>(StringRef Str,</div>
+<div class="line"><a name="l02683"></a><span class="lineno"> 2683</span>                                                        <span class="keyword">const</span> <span class="keywordtype">char</span> *GlobalName,</div>
+<div class="line"><a name="l02684"></a><span class="lineno"> 2684</span>                                                        <span class="keywordtype">unsigned</span> Alignment) {</div>
+<div class="line"><a name="l02685"></a><span class="lineno"> 2685</span>   <span class="comment">// Get the default prefix if a name wasn't specified.</span></div>
+<div class="line"><a name="l02686"></a><span class="lineno"> 2686</span>   <span class="keywordflow">if</span> (!GlobalName)</div>
+<div class="line"><a name="l02687"></a><span class="lineno"> 2687</span>     GlobalName = <span class="stringliteral">".str"</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="keywordflow">if</span> (Alignment == 0)</div>
+<div class="line"><a name="l02690"></a><span class="lineno"> 2690</span>     Alignment = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>().<a class="code" href="classclang_1_1ASTContext.html#a948784ae13b13a6fc97fbc9c109559b9" title="Return the alignment in characters that should be given to a global variable with type T...">getAlignOfGlobalVarInChars</a>(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>().CharTy)</div>
+<div class="line"><a name="l02691"></a><span class="lineno"> 2691</span>       .<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="l02692"></a><span class="lineno"> 2692</span> </div>
+<div class="line"><a name="l02693"></a><span class="lineno"> 2693</span>   <span class="comment">// Don't share any string literals if strings aren't constant.</span></div>
+<div class="line"><a name="l02694"></a><span class="lineno"> 2694</span>   <span class="keywordflow">if</span> (LangOpts.WritableStrings)</div>
+<div class="line"><a name="l02695"></a><span class="lineno"> 2695</span>     <span class="keywordflow">return</span> <a class="code" href="CodeGenModule_8cpp.html#abb051f479f30e23bb8337ea4d09c8d67" title="GenerateWritableString – Creates storage for a string literal.">GenerateStringLiteral</a>(Str, <span class="keyword">false</span>, *<span class="keyword">this</span>, GlobalName, Alignment);</div>
+<div class="line"><a name="l02696"></a><span class="lineno"> 2696</span> </div>
+<div class="line"><a name="l02697"></a><span class="lineno"> 2697</span>   llvm::StringMapEntry<llvm::GlobalVariable *> &Entry =</div>
+<div class="line"><a name="l02698"></a><span class="lineno"> 2698</span>     ConstantStringMap.GetOrCreateValue(Str);</div>
+<div class="line"><a name="l02699"></a><span class="lineno"> 2699</span> </div>
+<div class="line"><a name="l02700"></a><span class="lineno"> 2700</span>   <span class="keywordflow">if</span> (llvm::GlobalVariable *GV = Entry.getValue()) {</div>
+<div class="line"><a name="l02701"></a><span class="lineno"> 2701</span>     <span class="keywordflow">if</span> (Alignment > GV->getAlignment()) {</div>
+<div class="line"><a name="l02702"></a><span class="lineno"> 2702</span>       GV->setAlignment(Alignment);</div>
+<div class="line"><a name="l02703"></a><span class="lineno"> 2703</span>     }</div>
+<div class="line"><a name="l02704"></a><span class="lineno"> 2704</span>     <span class="keywordflow">return</span> GV;</div>
+<div class="line"><a name="l02705"></a><span class="lineno"> 2705</span>   }</div>
+<div class="line"><a name="l02706"></a><span class="lineno"> 2706</span> </div>
+<div class="line"><a name="l02707"></a><span class="lineno"> 2707</span>   <span class="comment">// Create a global variable for this.</span></div>
+<div class="line"><a name="l02708"></a><span class="lineno"> 2708</span>   llvm::GlobalVariable *GV = <a class="code" href="CodeGenModule_8cpp.html#abb051f479f30e23bb8337ea4d09c8d67" title="GenerateWritableString – Creates storage for a string literal.">GenerateStringLiteral</a>(Str, <span class="keyword">true</span>, *<span class="keyword">this</span>, GlobalName,</div>
+<div class="line"><a name="l02709"></a><span class="lineno"> 2709</span>                                                    Alignment);</div>
+<div class="line"><a name="l02710"></a><span class="lineno"> 2710</span>   Entry.setValue(GV);</div>
+<div class="line"><a name="l02711"></a><span class="lineno"> 2711</span>   <span class="keywordflow">return</span> GV;</div>
+<div class="line"><a name="l02712"></a><span class="lineno"> 2712</span> }</div>
+<div class="line"><a name="l02713"></a><span class="lineno"> 2713</span> <span class="comment"></span></div>
+<div class="line"><a name="l02714"></a><span class="lineno"> 2714</span> <span class="comment">/// GetAddrOfConstantCString - Returns a pointer to a character</span></div>
+<div class="line"><a name="l02715"></a><span class="lineno"> 2715</span> <span class="comment">/// array containing the literal and a terminating '\0'</span></div>
+<div class="line"><a name="l02716"></a><span class="lineno"> 2716</span> <span class="comment">/// character. The result has pointer to array type.</span></div>
+<div class="line"><a name="l02717"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a2dee53e72ceb4a881d1afa41d9e04450"> 2717</a></span> <span class="comment"></span>llvm::Constant *<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a2dee53e72ceb4a881d1afa41d9e04450">CodeGenModule::GetAddrOfConstantCString</a>(<span class="keyword">const</span> std::string &Str,</div>
+<div class="line"><a name="l02718"></a><span class="lineno"> 2718</span>                                                         <span class="keyword">const</span> <span class="keywordtype">char</span> *GlobalName,</div>
+<div class="line"><a name="l02719"></a><span class="lineno"> 2719</span>                                                         <span class="keywordtype">unsigned</span> Alignment) {</div>
+<div class="line"><a name="l02720"></a><span class="lineno"> 2720</span>   StringRef StrWithNull(Str.c_str(), Str.size() + 1);</div>
+<div class="line"><a name="l02721"></a><span class="lineno"> 2721</span>   <span class="keywordflow">return</span> <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ac3a9460bf085254088a74e1a64bed11b">GetAddrOfConstantString</a>(StrWithNull, GlobalName, Alignment);</div>
+<div class="line"><a name="l02722"></a><span class="lineno"> 2722</span> }</div>
+<div class="line"><a name="l02723"></a><span class="lineno"> 2723</span> </div>
+<div class="line"><a name="l02724"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a74cee3ccbf44fbf4d39fe591ed867164"> 2724</a></span> llvm::Constant *<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a74cee3ccbf44fbf4d39fe591ed867164" title="Returns a pointer to a global variable representing a temporary with static or thread storage duratio...">CodeGenModule::GetAddrOfGlobalTemporary</a>(</div>
+<div class="line"><a name="l02725"></a><span class="lineno"> 2725</span>     <span class="keyword">const</span> <a class="code" href="classclang_1_1MaterializeTemporaryExpr.html" title="Represents a prvalue temporary that is written into memory so that a reference can bind to it...">MaterializeTemporaryExpr</a> *E, <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *Init) {</div>
+<div class="line"><a name="l02726"></a><span class="lineno"> 2726</span>   assert((E-><a class="code" href="classclang_1_1MaterializeTemporaryExpr.html#a0ea2768a1fdcf2045facd45195914ec9" title="Retrieve the storage duration for the materialized temporary.">getStorageDuration</a>() == <a class="code" href="namespaceclang.html#a73616c07a633e772603049315dc55554a7495dcf7f33e44049d18217454dba7c0" title="Static storage duration.">SD_Static</a> ||</div>
+<div class="line"><a name="l02727"></a><span class="lineno"> 2727</span>           E-><a class="code" href="classclang_1_1MaterializeTemporaryExpr.html#a0ea2768a1fdcf2045facd45195914ec9" title="Retrieve the storage duration for the materialized temporary.">getStorageDuration</a>() == <a class="code" href="namespaceclang.html#a73616c07a633e772603049315dc55554a2ecb65725835b618ecc18f8dfb75b4c3" title="Thread storage duration.">SD_Thread</a>) && <span class="stringliteral">"not a global temporary"</span>);</div>
+<div class="line"><a name="l02728"></a><span class="lineno"> 2728</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1VarDecl.html">VarDecl</a> *VD = cast<VarDecl>(E-><a class="code" href="classclang_1_1MaterializeTemporaryExpr.html#a6bb602a3bf28791e92120f3d6d8d95cf" title="Get the declaration which triggered the lifetime-extension of this temporary, if any.">getExtendingDecl</a>());</div>
+<div class="line"><a name="l02729"></a><span class="lineno"> 2729</span> </div>
+<div class="line"><a name="l02730"></a><span class="lineno"> 2730</span>   <span class="comment">// If we're not materializing a subobject of the temporary, keep the</span></div>
+<div class="line"><a name="l02731"></a><span class="lineno"> 2731</span>   <span class="comment">// cv-qualifiers from the type of the MaterializeTemporaryExpr.</span></div>
+<div class="line"><a name="l02732"></a><span class="lineno"> 2732</span>   <a class="code" href="classclang_1_1QualType.html">QualType</a> MaterializedType = Init-><a class="code" href="classclang_1_1Expr.html#a3dd8850a4ad8a5b5f595dd9e9446187b">getType</a>();</div>
+<div class="line"><a name="l02733"></a><span class="lineno"> 2733</span>   <span class="keywordflow">if</span> (Init == E-><a class="code" href="classclang_1_1MaterializeTemporaryExpr.html#a5dd4b02d9bf3c32392d3e99355165fc1" title="Retrieve the temporary-generating subexpression whose value will be materialized into a glvalue...">GetTemporaryExpr</a>())</div>
+<div class="line"><a name="l02734"></a><span class="lineno"> 2734</span>     MaterializedType = E-><a class="code" href="classclang_1_1Expr.html#a3dd8850a4ad8a5b5f595dd9e9446187b">getType</a>();</div>
+<div class="line"><a name="l02735"></a><span class="lineno"> 2735</span> </div>
+<div class="line"><a name="l02736"></a><span class="lineno"> 2736</span>   llvm::Constant *&Slot = MaterializedGlobalTemporaryMap[E];</div>
+<div class="line"><a name="l02737"></a><span class="lineno"> 2737</span>   <span class="keywordflow">if</span> (Slot)</div>
+<div class="line"><a name="l02738"></a><span class="lineno"> 2738</span>     <span class="keywordflow">return</span> Slot;</div>
+<div class="line"><a name="l02739"></a><span class="lineno"> 2739</span> </div>
+<div class="line"><a name="l02740"></a><span class="lineno"> 2740</span>   <span class="comment">// FIXME: If an externally-visible declaration extends multiple temporaries,</span></div>
+<div class="line"><a name="l02741"></a><span class="lineno"> 2741</span>   <span class="comment">// we need to give each temporary the same name in every translation unit (and</span></div>
+<div class="line"><a name="l02742"></a><span class="lineno"> 2742</span>   <span class="comment">// we also need to make the temporaries externally-visible).</span></div>
+<div class="line"><a name="l02743"></a><span class="lineno"> 2743</span>   <a class="code" href="classllvm_1_1SmallString.html">SmallString<256></a> Name;</div>
+<div class="line"><a name="l02744"></a><span class="lineno"> 2744</span>   llvm::raw_svector_ostream Out(Name);</div>
+<div class="line"><a name="l02745"></a><span class="lineno"> 2745</span>   <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#abcced6119cfc90ff6332ec96766ff70a">getCXXABI</a>().<a class="code" href="classclang_1_1CodeGen_1_1CGCXXABI.html#a81a311530d5d52bac2afe472091b3e6b" title="Gets the mangle context.">getMangleContext</a>().<a class="code" href="classclang_1_1MangleContext.html#a85eafbe1cd1c218f67f0c7e185220571">mangleReferenceTemporary</a>(VD, Out);</div>
+<div class="line"><a name="l02746"></a><span class="lineno"> 2746</span>   Out.flush();</div>
+<div class="line"><a name="l02747"></a><span class="lineno"> 2747</span> </div>
+<div class="line"><a name="l02748"></a><span class="lineno"> 2748</span>   <a class="code" href="classclang_1_1APValue.html">APValue</a> *<a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">Value</a> = 0;</div>
+<div class="line"><a name="l02749"></a><span class="lineno"> 2749</span>   <span class="keywordflow">if</span> (E-><a class="code" href="classclang_1_1MaterializeTemporaryExpr.html#a0ea2768a1fdcf2045facd45195914ec9" title="Retrieve the storage duration for the materialized temporary.">getStorageDuration</a>() == <a class="code" href="namespaceclang.html#a73616c07a633e772603049315dc55554a7495dcf7f33e44049d18217454dba7c0" title="Static storage duration.">SD_Static</a>) {</div>
+<div class="line"><a name="l02750"></a><span class="lineno"> 2750</span>     <span class="comment">// We might have a cached constant initializer for this temporary. Note</span></div>
+<div class="line"><a name="l02751"></a><span class="lineno"> 2751</span>     <span class="comment">// that this might have a different value from the value computed by</span></div>
+<div class="line"><a name="l02752"></a><span class="lineno"> 2752</span>     <span class="comment">// evaluating the initializer if the surrounding constant expression</span></div>
+<div class="line"><a name="l02753"></a><span class="lineno"> 2753</span>     <span class="comment">// modifies the temporary.</span></div>
+<div class="line"><a name="l02754"></a><span class="lineno"> 2754</span>     Value = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>().<a class="code" href="classclang_1_1ASTContext.html#ad3ef16c3b0fda5c095c58e788b49edbd" title="Get the storage for the constant value of a materialized temporary of static storage duration...">getMaterializedTemporaryValue</a>(E, <span class="keyword">false</span>);</div>
+<div class="line"><a name="l02755"></a><span class="lineno"> 2755</span>     <span class="keywordflow">if</span> (Value && Value-><a class="code" href="classclang_1_1APValue.html#a4717d55a23b4978d34a6f7c15b201336">isUninit</a>())</div>
+<div class="line"><a name="l02756"></a><span class="lineno"> 2756</span>       Value = 0;</div>
+<div class="line"><a name="l02757"></a><span class="lineno"> 2757</span>   }</div>
+<div class="line"><a name="l02758"></a><span class="lineno"> 2758</span> </div>
+<div class="line"><a name="l02759"></a><span class="lineno"> 2759</span>   <span class="comment">// Try evaluating it now, it might have a constant initializer.</span></div>
+<div class="line"><a name="l02760"></a><span class="lineno"> 2760</span>   <a class="code" href="structclang_1_1Expr_1_1EvalResult.html" title="EvalResult is a struct with detailed info about an evaluated expression.">Expr::EvalResult</a> EvalResult;</div>
+<div class="line"><a name="l02761"></a><span class="lineno"> 2761</span>   <span class="keywordflow">if</span> (!Value && Init-><a class="code" href="classclang_1_1Expr.html#a5fec5e9213f025021afd2d2a87b2d02a">EvaluateAsRValue</a>(EvalResult, <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>()) &&</div>
+<div class="line"><a name="l02762"></a><span class="lineno"> 2762</span>       !EvalResult.<a class="code" href="structclang_1_1Expr_1_1EvalStatus.html#ad884bda9144213a566df624aeb75d54f">hasSideEffects</a>())</div>
+<div class="line"><a name="l02763"></a><span class="lineno"> 2763</span>     Value = &EvalResult.<a class="code" href="structclang_1_1Expr_1_1EvalResult.html#a94083629a969e7faa7812eb84a7ecd24" title="Val - This is the value the expression can be folded to.">Val</a>;</div>
+<div class="line"><a name="l02764"></a><span class="lineno"> 2764</span> </div>
+<div class="line"><a name="l02765"></a><span class="lineno"> 2765</span>   llvm::Constant *InitialValue = 0;</div>
+<div class="line"><a name="l02766"></a><span class="lineno"> 2766</span>   <span class="keywordtype">bool</span> Constant = <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02767"></a><span class="lineno"> 2767</span>   llvm::Type *<a class="code" href="classclang_1_1Type.html">Type</a>;</div>
+<div class="line"><a name="l02768"></a><span class="lineno"> 2768</span>   <a class="code" href="mm__malloc_8h.html#a682140772a1d7d2744289e6abb2ad2ff">if</a> (Value) {</div>
+<div class="line"><a name="l02769"></a><span class="lineno"> 2769</span>     <span class="comment">// The temporary has a constant initializer, use it.</span></div>
+<div class="line"><a name="l02770"></a><span class="lineno"> 2770</span>     InitialValue = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a97e0aa3c286413a5a233969425bb9dda">EmitConstantValue</a>(*Value, MaterializedType, 0);</div>
+<div class="line"><a name="l02771"></a><span class="lineno"> 2771</span>     Constant = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a5b6f8d1596aefe7cb9b5ee206494353a">isTypeConstant</a>(MaterializedType, <span class="comment">/*ExcludeCtor*/</span>Value);</div>
+<div class="line"><a name="l02772"></a><span class="lineno"> 2772</span>     <a class="code" href="classclang_1_1Type.html">Type</a> = InitialValue->getType();</div>
+<div class="line"><a name="l02773"></a><span class="lineno"> 2773</span>   } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l02774"></a><span class="lineno"> 2774</span>     <span class="comment">// No initializer, the initialization will be provided when we</span></div>
+<div class="line"><a name="l02775"></a><span class="lineno"> 2775</span>     <span class="comment">// initialize the declaration which performed lifetime extension.</span></div>
+<div class="line"><a name="l02776"></a><span class="lineno"> 2776</span>     <a class="code" href="classclang_1_1Type.html">Type</a> = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a1325760f10142c1da8521b53734858ef">getTypes</a>().<a class="code" href="classclang_1_1CodeGen_1_1CodeGenTypes.html#a9e549d382da897b9d23ed3e2c65e6cf7">ConvertTypeForMem</a>(MaterializedType);</div>
+<div class="line"><a name="l02777"></a><span class="lineno"> 2777</span>   }</div>
+<div class="line"><a name="l02778"></a><span class="lineno"> 2778</span> </div>
+<div class="line"><a name="l02779"></a><span class="lineno"> 2779</span>   <span class="comment">// Create a global variable for this lifetime-extended temporary.</span></div>
+<div class="line"><a name="l02780"></a><span class="lineno"> 2780</span>   llvm::GlobalVariable *GV =</div>
+<div class="line"><a name="l02781"></a><span class="lineno"> 2781</span>     <span class="keyword">new</span> llvm::GlobalVariable(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a908409c9231b015784ca008fd6bcb961">getModule</a>(), <a class="code" href="classclang_1_1Type.html">Type</a>, Constant,</div>
+<div class="line"><a name="l02782"></a><span class="lineno"> 2782</span>                              llvm::GlobalValue::PrivateLinkage,</div>
+<div class="line"><a name="l02783"></a><span class="lineno"> 2783</span>                              InitialValue, Name.c_str());</div>
+<div class="line"><a name="l02784"></a><span class="lineno"> 2784</span>   GV->setAlignment(</div>
+<div class="line"><a name="l02785"></a><span class="lineno"> 2785</span>       <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>().getTypeAlignInChars(MaterializedType).getQuantity());</div>
+<div class="line"><a name="l02786"></a><span class="lineno"> 2786</span>   <span class="keywordflow">if</span> (VD-><a class="code" href="classclang_1_1VarDecl.html#ae704b725af5821356581f7857a2a2761">getTLSKind</a>())</div>
+<div class="line"><a name="l02787"></a><span class="lineno"> 2787</span>     <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a3313f5aef8fbe8be6470e22325ae7fa4">setTLSMode</a>(GV, *VD);</div>
+<div class="line"><a name="l02788"></a><span class="lineno"> 2788</span>   Slot = GV;</div>
+<div class="line"><a name="l02789"></a><span class="lineno"> 2789</span>   <span class="keywordflow">return</span> GV;</div>
+<div class="line"><a name="l02790"></a><span class="lineno"> 2790</span> }</div>
+<div class="line"><a name="l02791"></a><span class="lineno"> 2791</span> <span class="comment"></span></div>
+<div class="line"><a name="l02792"></a><span class="lineno"> 2792</span> <span class="comment">/// EmitObjCPropertyImplementations - Emit information for synthesized</span></div>
+<div class="line"><a name="l02793"></a><span class="lineno"> 2793</span> <span class="comment">/// properties for an implementation.</span></div>
+<div class="line"><a name="l02794"></a><span class="lineno"> 2794</span> <span class="comment"></span><span class="keywordtype">void</span> CodeGenModule::EmitObjCPropertyImplementations(<span class="keyword">const</span></div>
+<div class="line"><a name="l02795"></a><span class="lineno"> 2795</span>                                                     <a class="code" href="classclang_1_1ObjCImplementationDecl.html">ObjCImplementationDecl</a> *D) {</div>
+<div class="line"><a name="l02796"></a><span class="lineno"> 2796</span>   <span class="keywordflow">for</span> (<a class="code" href="classclang_1_1DeclContext_1_1specific__decl__iterator.html">ObjCImplementationDecl::propimpl_iterator</a></div>
+<div class="line"><a name="l02797"></a><span class="lineno"> 2797</span>          i = D-><a class="code" href="classclang_1_1ObjCImplDecl.html#a7ee14e0eeb28f7f7b2c99a5be2f95b8e">propimpl_begin</a>(), e = D-><a class="code" href="classclang_1_1ObjCImplDecl.html#aa2eeebdf41b3d382f99db40c4017b1aa">propimpl_end</a>(); i != e; ++i) {</div>
+<div class="line"><a name="l02798"></a><span class="lineno"> 2798</span>     <a class="code" href="classclang_1_1ObjCPropertyImplDecl.html">ObjCPropertyImplDecl</a> *PID = *i;</div>
+<div class="line"><a name="l02799"></a><span class="lineno"> 2799</span> </div>
+<div class="line"><a name="l02800"></a><span class="lineno"> 2800</span>     <span class="comment">// Dynamic is just for type-checking.</span></div>
+<div class="line"><a name="l02801"></a><span class="lineno"> 2801</span>     <span class="keywordflow">if</span> (PID-><a class="code" href="classclang_1_1ObjCPropertyImplDecl.html#a2abe69de01c6e7b1b74edb61a704032a">getPropertyImplementation</a>() == <a class="code" href="classclang_1_1ObjCPropertyImplDecl.html#acdb7be10674a19eac70b6bdb1face435af3f0447ab9b01f3502acb005d2908334">ObjCPropertyImplDecl::Synthesize</a>) {</div>
+<div class="line"><a name="l02802"></a><span class="lineno"> 2802</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="l02803"></a><span class="lineno"> 2803</span> </div>
+<div class="line"><a name="l02804"></a><span class="lineno"> 2804</span>       <span class="comment">// Determine which methods need to be implemented, some may have</span></div>
+<div class="line"><a name="l02805"></a><span class="lineno"> 2805</span>       <span class="comment">// been overridden. Note that ::isPropertyAccessor is not the method</span></div>
+<div class="line"><a name="l02806"></a><span class="lineno"> 2806</span>       <span class="comment">// we want, that just indicates if the decl came from a</span></div>
+<div class="line"><a name="l02807"></a><span class="lineno"> 2807</span>       <span class="comment">// property. What we want to know is if the method is defined in</span></div>
+<div class="line"><a name="l02808"></a><span class="lineno"> 2808</span>       <span class="comment">// this implementation.</span></div>
+<div class="line"><a name="l02809"></a><span class="lineno"> 2809</span>       <span class="keywordflow">if</span> (!D-><a class="code" href="classclang_1_1ObjCContainerDecl.html#ad21a2708e21290c6e337bd26ce364ca5">getInstanceMethod</a>(PD-><a class="code" href="classclang_1_1ObjCPropertyDecl.html#a403f7866008e173bf1346ccef5221f99">getGetterName</a>()))</div>
+<div class="line"><a name="l02810"></a><span class="lineno"> 2810</span>         <a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGenFunction</a>(*this).<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a61601341e3d45b841fdecbe48517bca8" title="GenerateObjCGetter - Synthesize an Objective-C property getter function.">GenerateObjCGetter</a>(</div>
+<div class="line"><a name="l02811"></a><span class="lineno"> 2811</span>                                  const_cast<ObjCImplementationDecl *>(D), PID);</div>
+<div class="line"><a name="l02812"></a><span class="lineno"> 2812</span>       <span class="keywordflow">if</span> (!PD-><a class="code" href="classclang_1_1ObjCPropertyDecl.html#a66d0a870cb7a45e334f4400956781dbf" title="isReadOnly - Return true iff the property has a setter.">isReadOnly</a>() &&</div>
+<div class="line"><a name="l02813"></a><span class="lineno"> 2813</span>           !D-><a class="code" href="classclang_1_1ObjCContainerDecl.html#ad21a2708e21290c6e337bd26ce364ca5">getInstanceMethod</a>(PD-><a class="code" href="classclang_1_1ObjCPropertyDecl.html#aa7d97f612763f8d63f2b4571c14d14f3">getSetterName</a>()))</div>
+<div class="line"><a name="l02814"></a><span class="lineno"> 2814</span>         <a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGenFunction</a>(*this).<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#abd650cdb47806bf1336d2a170c190b5e" title="Generate an Objective-C property setter function.">GenerateObjCSetter</a>(</div>
+<div class="line"><a name="l02815"></a><span class="lineno"> 2815</span>                                  const_cast<ObjCImplementationDecl *>(D), PID);</div>
+<div class="line"><a name="l02816"></a><span class="lineno"> 2816</span>     }</div>
+<div class="line"><a name="l02817"></a><span class="lineno"> 2817</span>   }</div>
+<div class="line"><a name="l02818"></a><span class="lineno"> 2818</span> }</div>
+<div class="line"><a name="l02819"></a><span class="lineno"> 2819</span> </div>
+<div class="line"><a name="l02820"></a><span class="lineno"><a class="code" href="CodeGenModule_8cpp.html#a81faa38c322d3f96afe583c2abe44186"> 2820</a></span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="CodeGenModule_8cpp.html#a81faa38c322d3f96afe583c2abe44186">needsDestructMethod</a>(<a class="code" href="classclang_1_1ObjCImplementationDecl.html">ObjCImplementationDecl</a> *impl) {</div>
+<div class="line"><a name="l02821"></a><span class="lineno"> 2821</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCInterfaceDecl.html" title="Represents an ObjC class declaration.">ObjCInterfaceDecl</a> *iface = impl-><a class="code" href="classclang_1_1ObjCImplDecl.html#ae3c6fb728fe5a7aee81ca394470493c4">getClassInterface</a>();</div>
+<div class="line"><a name="l02822"></a><span class="lineno"> 2822</span>   <span class="keywordflow">for</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1ObjCIvarDecl.html">ObjCIvarDecl</a> *ivar = iface-><a class="code" href="classclang_1_1ObjCInterfaceDecl.html#a33ad0524e4d449655e216893b85910e2">all_declared_ivar_begin</a>();</div>
+<div class="line"><a name="l02823"></a><span class="lineno"> 2823</span>        ivar; ivar = ivar-><a class="code" href="classclang_1_1ObjCIvarDecl.html#ad4e167798de561f182d039520eb90b29">getNextIvar</a>())</div>
+<div class="line"><a name="l02824"></a><span class="lineno"> 2824</span>     <span class="keywordflow">if</span> (ivar->getType().isDestructedType())</div>
+<div class="line"><a name="l02825"></a><span class="lineno"> 2825</span>       <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l02826"></a><span class="lineno"> 2826</span> </div>
+<div class="line"><a name="l02827"></a><span class="lineno"> 2827</span>   <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02828"></a><span class="lineno"> 2828</span> }</div>
+<div class="line"><a name="l02829"></a><span class="lineno"> 2829</span> <span class="comment"></span></div>
+<div class="line"><a name="l02830"></a><span class="lineno"> 2830</span> <span class="comment">/// EmitObjCIvarInitializations - Emit information for ivar initialization</span></div>
+<div class="line"><a name="l02831"></a><span class="lineno"> 2831</span> <span class="comment">/// for an implementation.</span></div>
+<div class="line"><a name="l02832"></a><span class="lineno"> 2832</span> <span class="comment"></span><span class="keywordtype">void</span> CodeGenModule::EmitObjCIvarInitializations(<a class="code" href="classclang_1_1ObjCImplementationDecl.html">ObjCImplementationDecl</a> *D) {</div>
+<div class="line"><a name="l02833"></a><span class="lineno"> 2833</span>   <span class="comment">// We might need a .cxx_destruct even if we don't have any ivar initializers.</span></div>
+<div class="line"><a name="l02834"></a><span class="lineno"> 2834</span>   <span class="keywordflow">if</span> (<a class="code" href="CodeGenModule_8cpp.html#a81faa38c322d3f96afe583c2abe44186">needsDestructMethod</a>(D)) {</div>
+<div class="line"><a name="l02835"></a><span class="lineno"> 2835</span>     <a class="code" href="classclang_1_1IdentifierInfo.html">IdentifierInfo</a> *II = &<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">".cxx_destruct"</span>);</div>
+<div class="line"><a name="l02836"></a><span class="lineno"> 2836</span>     <a class="code" href="classclang_1_1Selector.html" title="Smart pointer class that efficiently represents Objective-C method names.">Selector</a> cxxSelector = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>().<a class="code" href="classclang_1_1ASTContext.html#a544656d98576ff2c1adb3e61a038e5b2">Selectors</a>.<a class="code" href="classclang_1_1SelectorTable.html#aae4996e6370b3c39722a757eb37b38b8" title="Can create any sort of selector.">getSelector</a>(0, &II);</div>
+<div class="line"><a name="l02837"></a><span class="lineno"> 2837</span>     <a class="code" href="classclang_1_1ObjCMethodDecl.html">ObjCMethodDecl</a> *DTORMethod =</div>
+<div class="line"><a name="l02838"></a><span class="lineno"> 2838</span>       <a class="code" href="classclang_1_1ObjCMethodDecl.html#ad3e3e73fa88f08cb8b769f4614cdb237">ObjCMethodDecl::Create</a>(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>(), D-><a class="code" href="classclang_1_1Decl.html#a2348196ac4e0b1d5ebb1859c31b99eac">getLocation</a>(), D-><a class="code" href="classclang_1_1Decl.html#a2348196ac4e0b1d5ebb1859c31b99eac">getLocation</a>(),</div>
+<div class="line"><a name="l02839"></a><span class="lineno"> 2839</span>                              cxxSelector, <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>().<a class="code" href="classclang_1_1ASTContext.html#aaa9dd0ebd4ff2e55c572f5718b7af508">VoidTy</a>, 0, D,</div>
+<div class="line"><a name="l02840"></a><span class="lineno"> 2840</span>                              <span class="comment">/*isInstance=*/</span><span class="keyword">true</span>, <span class="comment">/*isVariadic=*/</span><span class="keyword">false</span>,</div>
+<div class="line"><a name="l02841"></a><span class="lineno"> 2841</span>                           <span class="comment">/*isPropertyAccessor=*/</span><span class="keyword">true</span>, <span class="comment">/*isImplicitlyDeclared=*/</span><span class="keyword">true</span>,</div>
+<div class="line"><a name="l02842"></a><span class="lineno"> 2842</span>                              <span class="comment">/*isDefined=*/</span><span class="keyword">false</span>, <a class="code" href="classclang_1_1ObjCMethodDecl.html#a542f187aaa0c0781b19ead8e71198abea703b6cb86335709a7f15e1df6932b1bb">ObjCMethodDecl::Required</a>);</div>
+<div class="line"><a name="l02843"></a><span class="lineno"> 2843</span>     D-><a class="code" href="classclang_1_1ObjCImplDecl.html#aefc371e60d18c15d03ba7cb14dc3f7a1">addInstanceMethod</a>(DTORMethod);</div>
+<div class="line"><a name="l02844"></a><span class="lineno"> 2844</span>     <a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGenFunction</a>(*this).<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a44ccfb1a455d7b83bb25dbdfef78d554">GenerateObjCCtorDtorMethod</a>(D, DTORMethod, <span class="keyword">false</span>);</div>
+<div class="line"><a name="l02845"></a><span class="lineno"> 2845</span>     D-><a class="code" href="classclang_1_1ObjCImplementationDecl.html#af2f0aa523e01144e2c0312278435fdaa">setHasDestructors</a>(<span class="keyword">true</span>);</div>
+<div class="line"><a name="l02846"></a><span class="lineno"> 2846</span>   }</div>
+<div class="line"><a name="l02847"></a><span class="lineno"> 2847</span> </div>
+<div class="line"><a name="l02848"></a><span class="lineno"> 2848</span>   <span class="comment">// If the implementation doesn't have any ivar initializers, we don't need</span></div>
+<div class="line"><a name="l02849"></a><span class="lineno"> 2849</span>   <span class="comment">// a .cxx_construct.</span></div>
+<div class="line"><a name="l02850"></a><span class="lineno"> 2850</span>   <span class="keywordflow">if</span> (D-><a class="code" href="classclang_1_1ObjCImplementationDecl.html#a59aa8ba5c446bd648b3f6cbb8c17ac97" title="getNumArgs - Number of ivars which must be initialized.">getNumIvarInitializers</a>() == 0)</div>
+<div class="line"><a name="l02851"></a><span class="lineno"> 2851</span>     <span class="keywordflow">return</span>;</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>   <a class="code" href="classclang_1_1IdentifierInfo.html">IdentifierInfo</a> *II = &<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">".cxx_construct"</span>);</div>
+<div class="line"><a name="l02854"></a><span class="lineno"> 2854</span>   <a class="code" href="classclang_1_1Selector.html" title="Smart pointer class that efficiently represents Objective-C method names.">Selector</a> cxxSelector = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>().<a class="code" href="classclang_1_1ASTContext.html#a544656d98576ff2c1adb3e61a038e5b2">Selectors</a>.<a class="code" href="classclang_1_1SelectorTable.html#aae4996e6370b3c39722a757eb37b38b8" title="Can create any sort of selector.">getSelector</a>(0, &II);</div>
+<div class="line"><a name="l02855"></a><span class="lineno"> 2855</span>   <span class="comment">// The constructor returns 'self'.</span></div>
+<div class="line"><a name="l02856"></a><span class="lineno"> 2856</span>   <a class="code" href="classclang_1_1ObjCMethodDecl.html">ObjCMethodDecl</a> *CTORMethod = <a class="code" href="classclang_1_1ObjCMethodDecl.html#ad3e3e73fa88f08cb8b769f4614cdb237">ObjCMethodDecl::Create</a>(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>(), </div>
+<div class="line"><a name="l02857"></a><span class="lineno"> 2857</span>                                                 D-><a class="code" href="classclang_1_1Decl.html#a2348196ac4e0b1d5ebb1859c31b99eac">getLocation</a>(),</div>
+<div class="line"><a name="l02858"></a><span class="lineno"> 2858</span>                                                 D-><a class="code" href="classclang_1_1Decl.html#a2348196ac4e0b1d5ebb1859c31b99eac">getLocation</a>(),</div>
+<div class="line"><a name="l02859"></a><span class="lineno"> 2859</span>                                                 cxxSelector,</div>
+<div class="line"><a name="l02860"></a><span class="lineno"> 2860</span>                                                 <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>().<a class="code" href="classclang_1_1ASTContext.html#a46cf0bb1b4e31396963afe4f98956273" title="Represents the Objective-CC id type.">getObjCIdType</a>(), 0, </div>
+<div class="line"><a name="l02861"></a><span class="lineno"> 2861</span>                                                 D, <span class="comment">/*isInstance=*/</span><span class="keyword">true</span>,</div>
+<div class="line"><a name="l02862"></a><span class="lineno"> 2862</span>                                                 <span class="comment">/*isVariadic=*/</span><span class="keyword">false</span>,</div>
+<div class="line"><a name="l02863"></a><span class="lineno"> 2863</span>                                                 <span class="comment">/*isPropertyAccessor=*/</span><span class="keyword">true</span>,</div>
+<div class="line"><a name="l02864"></a><span class="lineno"> 2864</span>                                                 <span class="comment">/*isImplicitlyDeclared=*/</span><span class="keyword">true</span>,</div>
+<div class="line"><a name="l02865"></a><span class="lineno"> 2865</span>                                                 <span class="comment">/*isDefined=*/</span><span class="keyword">false</span>,</div>
+<div class="line"><a name="l02866"></a><span class="lineno"> 2866</span>                                                 <a class="code" href="classclang_1_1ObjCMethodDecl.html#a542f187aaa0c0781b19ead8e71198abea703b6cb86335709a7f15e1df6932b1bb">ObjCMethodDecl::Required</a>);</div>
+<div class="line"><a name="l02867"></a><span class="lineno"> 2867</span>   D-><a class="code" href="classclang_1_1ObjCImplDecl.html#aefc371e60d18c15d03ba7cb14dc3f7a1">addInstanceMethod</a>(CTORMethod);</div>
+<div class="line"><a name="l02868"></a><span class="lineno"> 2868</span>   <a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGenFunction</a>(*this).<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a44ccfb1a455d7b83bb25dbdfef78d554">GenerateObjCCtorDtorMethod</a>(D, CTORMethod, <span class="keyword">true</span>);</div>
+<div class="line"><a name="l02869"></a><span class="lineno"> 2869</span>   D-><a class="code" href="classclang_1_1ObjCImplementationDecl.html#af76474ebe1e8f57fadadfd8787da8cf9">setHasNonZeroConstructors</a>(<span class="keyword">true</span>);</div>
+<div class="line"><a name="l02870"></a><span class="lineno"> 2870</span> }</div>
+<div class="line"><a name="l02871"></a><span class="lineno"> 2871</span> <span class="comment"></span></div>
+<div class="line"><a name="l02872"></a><span class="lineno"> 2872</span> <span class="comment">/// EmitNamespace - Emit all declarations in a namespace.</span></div>
+<div class="line"><a name="l02873"></a><span class="lineno"> 2873</span> <span class="comment"></span><span class="keywordtype">void</span> CodeGenModule::EmitNamespace(<span class="keyword">const</span> <a class="code" href="classclang_1_1NamespaceDecl.html" title="NamespaceDecl - Represent a C++ namespace.">NamespaceDecl</a> *ND) {</div>
+<div class="line"><a name="l02874"></a><span class="lineno"> 2874</span>   <span class="keywordflow">for</span> (RecordDecl::decl_iterator I = ND-><a class="code" href="classclang_1_1DeclContext.html#a805f9e2d87050dee8b306e22e68b9225">decls_begin</a>(), E = ND-><a class="code" href="classclang_1_1DeclContext.html#a2d01679b86c5d8ff983b6323421dcdbf">decls_end</a>();</div>
+<div class="line"><a name="l02875"></a><span class="lineno"> 2875</span>        I != E; ++I) {</div>
+<div class="line"><a name="l02876"></a><span class="lineno"> 2876</span>     <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1VarDecl.html">VarDecl</a> *VD = dyn_cast<VarDecl>(*I))</div>
+<div class="line"><a name="l02877"></a><span class="lineno"> 2877</span>       <span class="keywordflow">if</span> (VD->getTemplateSpecializationKind() != <a class="code" href="namespaceclang.html#ae689bf8e3dcc54751a81974a4a12c3d2a5d6a29f74264666bba70d1d1cebd3ea5">TSK_ExplicitSpecialization</a> &&</div>
+<div class="line"><a name="l02878"></a><span class="lineno"> 2878</span>           VD->getTemplateSpecializationKind() != <a class="code" href="namespaceclang.html#ae689bf8e3dcc54751a81974a4a12c3d2a92763cc9fa42510d19b6689d36e836cb">TSK_Undeclared</a>)</div>
+<div class="line"><a name="l02879"></a><span class="lineno"> 2879</span>         <span class="keywordflow">continue</span>;</div>
+<div class="line"><a name="l02880"></a><span class="lineno"> 2880</span>     <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#af65667662896cf69535a77fd2a389401" title="EmitTopLevelDecl - Emit code for a single top level declaration.">EmitTopLevelDecl</a>(*I);</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> }</div>
+<div class="line"><a name="l02883"></a><span class="lineno"> 2883</span> </div>
+<div class="line"><a name="l02884"></a><span class="lineno"> 2884</span> <span class="comment">// EmitLinkageSpec - Emit all declarations in a linkage spec.</span></div>
+<div class="line"><a name="l02885"></a><span class="lineno"> 2885</span> <span class="keywordtype">void</span> CodeGenModule::EmitLinkageSpec(<span class="keyword">const</span> <a class="code" href="classclang_1_1LinkageSpecDecl.html" title="Represents a linkage specification.">LinkageSpecDecl</a> *LSD) {</div>
+<div class="line"><a name="l02886"></a><span class="lineno"> 2886</span>   <span class="keywordflow">if</span> (LSD-><a class="code" href="classclang_1_1LinkageSpecDecl.html#a5b28496a4e12b165b3e273449505d008" title="Return the language specified by this linkage specification.">getLanguage</a>() != <a class="code" href="classclang_1_1LinkageSpecDecl.html#ab7afabff5b7512bc49ec98774f7360f8af8868b0e48bea59a5a40dc918911fd40">LinkageSpecDecl::lang_c</a> &&</div>
+<div class="line"><a name="l02887"></a><span class="lineno"> 2887</span>       LSD-><a class="code" href="classclang_1_1LinkageSpecDecl.html#a5b28496a4e12b165b3e273449505d008" title="Return the language specified by this linkage specification.">getLanguage</a>() != <a class="code" href="classclang_1_1LinkageSpecDecl.html#ab7afabff5b7512bc49ec98774f7360f8a0ccc8c7c9ff6ebebf7485e1fca24c705">LinkageSpecDecl::lang_cxx</a>) {</div>
+<div class="line"><a name="l02888"></a><span class="lineno"> 2888</span>     <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a376568c3ab5102ebd46232c944128aee">ErrorUnsupported</a>(LSD, <span class="stringliteral">"linkage spec"</span>);</div>
+<div class="line"><a name="l02889"></a><span class="lineno"> 2889</span>     <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l02890"></a><span class="lineno"> 2890</span>   }</div>
+<div class="line"><a name="l02891"></a><span class="lineno"> 2891</span> </div>
+<div class="line"><a name="l02892"></a><span class="lineno"> 2892</span>   <span class="keywordflow">for</span> (RecordDecl::decl_iterator I = LSD-><a class="code" href="classclang_1_1DeclContext.html#a805f9e2d87050dee8b306e22e68b9225">decls_begin</a>(), E = LSD-><a class="code" href="classclang_1_1DeclContext.html#a2d01679b86c5d8ff983b6323421dcdbf">decls_end</a>();</div>
+<div class="line"><a name="l02893"></a><span class="lineno"> 2893</span>        I != E; ++I) {</div>
+<div class="line"><a name="l02894"></a><span class="lineno"> 2894</span>     <span class="comment">// Meta-data for ObjC class includes references to implemented methods.</span></div>
+<div class="line"><a name="l02895"></a><span class="lineno"> 2895</span>     <span class="comment">// Generate class's method definitions first.</span></div>
+<div class="line"><a name="l02896"></a><span class="lineno"> 2896</span>     <span class="keywordflow">if</span> (<a class="code" href="classclang_1_1ObjCImplDecl.html">ObjCImplDecl</a> *OID = dyn_cast<ObjCImplDecl>(*I)) {</div>
+<div class="line"><a name="l02897"></a><span class="lineno"> 2897</span>       <span class="keywordflow">for</span> (<a class="code" href="classclang_1_1DeclContext_1_1specific__decl__iterator.html">ObjCContainerDecl::method_iterator</a> M = OID->meth_begin(),</div>
+<div class="line"><a name="l02898"></a><span class="lineno"> 2898</span>            MEnd = OID->meth_end();</div>
+<div class="line"><a name="l02899"></a><span class="lineno"> 2899</span>            M != MEnd; ++M)</div>
+<div class="line"><a name="l02900"></a><span class="lineno"> 2900</span>         <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#af65667662896cf69535a77fd2a389401" title="EmitTopLevelDecl - Emit code for a single top level declaration.">EmitTopLevelDecl</a>(*M);</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>     <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#af65667662896cf69535a77fd2a389401" title="EmitTopLevelDecl - Emit code for a single top level declaration.">EmitTopLevelDecl</a>(*I);</div>
+<div class="line"><a name="l02903"></a><span class="lineno"> 2903</span>   }</div>
+<div class="line"><a name="l02904"></a><span class="lineno"> 2904</span> }</div>
+<div class="line"><a name="l02905"></a><span class="lineno"> 2905</span> <span class="comment"></span></div>
+<div class="line"><a name="l02906"></a><span class="lineno"> 2906</span> <span class="comment">/// EmitTopLevelDecl - Emit code for a single top level declaration.</span></div>
+<div class="line"><a name="l02907"></a><span class="lineno"><a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#af65667662896cf69535a77fd2a389401"> 2907</a></span> <span class="comment"></span><span class="keywordtype">void</span> <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#af65667662896cf69535a77fd2a389401" title="EmitTopLevelDecl - Emit code for a single top level declaration.">CodeGenModule::EmitTopLevelDecl</a>(<a class="code" href="classclang_1_1Decl.html">Decl</a> *D) {</div>
+<div class="line"><a name="l02908"></a><span class="lineno"> 2908</span>   <span class="comment">// Ignore dependent declarations.</span></div>
+<div class="line"><a name="l02909"></a><span class="lineno"> 2909</span>   <span class="keywordflow">if</span> (D-><a class="code" href="classclang_1_1Decl.html#af67e1a1d24dcc51093b95dbcf68d4288">getDeclContext</a>() && D-><a class="code" href="classclang_1_1Decl.html#af67e1a1d24dcc51093b95dbcf68d4288">getDeclContext</a>()-><a class="code" href="classclang_1_1DeclContext.html#a0d06ccd1db1b1f60e91d95d50aeae75d" title="Determines whether this context is dependent on a template parameter.">isDependentContext</a>())</div>
+<div class="line"><a name="l02910"></a><span class="lineno"> 2910</span>     <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l02911"></a><span class="lineno"> 2911</span> </div>
+<div class="line"><a name="l02912"></a><span class="lineno"> 2912</span>   <span class="keywordflow">switch</span> (D-><a class="code" href="classclang_1_1Decl.html#a6c53e861dae5545e8f6974af04cb2986">getKind</a>()) {</div>
+<div class="line"><a name="l02913"></a><span class="lineno"> 2913</span>   <span class="keywordflow">case</span> Decl::CXXConversion:</div>
+<div class="line"><a name="l02914"></a><span class="lineno"> 2914</span>   <span class="keywordflow">case</span> Decl::CXXMethod:</div>
+<div class="line"><a name="l02915"></a><span class="lineno"> 2915</span>   <span class="keywordflow">case</span> Decl::Function:</div>
+<div class="line"><a name="l02916"></a><span class="lineno"> 2916</span>     <span class="comment">// Skip function templates</span></div>
+<div class="line"><a name="l02917"></a><span class="lineno"> 2917</span>     <span class="keywordflow">if</span> (cast<FunctionDecl>(D)->getDescribedFunctionTemplate() ||</div>
+<div class="line"><a name="l02918"></a><span class="lineno"> 2918</span>         cast<FunctionDecl>(D)->isLateTemplateParsed())</div>
+<div class="line"><a name="l02919"></a><span class="lineno"> 2919</span>       <span class="keywordflow">return</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>     <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4b4e5d8e4c26316c84c11552ddd54232">EmitGlobal</a>(cast<FunctionDecl>(D));</div>
+<div class="line"><a name="l02922"></a><span class="lineno"> 2922</span>     <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l02923"></a><span class="lineno"> 2923</span> </div>
+<div class="line"><a name="l02924"></a><span class="lineno"> 2924</span>   <span class="keywordflow">case</span> Decl::Var:</div>
+<div class="line"><a name="l02925"></a><span class="lineno"> 2925</span>     <span class="comment">// Skip variable templates</span></div>
+<div class="line"><a name="l02926"></a><span class="lineno"> 2926</span>     <span class="keywordflow">if</span> (cast<VarDecl>(D)->getDescribedVarTemplate())</div>
+<div class="line"><a name="l02927"></a><span class="lineno"> 2927</span>       <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l02928"></a><span class="lineno"> 2928</span>   <span class="keywordflow">case</span> Decl::VarTemplateSpecialization:</div>
+<div class="line"><a name="l02929"></a><span class="lineno"> 2929</span>     <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4b4e5d8e4c26316c84c11552ddd54232">EmitGlobal</a>(cast<VarDecl>(D));</div>
+<div class="line"><a name="l02930"></a><span class="lineno"> 2930</span>     <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l02931"></a><span class="lineno"> 2931</span> </div>
+<div class="line"><a name="l02932"></a><span class="lineno"> 2932</span>   <span class="comment">// Indirect fields from global anonymous structs and unions can be</span></div>
+<div class="line"><a name="l02933"></a><span class="lineno"> 2933</span>   <span class="comment">// ignored; only the actual variable requires IR gen support.</span></div>
+<div class="line"><a name="l02934"></a><span class="lineno"> 2934</span>   <span class="keywordflow">case</span> Decl::IndirectField:</div>
+<div class="line"><a name="l02935"></a><span class="lineno"> 2935</span>     <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l02936"></a><span class="lineno"> 2936</span> </div>
+<div class="line"><a name="l02937"></a><span class="lineno"> 2937</span>   <span class="comment">// C++ Decls</span></div>
+<div class="line"><a name="l02938"></a><span class="lineno"> 2938</span>   <span class="keywordflow">case</span> Decl::Namespace:</div>
+<div class="line"><a name="l02939"></a><span class="lineno"> 2939</span>     EmitNamespace(cast<NamespaceDecl>(D));</div>
+<div class="line"><a name="l02940"></a><span class="lineno"> 2940</span>     <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l02941"></a><span class="lineno"> 2941</span>     <span class="comment">// No code generation needed.</span></div>
+<div class="line"><a name="l02942"></a><span class="lineno"> 2942</span>   <span class="keywordflow">case</span> Decl::UsingShadow:</div>
+<div class="line"><a name="l02943"></a><span class="lineno"> 2943</span>   <span class="keywordflow">case</span> Decl::Using:</div>
+<div class="line"><a name="l02944"></a><span class="lineno"> 2944</span>   <span class="keywordflow">case</span> Decl::ClassTemplate:</div>
+<div class="line"><a name="l02945"></a><span class="lineno"> 2945</span>   <span class="keywordflow">case</span> Decl::VarTemplate:</div>
+<div class="line"><a name="l02946"></a><span class="lineno"> 2946</span>   <span class="keywordflow">case</span> Decl::VarTemplatePartialSpecialization:</div>
+<div class="line"><a name="l02947"></a><span class="lineno"> 2947</span>   <span class="keywordflow">case</span> Decl::FunctionTemplate:</div>
+<div class="line"><a name="l02948"></a><span class="lineno"> 2948</span>   <span class="keywordflow">case</span> Decl::TypeAliasTemplate:</div>
+<div class="line"><a name="l02949"></a><span class="lineno"> 2949</span>   <span class="keywordflow">case</span> Decl::Block:</div>
+<div class="line"><a name="l02950"></a><span class="lineno"> 2950</span>   <span class="keywordflow">case</span> Decl::Empty:</div>
+<div class="line"><a name="l02951"></a><span class="lineno"> 2951</span>     <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l02952"></a><span class="lineno"> 2952</span>   <span class="keywordflow">case</span> Decl::NamespaceAlias:</div>
+<div class="line"><a name="l02953"></a><span class="lineno"> 2953</span>     <span class="keywordflow">if</span> (<a class="code" href="classclang_1_1CodeGen_1_1CGDebugInfo.html">CGDebugInfo</a> *DI = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a919ba4c672da9093f64b9bef0484302f">getModuleDebugInfo</a>())</div>
+<div class="line"><a name="l02954"></a><span class="lineno"> 2954</span>         DI->EmitNamespaceAlias(cast<NamespaceAliasDecl>(*D));</div>
+<div class="line"><a name="l02955"></a><span class="lineno"> 2955</span>     <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l02956"></a><span class="lineno"> 2956</span>   <span class="keywordflow">case</span> Decl::UsingDirective: <span class="comment">// using namespace X; [C++]</span></div>
+<div class="line"><a name="l02957"></a><span class="lineno"> 2957</span>     <span class="keywordflow">if</span> (<a class="code" href="classclang_1_1CodeGen_1_1CGDebugInfo.html">CGDebugInfo</a> *DI = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a919ba4c672da9093f64b9bef0484302f">getModuleDebugInfo</a>())</div>
+<div class="line"><a name="l02958"></a><span class="lineno"> 2958</span>       DI->EmitUsingDirective(cast<UsingDirectiveDecl>(*D));</div>
+<div class="line"><a name="l02959"></a><span class="lineno"> 2959</span>     <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l02960"></a><span class="lineno"> 2960</span>   <span class="keywordflow">case</span> Decl::CXXConstructor:</div>
+<div class="line"><a name="l02961"></a><span class="lineno"> 2961</span>     <span class="comment">// Skip function templates</span></div>
+<div class="line"><a name="l02962"></a><span class="lineno"> 2962</span>     <span class="keywordflow">if</span> (cast<FunctionDecl>(D)->getDescribedFunctionTemplate() ||</div>
+<div class="line"><a name="l02963"></a><span class="lineno"> 2963</span>         cast<FunctionDecl>(D)->isLateTemplateParsed())</div>
+<div class="line"><a name="l02964"></a><span class="lineno"> 2964</span>       <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l02965"></a><span class="lineno"> 2965</span>       </div>
+<div class="line"><a name="l02966"></a><span class="lineno"> 2966</span>     <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#abcced6119cfc90ff6332ec96766ff70a">getCXXABI</a>().<a class="code" href="classclang_1_1CodeGen_1_1CGCXXABI.html#a0549a9b256d46921ae20da00402f3284" title="Emit constructor variants required by this ABI.">EmitCXXConstructors</a>(cast<CXXConstructorDecl>(D));</div>
+<div class="line"><a name="l02967"></a><span class="lineno"> 2967</span>     <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l02968"></a><span class="lineno"> 2968</span>   <span class="keywordflow">case</span> Decl::CXXDestructor:</div>
+<div class="line"><a name="l02969"></a><span class="lineno"> 2969</span>     <span class="keywordflow">if</span> (cast<FunctionDecl>(D)->isLateTemplateParsed())</div>
+<div class="line"><a name="l02970"></a><span class="lineno"> 2970</span>       <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l02971"></a><span class="lineno"> 2971</span>     <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#abcced6119cfc90ff6332ec96766ff70a">getCXXABI</a>().<a class="code" href="classclang_1_1CodeGen_1_1CGCXXABI.html#a291a2edf916f12a3840a2f197b2f7fec" title="Emit destructor variants required by this ABI.">EmitCXXDestructors</a>(cast<CXXDestructorDecl>(D));</div>
+<div class="line"><a name="l02972"></a><span class="lineno"> 2972</span>     <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l02973"></a><span class="lineno"> 2973</span> </div>
+<div class="line"><a name="l02974"></a><span class="lineno"> 2974</span>   <span class="keywordflow">case</span> Decl::StaticAssert:</div>
+<div class="line"><a name="l02975"></a><span class="lineno"> 2975</span>     <span class="comment">// Nothing to do.</span></div>
+<div class="line"><a name="l02976"></a><span class="lineno"> 2976</span>     <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l02977"></a><span class="lineno"> 2977</span> </div>
+<div class="line"><a name="l02978"></a><span class="lineno"> 2978</span>   <span class="comment">// Objective-C Decls</span></div>
+<div class="line"><a name="l02979"></a><span class="lineno"> 2979</span> </div>
+<div class="line"><a name="l02980"></a><span class="lineno"> 2980</span>   <span class="comment">// Forward declarations, no (immediate) code generation.</span></div>
+<div class="line"><a name="l02981"></a><span class="lineno"> 2981</span>   <span class="keywordflow">case</span> Decl::ObjCInterface:</div>
+<div class="line"><a name="l02982"></a><span class="lineno"> 2982</span>   <span class="keywordflow">case</span> Decl::ObjCCategory:</div>
+<div class="line"><a name="l02983"></a><span class="lineno"> 2983</span>     <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l02984"></a><span class="lineno"> 2984</span> </div>
+<div class="line"><a name="l02985"></a><span class="lineno"> 2985</span>   <span class="keywordflow">case</span> Decl::ObjCProtocol: {</div>
+<div class="line"><a name="l02986"></a><span class="lineno"> 2986</span>     <a class="code" href="classclang_1_1ObjCProtocolDecl.html" title="Represents an Objective-C protocol declaration.">ObjCProtocolDecl</a> *Proto = cast<ObjCProtocolDecl>(D);</div>
+<div class="line"><a name="l02987"></a><span class="lineno"> 2987</span>     <span class="keywordflow">if</span> (Proto-><a class="code" href="classclang_1_1ObjCProtocolDecl.html#a80248299799f2efb0abd1bb0e1dd87fe" title="Determine whether this particular declaration is also the definition.">isThisDeclarationADefinition</a>())</div>
+<div class="line"><a name="l02988"></a><span class="lineno"> 2988</span>       <a class="code" href="classclang_1_1ObjCRuntime.html" title="The basic abstraction for the target Objective-C runtime.">ObjCRuntime</a>->GenerateProtocol(Proto);</div>
+<div class="line"><a name="l02989"></a><span class="lineno"> 2989</span>     <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l02990"></a><span class="lineno"> 2990</span>   }</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>   <span class="keywordflow">case</span> Decl::ObjCCategoryImpl:</div>
+<div class="line"><a name="l02993"></a><span class="lineno"> 2993</span>     <span class="comment">// Categories have properties but don't support synthesize so we</span></div>
+<div class="line"><a name="l02994"></a><span class="lineno"> 2994</span>     <span class="comment">// can ignore them here.</span></div>
+<div class="line"><a name="l02995"></a><span class="lineno"> 2995</span>     <a class="code" href="classclang_1_1ObjCRuntime.html" title="The basic abstraction for the target Objective-C runtime.">ObjCRuntime</a>->GenerateCategory(cast<ObjCCategoryImplDecl>(D));</div>
+<div class="line"><a name="l02996"></a><span class="lineno"> 2996</span>     <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l02997"></a><span class="lineno"> 2997</span> </div>
+<div class="line"><a name="l02998"></a><span class="lineno"> 2998</span>   <span class="keywordflow">case</span> Decl::ObjCImplementation: {</div>
+<div class="line"><a name="l02999"></a><span class="lineno"> 2999</span>     <a class="code" href="classclang_1_1ObjCImplementationDecl.html">ObjCImplementationDecl</a> *OMD = cast<ObjCImplementationDecl>(D);</div>
+<div class="line"><a name="l03000"></a><span class="lineno"> 3000</span>     EmitObjCPropertyImplementations(OMD);</div>
+<div class="line"><a name="l03001"></a><span class="lineno"> 3001</span>     EmitObjCIvarInitializations(OMD);</div>
+<div class="line"><a name="l03002"></a><span class="lineno"> 3002</span>     <a class="code" href="classclang_1_1ObjCRuntime.html" title="The basic abstraction for the target Objective-C runtime.">ObjCRuntime</a>->GenerateClass(OMD);</div>
+<div class="line"><a name="l03003"></a><span class="lineno"> 3003</span>     <span class="comment">// Emit global variable debug information.</span></div>
+<div class="line"><a name="l03004"></a><span class="lineno"> 3004</span>     <span class="keywordflow">if</span> (<a class="code" href="classclang_1_1CodeGen_1_1CGDebugInfo.html">CGDebugInfo</a> *DI = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a919ba4c672da9093f64b9bef0484302f">getModuleDebugInfo</a>())</div>
+<div class="line"><a name="l03005"></a><span class="lineno"> 3005</span>       <span class="keywordflow">if</span> (<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a054eb00391038519d37236032f1ebfe5">getCodeGenOpts</a>().getDebugInfo() >= <a class="code" href="classclang_1_1CodeGenOptions.html#ab49a2a2a0a68577a07a9c0b730fb3cf6ae0f1c5168d0708ca9bd151ea9d89a3d8">CodeGenOptions::LimitedDebugInfo</a>)</div>
+<div class="line"><a name="l03006"></a><span class="lineno"> 3006</span>         DI->getOrCreateInterfaceType(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a4a62f428c7e3d80e67885383b9263054">getContext</a>().getObjCInterfaceType(</div>
+<div class="line"><a name="l03007"></a><span class="lineno"> 3007</span>             OMD-><a class="code" href="classclang_1_1ObjCImplDecl.html#ae3c6fb728fe5a7aee81ca394470493c4">getClassInterface</a>()), OMD-><a class="code" href="classclang_1_1Decl.html#a2348196ac4e0b1d5ebb1859c31b99eac">getLocation</a>());</div>
+<div class="line"><a name="l03008"></a><span class="lineno"> 3008</span>     <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l03009"></a><span class="lineno"> 3009</span>   }</div>
+<div class="line"><a name="l03010"></a><span class="lineno"> 3010</span>   <span class="keywordflow">case</span> Decl::ObjCMethod: {</div>
+<div class="line"><a name="l03011"></a><span class="lineno"> 3011</span>     <a class="code" href="classclang_1_1ObjCMethodDecl.html">ObjCMethodDecl</a> *OMD = cast<ObjCMethodDecl>(D);</div>
+<div class="line"><a name="l03012"></a><span class="lineno"> 3012</span>     <span class="comment">// If this is not a prototype, emit the body.</span></div>
+<div class="line"><a name="l03013"></a><span class="lineno"> 3013</span>     <span class="keywordflow">if</span> (OMD-><a class="code" href="classclang_1_1ObjCMethodDecl.html#a22e377ee7c8d39f7087197ac6d69d4ae" title="Retrieve the body of this method, if it has one.">getBody</a>())</div>
+<div class="line"><a name="l03014"></a><span class="lineno"> 3014</span>       <a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html">CodeGenFunction</a>(*this).<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a9e3e18864e093d98be0599cea582b049">GenerateObjCMethod</a>(OMD);</div>
+<div class="line"><a name="l03015"></a><span class="lineno"> 3015</span>     <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l03016"></a><span class="lineno"> 3016</span>   }</div>
+<div class="line"><a name="l03017"></a><span class="lineno"> 3017</span>   <span class="keywordflow">case</span> Decl::ObjCCompatibleAlias:</div>
+<div class="line"><a name="l03018"></a><span class="lineno"> 3018</span>     <a class="code" href="classclang_1_1ObjCRuntime.html" title="The basic abstraction for the target Objective-C runtime.">ObjCRuntime</a>->RegisterAlias(cast<ObjCCompatibleAliasDecl>(D));</div>
+<div class="line"><a name="l03019"></a><span class="lineno"> 3019</span>     <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l03020"></a><span class="lineno"> 3020</span> </div>
+<div class="line"><a name="l03021"></a><span class="lineno"> 3021</span>   <span class="keywordflow">case</span> Decl::LinkageSpec:</div>
+<div class="line"><a name="l03022"></a><span class="lineno"> 3022</span>     EmitLinkageSpec(cast<LinkageSpecDecl>(D));</div>
+<div class="line"><a name="l03023"></a><span class="lineno"> 3023</span>     <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l03024"></a><span class="lineno"> 3024</span> </div>
+<div class="line"><a name="l03025"></a><span class="lineno"> 3025</span>   <span class="keywordflow">case</span> Decl::FileScopeAsm: {</div>
+<div class="line"><a name="l03026"></a><span class="lineno"> 3026</span>     <a class="code" href="classclang_1_1FileScopeAsmDecl.html">FileScopeAsmDecl</a> *AD = cast<FileScopeAsmDecl>(D);</div>
+<div class="line"><a name="l03027"></a><span class="lineno"> 3027</span>     StringRef AsmString = AD-><a class="code" href="classclang_1_1FileScopeAsmDecl.html#a26dc2cc8284f3b22c9a1c5eb7925ee68">getAsmString</a>()-><a class="code" href="classclang_1_1StringLiteral.html#a5ac45571169396e74d296c733811a243">getString</a>();</div>
+<div class="line"><a name="l03028"></a><span class="lineno"> 3028</span> </div>
+<div class="line"><a name="l03029"></a><span class="lineno"> 3029</span>     <span class="keyword">const</span> std::string &S = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a908409c9231b015784ca008fd6bcb961">getModule</a>().getModuleInlineAsm();</div>
+<div class="line"><a name="l03030"></a><span class="lineno"> 3030</span>     <span class="keywordflow">if</span> (S.empty())</div>
+<div class="line"><a name="l03031"></a><span class="lineno"> 3031</span>       <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a908409c9231b015784ca008fd6bcb961">getModule</a>().setModuleInlineAsm(AsmString);</div>
+<div class="line"><a name="l03032"></a><span class="lineno"> 3032</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (S.end()[-1] == <span class="charliteral">'\n'</span>)</div>
+<div class="line"><a name="l03033"></a><span class="lineno"> 3033</span>       <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a908409c9231b015784ca008fd6bcb961">getModule</a>().setModuleInlineAsm(S + AsmString.str());</div>
+<div class="line"><a name="l03034"></a><span class="lineno"> 3034</span>     <span class="keywordflow">else</span></div>
+<div class="line"><a name="l03035"></a><span class="lineno"> 3035</span>       <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a908409c9231b015784ca008fd6bcb961">getModule</a>().setModuleInlineAsm(S + <span class="charliteral">'\n'</span> + AsmString.str());</div>
+<div class="line"><a name="l03036"></a><span class="lineno"> 3036</span>     <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l03037"></a><span class="lineno"> 3037</span>   }</div>
+<div class="line"><a name="l03038"></a><span class="lineno"> 3038</span> </div>
+<div class="line"><a name="l03039"></a><span class="lineno"> 3039</span>   <span class="keywordflow">case</span> Decl::Import: {</div>
+<div class="line"><a name="l03040"></a><span class="lineno"> 3040</span>     <a class="code" href="classclang_1_1ImportDecl.html" title="Describes a module import declaration, which makes the contents of the named module visible in the cu...">ImportDecl</a> *Import = cast<ImportDecl>(D);</div>
+<div class="line"><a name="l03041"></a><span class="lineno"> 3041</span> </div>
+<div class="line"><a name="l03042"></a><span class="lineno"> 3042</span>     <span class="comment">// Ignore import declarations that come from imported modules.</span></div>
+<div class="line"><a name="l03043"></a><span class="lineno"> 3043</span>     <span class="keywordflow">if</span> (<a class="code" href="classclang_1_1Module.html" title="Describes a module or submodule.">clang::Module</a> *Owner = Import-><a class="code" href="classclang_1_1Decl.html#aa778bce01bd8fefa4b315217ea7f8727">getOwningModule</a>()) {</div>
+<div class="line"><a name="l03044"></a><span class="lineno"> 3044</span>       <span class="keywordflow">if</span> (<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#abae1594027ce284ce5b7f06c66d24ea7">getLangOpts</a>().<a class="code" href="classclang_1_1LangOptions.html#afd139a4fe76990c1c01e77ae67cd1310" title="The name of the current module.">CurrentModule</a>.empty() ||</div>
+<div class="line"><a name="l03045"></a><span class="lineno"> 3045</span>           Owner->getTopLevelModule()->Name == <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#abae1594027ce284ce5b7f06c66d24ea7">getLangOpts</a>().<a class="code" href="classclang_1_1LangOptions.html#afd139a4fe76990c1c01e77ae67cd1310" title="The name of the current module.">CurrentModule</a>)</div>
+<div class="line"><a name="l03046"></a><span class="lineno"> 3046</span>         <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l03047"></a><span class="lineno"> 3047</span>     }</div>
+<div class="line"><a name="l03048"></a><span class="lineno"> 3048</span> </div>
+<div class="line"><a name="l03049"></a><span class="lineno"> 3049</span>     ImportedModules.insert(Import-><a class="code" href="classclang_1_1ImportDecl.html#ac5c611a98333ebe8fd42be01a2141d22" title="Retrieve the module that was imported by the import declaration.">getImportedModule</a>());</div>
+<div class="line"><a name="l03050"></a><span class="lineno"> 3050</span>     <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l03051"></a><span class="lineno"> 3051</span>  }</div>
+<div class="line"><a name="l03052"></a><span class="lineno"> 3052</span> </div>
+<div class="line"><a name="l03053"></a><span class="lineno"> 3053</span>   <span class="keywordflow">default</span>:</div>
+<div class="line"><a name="l03054"></a><span class="lineno"> 3054</span>     <span class="comment">// Make sure we handled everything we should, every other kind is a</span></div>
+<div class="line"><a name="l03055"></a><span class="lineno"> 3055</span>     <span class="comment">// non-top-level decl.  FIXME: Would be nice to have an isTopLevelDeclKind</span></div>
+<div class="line"><a name="l03056"></a><span class="lineno"> 3056</span>     <span class="comment">// function. Need to recode Decl::Kind to do that easily.</span></div>
+<div class="line"><a name="l03057"></a><span class="lineno"> 3057</span>     assert(isa<TypeDecl>(D) && <span class="stringliteral">"Unsupported decl kind"</span>);</div>
+<div class="line"><a name="l03058"></a><span class="lineno"> 3058</span>   }</div>
+<div class="line"><a name="l03059"></a><span class="lineno"> 3059</span> }</div>
+<div class="line"><a name="l03060"></a><span class="lineno"> 3060</span> <span class="comment"></span></div>
+<div class="line"><a name="l03061"></a><span class="lineno"> 3061</span> <span class="comment">/// Turns the given pointer into a constant.</span></div>
+<div class="line"><a name="l03062"></a><span class="lineno"><a class="code" href="CodeGenModule_8cpp.html#a0391403d7562d81f8b752054b98f2a3d"> 3062</a></span> <span class="comment"></span><span class="keyword">static</span> llvm::Constant *<a class="code" href="CodeGenModule_8cpp.html#a0391403d7562d81f8b752054b98f2a3d" title="Turns the given pointer into a constant.">GetPointerConstant</a>(llvm::LLVMContext &<a class="code" href="ASTMatchFinder_8cpp.html#a779280869b9fac47a9bc391e7709171f">Context</a>,</div>
+<div class="line"><a name="l03063"></a><span class="lineno"> 3063</span>                                           <span class="keyword">const</span> <span class="keywordtype">void</span> *Ptr) {</div>
+<div class="line"><a name="l03064"></a><span class="lineno"> 3064</span>   uintptr_t PtrInt = <span class="keyword">reinterpret_cast<</span>uintptr_t<span class="keyword">></span>(Ptr);</div>
+<div class="line"><a name="l03065"></a><span class="lineno"> 3065</span>   llvm::Type *i64 = llvm::Type::getInt64Ty(Context);</div>
+<div class="line"><a name="l03066"></a><span class="lineno"> 3066</span>   <span class="keywordflow">return</span> llvm::ConstantInt::get(i64, PtrInt);</div>
+<div class="line"><a name="l03067"></a><span class="lineno"> 3067</span> }</div>
+<div class="line"><a name="l03068"></a><span class="lineno"> 3068</span> </div>
+<div class="line"><a name="l03069"></a><span class="lineno"><a class="code" href="CodeGenModule_8cpp.html#affb378d8574bf029da2376ba7be57d06"> 3069</a></span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="CodeGenModule_8cpp.html#affb378d8574bf029da2376ba7be57d06">EmitGlobalDeclMetadata</a>(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html">CodeGenModule</a> &CGM,</div>
+<div class="line"><a name="l03070"></a><span class="lineno"> 3070</span>                                    llvm::NamedMDNode *&GlobalMetadata,</div>
+<div class="line"><a name="l03071"></a><span class="lineno"> 3071</span>                                    <a class="code" href="classclang_1_1GlobalDecl.html">GlobalDecl</a> D,</div>
+<div class="line"><a name="l03072"></a><span class="lineno"> 3072</span>                                    llvm::GlobalValue *<a class="code" href="SemaOverload_8cpp.html#a561f2d973ed74723ce0b1e1165c31804">Addr</a>) {</div>
+<div class="line"><a name="l03073"></a><span class="lineno"> 3073</span>   <span class="keywordflow">if</span> (!GlobalMetadata)</div>
+<div class="line"><a name="l03074"></a><span class="lineno"> 3074</span>     GlobalMetadata =</div>
+<div class="line"><a name="l03075"></a><span class="lineno"> 3075</span>       CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a908409c9231b015784ca008fd6bcb961">getModule</a>().getOrInsertNamedMetadata(<span class="stringliteral">"clang.global.decl.ptrs"</span>);</div>
+<div class="line"><a name="l03076"></a><span class="lineno"> 3076</span> </div>
+<div class="line"><a name="l03077"></a><span class="lineno"> 3077</span>   <span class="comment">// TODO: should we report variant information for ctors/dtors?</span></div>
+<div class="line"><a name="l03078"></a><span class="lineno"> 3078</span>   <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *Ops[] = {</div>
+<div class="line"><a name="l03079"></a><span class="lineno"> 3079</span>     <a class="code" href="SemaOverload_8cpp.html#a561f2d973ed74723ce0b1e1165c31804">Addr</a>,</div>
+<div class="line"><a name="l03080"></a><span class="lineno"> 3080</span>     <a class="code" href="CodeGenModule_8cpp.html#a0391403d7562d81f8b752054b98f2a3d" title="Turns the given pointer into a constant.">GetPointerConstant</a>(CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a6c8cff399ad98c730cce0907b1acd44e">getLLVMContext</a>(), D.<a class="code" href="classclang_1_1GlobalDecl.html#a3971ce53aef50b4c3d829615a5ecd0a0">getDecl</a>())</div>
+<div class="line"><a name="l03081"></a><span class="lineno"> 3081</span>   };</div>
+<div class="line"><a name="l03082"></a><span class="lineno"> 3082</span>   GlobalMetadata->addOperand(llvm::MDNode::get(CGM.<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a6c8cff399ad98c730cce0907b1acd44e">getLLVMContext</a>(), Ops));</div>
+<div class="line"><a name="l03083"></a><span class="lineno"> 3083</span> }</div>
+<div class="line"><a name="l03084"></a><span class="lineno"> 3084</span> <span class="comment"></span></div>
+<div class="line"><a name="l03085"></a><span class="lineno"> 3085</span> <span class="comment">/// For each function which is declared within an extern "C" region and marked</span></div>
+<div class="line"><a name="l03086"></a><span class="lineno"> 3086</span> <span class="comment">/// as 'used', but has internal linkage, create an alias from the unmangled</span></div>
+<div class="line"><a name="l03087"></a><span class="lineno"> 3087</span> <span class="comment">/// name to the mangled name if possible. People expect to be able to refer</span></div>
+<div class="line"><a name="l03088"></a><span class="lineno"> 3088</span> <span class="comment">/// to such functions with an unmangled name from inline assembly within the</span></div>
+<div class="line"><a name="l03089"></a><span class="lineno"> 3089</span> <span class="comment">/// same translation unit.</span></div>
+<div class="line"><a name="l03090"></a><span class="lineno"> 3090</span> <span class="comment"></span><span class="keywordtype">void</span> CodeGenModule::EmitStaticExternCAliases() {</div>
+<div class="line"><a name="l03091"></a><span class="lineno"> 3091</span>   <span class="keywordflow">for</span> (StaticExternCMap::iterator I = StaticExternCValues.begin(),</div>
+<div class="line"><a name="l03092"></a><span class="lineno"> 3092</span>                                   E = StaticExternCValues.end();</div>
+<div class="line"><a name="l03093"></a><span class="lineno"> 3093</span>        I != E; ++I) {</div>
+<div class="line"><a name="l03094"></a><span class="lineno"> 3094</span>     <a class="code" href="classclang_1_1IdentifierInfo.html">IdentifierInfo</a> *Name = I->first;</div>
+<div class="line"><a name="l03095"></a><span class="lineno"> 3095</span>     llvm::GlobalValue *Val = I->second;</div>
+<div class="line"><a name="l03096"></a><span class="lineno"> 3096</span>     <span class="keywordflow">if</span> (Val && !<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a908409c9231b015784ca008fd6bcb961">getModule</a>().getNamedValue(Name-><a class="code" href="classclang_1_1IdentifierInfo.html#a94caec6a16e508e8ca39eacd278bd2c5" title="Return the actual identifier string.">getName</a>()))</div>
+<div class="line"><a name="l03097"></a><span class="lineno"> 3097</span>       <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#ab4b3684fe8ae4e70f3205a40d9a2bdb2">AddUsedGlobal</a>(<span class="keyword">new</span> llvm::GlobalAlias(Val->getType(), Val->getLinkage(),</div>
+<div class="line"><a name="l03098"></a><span class="lineno"> 3098</span>                                           Name-><a class="code" href="classclang_1_1IdentifierInfo.html#a94caec6a16e508e8ca39eacd278bd2c5" title="Return the actual identifier string.">getName</a>(), Val, &<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a908409c9231b015784ca008fd6bcb961">getModule</a>()));</div>
+<div class="line"><a name="l03099"></a><span class="lineno"> 3099</span>   }</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> <span class="comment"></span></div>
+<div class="line"><a name="l03102"></a><span class="lineno"> 3102</span> <span class="comment">/// Emits metadata nodes associating all the global values in the</span></div>
+<div class="line"><a name="l03103"></a><span class="lineno"> 3103</span> <span class="comment">/// current module with the Decls they came from.  This is useful for</span></div>
+<div class="line"><a name="l03104"></a><span class="lineno"> 3104</span> <span class="comment">/// projects using IR gen as a subroutine.</span></div>
+<div class="line"><a name="l03105"></a><span class="lineno"> 3105</span> <span class="comment">///</span></div>
+<div class="line"><a name="l03106"></a><span class="lineno"> 3106</span> <span class="comment">/// Since there's currently no way to associate an MDNode directly</span></div>
+<div class="line"><a name="l03107"></a><span class="lineno"> 3107</span> <span class="comment">/// with an llvm::GlobalValue, we create a global named metadata</span></div>
+<div class="line"><a name="l03108"></a><span class="lineno"> 3108</span> <span class="comment">/// with the name 'clang.global.decl.ptrs'.</span></div>
+<div class="line"><a name="l03109"></a><span class="lineno"> 3109</span> <span class="comment"></span><span class="keywordtype">void</span> CodeGenModule::EmitDeclMetadata() {</div>
+<div class="line"><a name="l03110"></a><span class="lineno"> 3110</span>   llvm::NamedMDNode *GlobalMetadata = 0;</div>
+<div class="line"><a name="l03111"></a><span class="lineno"> 3111</span> </div>
+<div class="line"><a name="l03112"></a><span class="lineno"> 3112</span>   <span class="comment">// StaticLocalDeclMap</span></div>
+<div class="line"><a name="l03113"></a><span class="lineno"> 3113</span>   <span class="keywordflow">for</span> (llvm::DenseMap<GlobalDecl,StringRef>::iterator</div>
+<div class="line"><a name="l03114"></a><span class="lineno"> 3114</span>          I = MangledDeclNames.begin(), E = MangledDeclNames.end();</div>
+<div class="line"><a name="l03115"></a><span class="lineno"> 3115</span>        I != E; ++I) {</div>
+<div class="line"><a name="l03116"></a><span class="lineno"> 3116</span>     llvm::GlobalValue *Addr = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a908409c9231b015784ca008fd6bcb961">getModule</a>().getNamedValue(I->second);</div>
+<div class="line"><a name="l03117"></a><span class="lineno"> 3117</span>     <a class="code" href="CodeGenModule_8cpp.html#affb378d8574bf029da2376ba7be57d06">EmitGlobalDeclMetadata</a>(*<span class="keyword">this</span>, GlobalMetadata, I->first, Addr);</div>
+<div class="line"><a name="l03118"></a><span class="lineno"> 3118</span>   }</div>
+<div class="line"><a name="l03119"></a><span class="lineno"> 3119</span> }</div>
+<div class="line"><a name="l03120"></a><span class="lineno"> 3120</span> <span class="comment"></span></div>
+<div class="line"><a name="l03121"></a><span class="lineno"> 3121</span> <span class="comment">/// Emits metadata nodes for all the local variables in the current</span></div>
+<div class="line"><a name="l03122"></a><span class="lineno"> 3122</span> <span class="comment">/// function.</span></div>
+<div class="line"><a name="l03123"></a><span class="lineno"> 3123</span> <span class="comment"></span><span class="keywordtype">void</span> CodeGenFunction::EmitDeclMetadata() {</div>
+<div class="line"><a name="l03124"></a><span class="lineno"> 3124</span>   <span class="keywordflow">if</span> (LocalDeclMap.empty()) <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l03125"></a><span class="lineno"> 3125</span> </div>
+<div class="line"><a name="l03126"></a><span class="lineno"> 3126</span>   llvm::LLVMContext &<a class="code" href="ASTMatchFinder_8cpp.html#a779280869b9fac47a9bc391e7709171f">Context</a> = <a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a3ab38e48e9cabd4b9b64555c6c825f06">getLLVMContext</a>();</div>
+<div class="line"><a name="l03127"></a><span class="lineno"> 3127</span> </div>
+<div class="line"><a name="l03128"></a><span class="lineno"> 3128</span>   <span class="comment">// Find the unique metadata ID for this name.</span></div>
+<div class="line"><a name="l03129"></a><span class="lineno"> 3129</span>   <span class="keywordtype">unsigned</span> DeclPtrKind = Context.getMDKindID(<span class="stringliteral">"clang.decl.ptr"</span>);</div>
+<div class="line"><a name="l03130"></a><span class="lineno"> 3130</span> </div>
+<div class="line"><a name="l03131"></a><span class="lineno"> 3131</span>   llvm::NamedMDNode *GlobalMetadata = 0;</div>
+<div class="line"><a name="l03132"></a><span class="lineno"> 3132</span> </div>
+<div class="line"><a name="l03133"></a><span class="lineno"> 3133</span>   <span class="keywordflow">for</span> (llvm::DenseMap<const Decl*, llvm::Value*>::iterator</div>
+<div class="line"><a name="l03134"></a><span class="lineno"> 3134</span>          I = LocalDeclMap.begin(), E = LocalDeclMap.end(); I != E; ++I) {</div>
+<div class="line"><a name="l03135"></a><span class="lineno"> 3135</span>     <span class="keyword">const</span> <a class="code" href="classclang_1_1Decl.html">Decl</a> *D = I->first;</div>
+<div class="line"><a name="l03136"></a><span class="lineno"> 3136</span>     <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *Addr = I->second;</div>
+<div class="line"><a name="l03137"></a><span class="lineno"> 3137</span> </div>
+<div class="line"><a name="l03138"></a><span class="lineno"> 3138</span>     <span class="keywordflow">if</span> (llvm::AllocaInst *Alloca = dyn_cast<llvm::AllocaInst>(Addr)) {</div>
+<div class="line"><a name="l03139"></a><span class="lineno"> 3139</span>       <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *DAddr = <a class="code" href="CodeGenModule_8cpp.html#a0391403d7562d81f8b752054b98f2a3d" title="Turns the given pointer into a constant.">GetPointerConstant</a>(<a class="code" href="classclang_1_1CodeGen_1_1CodeGenFunction.html#a3ab38e48e9cabd4b9b64555c6c825f06">getLLVMContext</a>(), D);</div>
+<div class="line"><a name="l03140"></a><span class="lineno"> 3140</span>       Alloca->setMetadata(DeclPtrKind, llvm::MDNode::get(Context, DAddr));</div>
+<div class="line"><a name="l03141"></a><span class="lineno"> 3141</span>     } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (llvm::GlobalValue *GV = dyn_cast<llvm::GlobalValue>(Addr)) {</div>
+<div class="line"><a name="l03142"></a><span class="lineno"> 3142</span>       <a class="code" href="classclang_1_1GlobalDecl.html">GlobalDecl</a> GD = <a class="code" href="classclang_1_1GlobalDecl.html">GlobalDecl</a>(cast<VarDecl>(D));</div>
+<div class="line"><a name="l03143"></a><span class="lineno"> 3143</span>       <a class="code" href="CodeGenModule_8cpp.html#affb378d8574bf029da2376ba7be57d06">EmitGlobalDeclMetadata</a>(CGM, GlobalMetadata, GD, GV);</div>
+<div class="line"><a name="l03144"></a><span class="lineno"> 3144</span>     }</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> }</div>
+<div class="line"><a name="l03147"></a><span class="lineno"> 3147</span> </div>
+<div class="line"><a name="l03148"></a><span class="lineno"> 3148</span> <span class="keywordtype">void</span> CodeGenModule::EmitVersionIdentMetadata() {</div>
+<div class="line"><a name="l03149"></a><span class="lineno"> 3149</span>   llvm::NamedMDNode *IdentMetadata =</div>
+<div class="line"><a name="l03150"></a><span class="lineno"> 3150</span>     TheModule.getOrInsertNamedMetadata(<span class="stringliteral">"llvm.ident"</span>);</div>
+<div class="line"><a name="l03151"></a><span class="lineno"> 3151</span>   std::string Version = <a class="code" href="namespaceclang.html#afae55c04eca31832eb078c482fd80978" title="Retrieves a string representing the complete clang version, which includes the clang version number...">getClangFullVersion</a>();</div>
+<div class="line"><a name="l03152"></a><span class="lineno"> 3152</span>   llvm::LLVMContext &Ctx = TheModule.getContext();</div>
+<div class="line"><a name="l03153"></a><span class="lineno"> 3153</span> </div>
+<div class="line"><a name="l03154"></a><span class="lineno"> 3154</span>   <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *IdentNode[] = {</div>
+<div class="line"><a name="l03155"></a><span class="lineno"> 3155</span>     llvm::MDString::get(Ctx, Version)</div>
+<div class="line"><a name="l03156"></a><span class="lineno"> 3156</span>   };</div>
+<div class="line"><a name="l03157"></a><span class="lineno"> 3157</span>   IdentMetadata->addOperand(llvm::MDNode::get(Ctx, IdentNode));</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> </div>
+<div class="line"><a name="l03160"></a><span class="lineno"> 3160</span> <span class="keywordtype">void</span> CodeGenModule::EmitCoverageFile() {</div>
+<div class="line"><a name="l03161"></a><span class="lineno"> 3161</span>   <span class="keywordflow">if</span> (!<a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a054eb00391038519d37236032f1ebfe5">getCodeGenOpts</a>().CoverageFile.empty()) {</div>
+<div class="line"><a name="l03162"></a><span class="lineno"> 3162</span>     <span class="keywordflow">if</span> (llvm::NamedMDNode *CUNode = TheModule.getNamedMetadata(<span class="stringliteral">"llvm.dbg.cu"</span>)) {</div>
+<div class="line"><a name="l03163"></a><span class="lineno"> 3163</span>       llvm::NamedMDNode *GCov = TheModule.getOrInsertNamedMetadata(<span class="stringliteral">"llvm.gcov"</span>);</div>
+<div class="line"><a name="l03164"></a><span class="lineno"> 3164</span>       llvm::LLVMContext &Ctx = TheModule.getContext();</div>
+<div class="line"><a name="l03165"></a><span class="lineno"> 3165</span>       llvm::MDString *CoverageFile =</div>
+<div class="line"><a name="l03166"></a><span class="lineno"> 3166</span>           llvm::MDString::get(Ctx, <a class="code" href="classclang_1_1CodeGen_1_1CodeGenModule.html#a054eb00391038519d37236032f1ebfe5">getCodeGenOpts</a>().CoverageFile);</div>
+<div class="line"><a name="l03167"></a><span class="lineno"> 3167</span>       <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0, e = CUNode->getNumOperands(); i != e; ++i) {</div>
+<div class="line"><a name="l03168"></a><span class="lineno"> 3168</span>         llvm::MDNode *CU = CUNode->getOperand(i);</div>
+<div class="line"><a name="l03169"></a><span class="lineno"> 3169</span>         <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">llvm::Value</a> *node[] = { CoverageFile, CU };</div>
+<div class="line"><a name="l03170"></a><span class="lineno"> 3170</span>         llvm::MDNode *N = llvm::MDNode::get(Ctx, node);</div>
+<div class="line"><a name="l03171"></a><span class="lineno"> 3171</span>         GCov->addOperand(N);</div>
+<div class="line"><a name="l03172"></a><span class="lineno"> 3172</span>       }</div>
+<div class="line"><a name="l03173"></a><span class="lineno"> 3173</span>     }</div>
+<div class="line"><a name="l03174"></a><span class="lineno"> 3174</span>   }</div>
+<div class="line"><a name="l03175"></a><span class="lineno"> 3175</span> }</div>
+<div class="line"><a name="l03176"></a><span class="lineno"> 3176</span> </div>
+<div class="line"><a name="l03177"></a><span class="lineno"> 3177</span> llvm::Constant *CodeGenModule::EmitUuidofInitializer(StringRef Uuid,</div>
+<div class="line"><a name="l03178"></a><span class="lineno"> 3178</span>                                                      <a class="code" href="classclang_1_1QualType.html">QualType</a> GuidType) {</div>
+<div class="line"><a name="l03179"></a><span class="lineno"> 3179</span>   <span class="comment">// Sema has checked that all uuid strings are of the form</span></div>
+<div class="line"><a name="l03180"></a><span class="lineno"> 3180</span>   <span class="comment">// "12345678-1234-1234-1234-1234567890ab".</span></div>
+<div class="line"><a name="l03181"></a><span class="lineno"> 3181</span>   assert(Uuid.size() == 36);</div>
+<div class="line"><a name="l03182"></a><span class="lineno"> 3182</span>   <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> i = 0; i < 36; ++i) {</div>
+<div class="line"><a name="l03183"></a><span class="lineno"> 3183</span>     <span class="keywordflow">if</span> (i == 8 || i == 13 || i == 18 || i == 23) assert(Uuid[i] == <span class="charliteral">'-'</span>);</div>
+<div class="line"><a name="l03184"></a><span class="lineno"> 3184</span>     <span class="keywordflow">else</span>                                         assert(<a class="code" href="namespaceclang.html#a0f92dc9760d6c81fb0dd114eb3d08be0" title="Return true if this character is an ASCII hex digit: [0-9a-fA-F].">isHexDigit</a>(Uuid[i]));</div>
+<div class="line"><a name="l03185"></a><span class="lineno"> 3185</span>   }</div>
+<div class="line"><a name="l03186"></a><span class="lineno"> 3186</span> </div>
+<div class="line"><a name="l03187"></a><span class="lineno"> 3187</span>   <span class="keyword">const</span> <span class="keywordtype">unsigned</span> Field3ValueOffsets[8] = { 19, 21, 24, 26, 28, 30, 32, 34 };</div>
+<div class="line"><a name="l03188"></a><span class="lineno"> 3188</span> </div>
+<div class="line"><a name="l03189"></a><span class="lineno"> 3189</span>   llvm::Constant *Field3[8];</div>
+<div class="line"><a name="l03190"></a><span class="lineno"> 3190</span>   <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> Idx = 0; Idx < 8; ++Idx)</div>
+<div class="line"><a name="l03191"></a><span class="lineno"> 3191</span>     Field3[Idx] = llvm::ConstantInt::get(</div>
+<div class="line"><a name="l03192"></a><span class="lineno"> 3192</span>         <a class="code" href="structclang_1_1CodeGen_1_1CodeGenTypeCache.html#a329e1a1ea4a981895ad14b70611e163b" title="i8, i16, i32, and i64">Int8Ty</a>, Uuid.substr(Field3ValueOffsets[Idx], 2), 16);</div>
+<div class="line"><a name="l03193"></a><span class="lineno"> 3193</span> </div>
+<div class="line"><a name="l03194"></a><span class="lineno"> 3194</span>   llvm::Constant *Fields[4] = {</div>
+<div class="line"><a name="l03195"></a><span class="lineno"> 3195</span>     llvm::ConstantInt::get(<a class="code" href="structclang_1_1CodeGen_1_1CodeGenTypeCache.html#a9b70851ea2ff034ca9a5443ce213a81c">Int32Ty</a>, Uuid.substr(0,  8), 16),</div>
+<div class="line"><a name="l03196"></a><span class="lineno"> 3196</span>     llvm::ConstantInt::get(<a class="code" href="structclang_1_1CodeGen_1_1CodeGenTypeCache.html#aa5aa690f05d199fd0cbc08bae591354e">Int16Ty</a>, Uuid.substr(9,  4), 16),</div>
+<div class="line"><a name="l03197"></a><span class="lineno"> 3197</span>     llvm::ConstantInt::get(<a class="code" href="structclang_1_1CodeGen_1_1CodeGenTypeCache.html#aa5aa690f05d199fd0cbc08bae591354e">Int16Ty</a>, Uuid.substr(14, 4), 16),</div>
+<div class="line"><a name="l03198"></a><span class="lineno"> 3198</span>     llvm::ConstantArray::get(llvm::ArrayType::get(<a class="code" href="structclang_1_1CodeGen_1_1CodeGenTypeCache.html#a329e1a1ea4a981895ad14b70611e163b" title="i8, i16, i32, and i64">Int8Ty</a>, 8), Field3)</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> </div>
+<div class="line"><a name="l03201"></a><span class="lineno"> 3201</span>   <span class="keywordflow">return</span> llvm::ConstantStruct::getAnon(Fields);</div>
+<div class="line"><a name="l03202"></a><span class="lineno"> 3202</span> }</div>
+</div><!-- fragment --></div><!-- contents -->
+<hr>
+<p class="footer">
+Generated on Mon May 12 2014 12:13:28 for r$LatestRev$ by <a href="http://www.doxygen.org">Doxygen 
+1.8.3.1</a>.</p>
+<p class="footer">
+See the <a href="http://clang.llvm.org">Main Clang Web Page</a> for more 
+information.</p>
+</body>
+</html>

Added: www-releases/trunk/3.5.1/tools/clang/docs/doxygen/html/CodeGenModule_8d_source.html
URL: http://llvm.org/viewvc/llvm-project/www-releases/trunk/3.5.1/tools/clang/docs/doxygen/html/CodeGenModule_8d_source.html?rev=225843&view=auto
==============================================================================
--- www-releases/trunk/3.5.1/tools/clang/docs/doxygen/html/CodeGenModule_8d_source.html (added)
+++ www-releases/trunk/3.5.1/tools/clang/docs/doxygen/html/CodeGenModule_8d_source.html Tue Jan 13 16:55:20 2015
@@ -0,0 +1,732 @@
+<!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: CodeGenModule.d 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><li class="navelem"><a class="el" href="dir_e8103833ce80ba077e945e011f96d4ad.html">Release+Asserts</a></li>  </ul>
+</div>
+</div><!-- top -->
+<div class="header">
+  <div class="headertitle">
+<div class="title">CodeGenModule.d</div>  </div>
+</div><!--header-->
+<div class="contents">
+<a href="CodeGenModule_8d.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/Release+Asserts/CodeGenModule.o \</div>
+<div class="line"><a name="l00002"></a><span class="lineno">    2</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/Release+Asserts/CodeGenModule.d: \</div>
+<div class="line"><a name="l00003"></a><span class="lineno">    3</span>  CodeGenModule.cpp CodeGenModule.h CGVTables.h \</div>
+<div class="line"><a name="l00004"></a><span class="lineno">    4</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/BaseSubobject.h \</div>
+<div class="line"><a name="l00005"></a><span class="lineno">    5</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/CharUnits.h \</div>
+<div class="line"><a name="l00006"></a><span class="lineno">    6</span>  /home/tstellar/llvm/include/llvm/ADT/DenseMapInfo.h \</div>
+<div class="line"><a name="l00007"></a><span class="lineno">    7</span>  /home/tstellar/llvm/include/llvm/Support/PointerLikeTypeTraits.h \</div>
+<div class="line"><a name="l00008"></a><span class="lineno">    8</span>  /home/tstellar/llvm/include/llvm/Support/DataTypes.h \</div>
+<div class="line"><a name="l00009"></a><span class="lineno">    9</span>  /home/tstellar/llvm/include/llvm/Support/type_traits.h \</div>
+<div class="line"><a name="l00010"></a><span class="lineno">   10</span>  /home/tstellar/llvm/include/llvm/Support/MathExtras.h \</div>
+<div class="line"><a name="l00011"></a><span class="lineno">   11</span>  /home/tstellar/llvm/include/llvm/Support/Compiler.h \</div>
+<div class="line"><a name="l00012"></a><span class="lineno">   12</span>  /home/tstellar/llvm/include/llvm/Config/llvm-config.h \</div>
+<div class="line"><a name="l00013"></a><span class="lineno">   13</span>  /home/tstellar/llvm/include/llvm/Support/SwapByteOrder.h \</div>
+<div class="line"><a name="l00014"></a><span class="lineno">   14</span>  /home/tstellar/llvm/include/llvm/ADT/DenseMap.h \</div>
+<div class="line"><a name="l00015"></a><span class="lineno">   15</span>  /home/tstellar/llvm/include/llvm/Support/AlignOf.h \</div>
+<div class="line"><a name="l00016"></a><span class="lineno">   16</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/GlobalDecl.h \</div>
+<div class="line"><a name="l00017"></a><span class="lineno">   17</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/DeclCXX.h \</div>
+<div class="line"><a name="l00018"></a><span class="lineno">   18</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/ASTUnresolvedSet.h \</div>
+<div class="line"><a name="l00019"></a><span class="lineno">   19</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/ASTVector.h \</div>
+<div class="line"><a name="l00020"></a><span class="lineno">   20</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/AttrIterator.h \</div>
+<div class="line"><a name="l00021"></a><span class="lineno">   21</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/LLVM.h \</div>
+<div class="line"><a name="l00022"></a><span class="lineno">   22</span>  /home/tstellar/llvm/include/llvm/Support/Casting.h \</div>
+<div class="line"><a name="l00023"></a><span class="lineno">   23</span>  /home/tstellar/llvm/include/llvm/ADT/None.h \</div>
+<div class="line"><a name="l00024"></a><span class="lineno">   24</span>  /home/tstellar/llvm/include/llvm/ADT/PointerIntPair.h \</div>
+<div class="line"><a name="l00025"></a><span class="lineno">   25</span>  /home/tstellar/llvm/include/llvm/Support/<a class="code" href="Format_8cpp.html#a0805f884ee63233d49322f71926371de">Allocator</a>.h \</div>
+<div class="line"><a name="l00026"></a><span class="lineno">   26</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/UnresolvedSet.h \</div>
+<div class="line"><a name="l00027"></a><span class="lineno">   27</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/DeclAccessPair.h \</div>
+<div class="line"><a name="l00028"></a><span class="lineno">   28</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/Specifiers.h \</div>
+<div class="line"><a name="l00029"></a><span class="lineno">   29</span>  /home/tstellar/llvm/include/llvm/ADT/ArrayRef.h \</div>
+<div class="line"><a name="l00030"></a><span class="lineno">   30</span>  /home/tstellar/llvm/include/llvm/ADT/SmallVector.h \</div>
+<div class="line"><a name="l00031"></a><span class="lineno">   31</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/Decl.h \</div>
+<div class="line"><a name="l00032"></a><span class="lineno">   32</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/APValue.h \</div>
+<div class="line"><a name="l00033"></a><span class="lineno">   33</span>  /home/tstellar/llvm/include/llvm/ADT/APFloat.h \</div>
+<div class="line"><a name="l00034"></a><span class="lineno">   34</span>  /home/tstellar/llvm/include/llvm/ADT/APInt.h \</div>
+<div class="line"><a name="l00035"></a><span class="lineno">   35</span>  /home/tstellar/llvm/include/llvm/ADT/APSInt.h \</div>
+<div class="line"><a name="l00036"></a><span class="lineno">   36</span>  /home/tstellar/llvm/include/llvm/ADT/PointerUnion.h \</div>
+<div class="line"><a name="l00037"></a><span class="lineno">   37</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/DeclBase.h \</div>
+<div class="line"><a name="l00038"></a><span class="lineno">   38</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/DeclarationName.h \</div>
+<div class="line"><a name="l00039"></a><span class="lineno">   39</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/IdentifierTable.h \</div>
+<div class="line"><a name="l00040"></a><span class="lineno">   40</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/OperatorKinds.h \</div>
+<div class="line"><a name="l00041"></a><span class="lineno">   41</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/OperatorKinds.def \</div>
+<div class="line"><a name="l00042"></a><span class="lineno">   42</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/TokenKinds.h \</div>
+<div class="line"><a name="l00043"></a><span class="lineno">   43</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/TokenKinds.def \</div>
+<div class="line"><a name="l00044"></a><span class="lineno">   44</span>  /home/tstellar/llvm/include/llvm/ADT/SmallString.h \</div>
+<div class="line"><a name="l00045"></a><span class="lineno">   45</span>  /home/tstellar/llvm/include/llvm/ADT/StringRef.h \</div>
+<div class="line"><a name="l00046"></a><span class="lineno">   46</span>  /home/tstellar/llvm/include/llvm/ADT/StringMap.h \</div>
+<div class="line"><a name="l00047"></a><span class="lineno">   47</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/PartialDiagnostic.h \</div>
+<div class="line"><a name="l00048"></a><span class="lineno">   48</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/Diagnostic.h \</div>
+<div class="line"><a name="l00049"></a><span class="lineno">   49</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/DiagnosticIDs.h \</div>
+<div class="line"><a name="l00050"></a><span class="lineno">   50</span>  /home/tstellar/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h \</div>
+<div class="line"><a name="l00051"></a><span class="lineno">   51</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/DiagnosticCommonKinds.inc \</div>
+<div class="line"><a name="l00052"></a><span class="lineno">   52</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/DiagnosticOptions.h \</div>
+<div class="line"><a name="l00053"></a><span class="lineno">   53</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/DiagnosticOptions.def \</div>
+<div class="line"><a name="l00054"></a><span class="lineno">   54</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/SourceLocation.h \</div>
+<div class="line"><a name="l00055"></a><span class="lineno">   55</span>  /home/tstellar/llvm/include/llvm/ADT/STLExtras.h \</div>
+<div class="line"><a name="l00056"></a><span class="lineno">   56</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/<a class="code" href="namespaceclang.html#a78aadfeaf316ded55fdd2d1a9c8815b6" title="Describes the different kinds of linkage (C++ [basic.link], C99 6.2.2) that an entity may have...">Linkage</a>.h \</div>
+<div class="line"><a name="l00057"></a><span class="lineno">   57</span>  /home/tstellar/llvm/include/llvm/Support/PrettyStackTrace.h \</div>
+<div class="line"><a name="l00058"></a><span class="lineno">   58</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/DeclNodes.inc \</div>
+<div class="line"><a name="l00059"></a><span class="lineno">   59</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/ExternalASTSource.h \</div>
+<div class="line"><a name="l00060"></a><span class="lineno">   60</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/Redeclarable.h \</div>
+<div class="line"><a name="l00061"></a><span class="lineno">   61</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/Type.h \</div>
+<div class="line"><a name="l00062"></a><span class="lineno">   62</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/NestedNameSpecifier.h \</div>
+<div class="line"><a name="l00063"></a><span class="lineno">   63</span>  /home/tstellar/llvm/include/llvm/ADT/FoldingSet.h \</div>
+<div class="line"><a name="l00064"></a><span class="lineno">   64</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/TemplateName.h \</div>
+<div class="line"><a name="l00065"></a><span class="lineno">   65</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/<a class="code" href="namespaceclang.html#af8a91eed04532d5da41ef08e7c9c081e" title="The various types of exception specifications that exist in C++11.">ExceptionSpecificationType</a>.h \</div>
+<div class="line"><a name="l00066"></a><span class="lineno">   66</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/<a class="code" href="namespaceclang.html#afbab15cd4aa598c4e6d9192f7ac4f102" title="Describes the different kinds of visibility that a declaration may have.">Visibility</a>.h \</div>
+<div class="line"><a name="l00067"></a><span class="lineno">   67</span>  /home/tstellar/llvm/include/llvm/ADT/Optional.h \</div>
+<div class="line"><a name="l00068"></a><span class="lineno">   68</span>  /home/tstellar/llvm/include/llvm/ADT/Twine.h \</div>
+<div class="line"><a name="l00069"></a><span class="lineno">   69</span>  /home/tstellar/llvm/include/llvm/Support/ErrorHandling.h \</div>
+<div class="line"><a name="l00070"></a><span class="lineno">   70</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/TypeNodes.def \</div>
+<div class="line"><a name="l00071"></a><span class="lineno">   71</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/BuiltinTypes.def \</div>
+<div class="line"><a name="l00072"></a><span class="lineno">   72</span>  /home/tstellar/llvm/include/llvm/Support/raw_ostream.h \</div>
+<div class="line"><a name="l00073"></a><span class="lineno">   73</span>  /home/tstellar/llvm/include/llvm/Support/FileSystem.h \</div>
+<div class="line"><a name="l00074"></a><span class="lineno">   74</span>  /home/tstellar/llvm/include/llvm/ADT/OwningPtr.h \</div>
+<div class="line"><a name="l00075"></a><span class="lineno">   75</span>  /home/tstellar/llvm/include/llvm/Support/TimeValue.h \</div>
+<div class="line"><a name="l00076"></a><span class="lineno">   76</span>  /home/tstellar/llvm/include/llvm/Support/system_error.h \</div>
+<div class="line"><a name="l00077"></a><span class="lineno">   77</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/Expr.h \</div>
+<div class="line"><a name="l00078"></a><span class="lineno">   78</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/OperationKinds.h \</div>
+<div class="line"><a name="l00079"></a><span class="lineno">   79</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/Stmt.h \</div>
+<div class="line"><a name="l00080"></a><span class="lineno">   80</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/DeclGroup.h \</div>
+<div class="line"><a name="l00081"></a><span class="lineno">   81</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/StmtIterator.h \</div>
+<div class="line"><a name="l00082"></a><span class="lineno">   82</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/CapturedStmt.h \</div>
+<div class="line"><a name="l00083"></a><span class="lineno">   83</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/StmtNodes.inc \</div>
+<div class="line"><a name="l00084"></a><span class="lineno">   84</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/TemplateBase.h \</div>
+<div class="line"><a name="l00085"></a><span class="lineno">   85</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/CharInfo.h \</div>
+<div class="line"><a name="l00086"></a><span class="lineno">   86</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/TypeTraits.h \</div>
+<div class="line"><a name="l00087"></a><span class="lineno">   87</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/Builtins.def \</div>
+<div class="line"><a name="l00088"></a><span class="lineno">   88</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/ExprCXX.h \</div>
+<div class="line"><a name="l00089"></a><span class="lineno">   89</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/ExpressionTraits.h \</div>
+<div class="line"><a name="l00090"></a><span class="lineno">   90</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/Lambda.h \</div>
+<div class="line"><a name="l00091"></a><span class="lineno">   91</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/TypeLoc.h \</div>
+<div class="line"><a name="l00092"></a><span class="lineno">   92</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/TypeLocNodes.def \</div>
+<div class="line"><a name="l00093"></a><span class="lineno">   93</span>  /home/tstellar/llvm/include/llvm/ADT/SmallPtrSet.h \</div>
+<div class="line"><a name="l00094"></a><span class="lineno">   94</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/DeclObjC.h \</div>
+<div class="line"><a name="l00095"></a><span class="lineno">   95</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/<a class="code" href="namespaceclang.html#a0bca8d4a06a5e7175d2177c94788c9b4" title="Whether all locations of the selector identifiers are in a "standard" position.">SelectorLocationsKind</a>.h \</div>
+<div class="line"><a name="l00096"></a><span class="lineno">   96</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/ABI.h \</div>
+<div class="line"><a name="l00097"></a><span class="lineno">   97</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/VTableBuilder.h \</div>
+<div class="line"><a name="l00098"></a><span class="lineno">   98</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/CXXInheritance.h \</div>
+<div class="line"><a name="l00099"></a><span class="lineno">   99</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/TypeOrdering.h \</div>
+<div class="line"><a name="l00100"></a><span class="lineno">  100</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/CanonicalType.h \</div>
+<div class="line"><a name="l00101"></a><span class="lineno">  101</span>  /home/tstellar/llvm/include/llvm/ADT/MapVector.h \</div>
+<div class="line"><a name="l00102"></a><span class="lineno">  102</span>  /home/tstellar/llvm/include/llvm/ADT/SmallSet.h \</div>
+<div class="line"><a name="l00103"></a><span class="lineno">  103</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/RecordLayout.h \</div>
+<div class="line"><a name="l00104"></a><span class="lineno">  104</span>  /home/tstellar/llvm/include/llvm/ADT/SetVector.h \</div>
+<div class="line"><a name="l00105"></a><span class="lineno">  105</span>  /home/tstellar/llvm/include/llvm/ADT/DenseSet.h \</div>
+<div class="line"><a name="l00106"></a><span class="lineno">  106</span>  /home/tstellar/llvm/include/llvm/IR/GlobalVariable.h \</div>
+<div class="line"><a name="l00107"></a><span class="lineno">  107</span>  /home/tstellar/llvm/include/llvm/ADT/ilist_node.h \</div>
+<div class="line"><a name="l00108"></a><span class="lineno">  108</span>  /home/tstellar/llvm/include/llvm/IR/GlobalValue.h \</div>
+<div class="line"><a name="l00109"></a><span class="lineno">  109</span>  /home/tstellar/llvm/include/llvm/IR/Constant.h \</div>
+<div class="line"><a name="l00110"></a><span class="lineno">  110</span>  /home/tstellar/llvm/include/llvm/IR/User.h \</div>
+<div class="line"><a name="l00111"></a><span class="lineno">  111</span>  /home/tstellar/llvm/include/llvm/IR/<a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">Value</a>.h \</div>
+<div class="line"><a name="l00112"></a><span class="lineno">  112</span>  /home/tstellar/llvm/include/llvm/IR/Use.h \</div>
+<div class="line"><a name="l00113"></a><span class="lineno">  113</span>  /home/tstellar/llvm/include/llvm/Support/CBindingWrapping.h \</div>
+<div class="line"><a name="l00114"></a><span class="lineno">  114</span>  /home/tstellar/llvm/include/llvm-c/Core.h \</div>
+<div class="line"><a name="l00115"></a><span class="lineno">  115</span>  /home/tstellar/llvm/include/llvm/IR/DerivedTypes.h \</div>
+<div class="line"><a name="l00116"></a><span class="lineno">  116</span>  /home/tstellar/llvm/include/llvm/IR/Type.h \</div>
+<div class="line"><a name="l00117"></a><span class="lineno">  117</span>  /home/tstellar/llvm/include/llvm/IR/OperandTraits.h CodeGenTypes.h \
+ CGCall.h CGValue.h \</div>
+<div class="line"><a name="l00118"></a><span class="lineno">  118</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/ASTContext.h \</div>
+<div class="line"><a name="l00119"></a><span class="lineno">  119</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/ASTTypeTraits.h \</div>
+<div class="line"><a name="l00120"></a><span class="lineno">  120</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/ASTFwd.h \</div>
+<div class="line"><a name="l00121"></a><span class="lineno">  121</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/CommentCommandTraits.h \</div>
+<div class="line"><a name="l00122"></a><span class="lineno">  122</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/CommentOptions.h \</div>
+<div class="line"><a name="l00123"></a><span class="lineno">  123</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/CommentCommandList.inc \</div>
+<div class="line"><a name="l00124"></a><span class="lineno">  124</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/PrettyPrinter.h \</div>
+<div class="line"><a name="l00125"></a><span class="lineno">  125</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/LangOptions.h \</div>
+<div class="line"><a name="l00126"></a><span class="lineno">  126</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/ObjCRuntime.h \</div>
+<div class="line"><a name="l00127"></a><span class="lineno">  127</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/VersionTuple.h \</div>
+<div class="line"><a name="l00128"></a><span class="lineno">  128</span>  /home/tstellar/llvm/include/llvm/ADT/Triple.h \</div>
+<div class="line"><a name="l00129"></a><span class="lineno">  129</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/Sanitizers.def \</div>
+<div class="line"><a name="l00130"></a><span class="lineno">  130</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/LangOptions.def \</div>
+<div class="line"><a name="l00131"></a><span class="lineno">  131</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/OpenCLExtensions.def \</div>
+<div class="line"><a name="l00132"></a><span class="lineno">  132</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/RawCommentList.h \</div>
+<div class="line"><a name="l00133"></a><span class="lineno">  133</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/SourceManager.h \</div>
+<div class="line"><a name="l00134"></a><span class="lineno">  134</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/FileManager.h \</div>
+<div class="line"><a name="l00135"></a><span class="lineno">  135</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/FileSystemOptions.h \</div>
+<div class="line"><a name="l00136"></a><span class="lineno">  136</span>  /home/tstellar/llvm/include/llvm/Support/MemoryBuffer.h \</div>
+<div class="line"><a name="l00137"></a><span class="lineno">  137</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/AddressSpaces.h \</div>
+<div class="line"><a name="l00138"></a><span class="lineno">  138</span>  /home/tstellar/llvm/include/llvm/ADT/TinyPtrVector.h EHScopeStack.h \</div>
+<div class="line"><a name="l00139"></a><span class="lineno">  139</span>  /home/tstellar/llvm/include/llvm/IR/BasicBlock.h \</div>
+<div class="line"><a name="l00140"></a><span class="lineno">  140</span>  /home/tstellar/llvm/include/llvm/ADT/ilist.h \</div>
+<div class="line"><a name="l00141"></a><span class="lineno">  141</span>  /home/tstellar/llvm/include/llvm/IR/Instruction.h \</div>
+<div class="line"><a name="l00142"></a><span class="lineno">  142</span>  /home/tstellar/llvm/include/llvm/Support/DebugLoc.h \</div>
+<div class="line"><a name="l00143"></a><span class="lineno">  143</span>  /home/tstellar/llvm/include/llvm/IR/Instruction.def \</div>
+<div class="line"><a name="l00144"></a><span class="lineno">  144</span>  /home/tstellar/llvm/include/llvm/IR/SymbolTableListTraits.h \</div>
+<div class="line"><a name="l00145"></a><span class="lineno">  145</span>  /home/tstellar/llvm/include/llvm/IR/Instructions.h \</div>
+<div class="line"><a name="l00146"></a><span class="lineno">  146</span>  /home/tstellar/llvm/include/llvm/IR/Attributes.h \</div>
+<div class="line"><a name="l00147"></a><span class="lineno">  147</span>  /home/tstellar/llvm/include/llvm/IR/<a class="code" href="namespaceclang.html#ae6d16e133294b0b9c8c8d3108aadd25b" title="CallingConv - Specifies the calling convention that a function uses.">CallingConv</a>.h \</div>
+<div class="line"><a name="l00148"></a><span class="lineno">  148</span>  /home/tstellar/llvm/include/llvm/IR/InstrTypes.h ABIInfo.h \</div>
+<div class="line"><a name="l00149"></a><span class="lineno">  149</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/CodeGen/CGFunctionInfo.h \</div>
+<div class="line"><a name="l00150"></a><span class="lineno">  150</span>  /home/tstellar/llvm/include/llvm/IR/Module.h \</div>
+<div class="line"><a name="l00151"></a><span class="lineno">  151</span>  /home/tstellar/llvm/include/llvm/IR/Function.h \</div>
+<div class="line"><a name="l00152"></a><span class="lineno">  152</span>  /home/tstellar/llvm/include/llvm/IR/Argument.h \</div>
+<div class="line"><a name="l00153"></a><span class="lineno">  153</span>  /home/tstellar/llvm/include/llvm/IR/GlobalAlias.h \</div>
+<div class="line"><a name="l00154"></a><span class="lineno">  154</span>  /home/tstellar/llvm/include/llvm/IR/Metadata.h \</div>
+<div class="line"><a name="l00155"></a><span class="lineno">  155</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/Attr.h \</div>
+<div class="line"><a name="l00156"></a><span class="lineno">  156</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/AttrKinds.h \</div>
+<div class="line"><a name="l00157"></a><span class="lineno">  157</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/AttrList.inc \</div>
+<div class="line"><a name="l00158"></a><span class="lineno">  158</span>  /home/tstellar/llvm/include/llvm/ADT/StringSwitch.h \</div>
+<div class="line"><a name="l00159"></a><span class="lineno">  159</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/Attrs.inc \</div>
+<div class="line"><a name="l00160"></a><span class="lineno">  160</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/Mangle.h \</div>
+<div class="line"><a name="l00161"></a><span class="lineno">  161</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/Module.h \</div>
+<div class="line"><a name="l00162"></a><span class="lineno">  162</span>  /home/tstellar/llvm/include/llvm/Support/ValueHandle.h \</div>
+<div class="line"><a name="l00163"></a><span class="lineno">  163</span>  /home/tstellar/llvm/include/llvm/Transforms/Utils/SpecialCaseList.h \
+ CGCUDARuntime.h CGCXXABI.h CodeGenFunction.h CGBuilder.h \</div>
+<div class="line"><a name="l00164"></a><span class="lineno">  164</span>  /home/tstellar/llvm/include/llvm/IR/IRBuilder.h \</div>
+<div class="line"><a name="l00165"></a><span class="lineno">  165</span>  /home/tstellar/llvm/include/llvm/IR/DataLayout.h \</div>
+<div class="line"><a name="l00166"></a><span class="lineno">  166</span>  /home/tstellar/llvm/include/llvm/Pass.h \</div>
+<div class="line"><a name="l00167"></a><span class="lineno">  167</span>  /home/tstellar/llvm/include/llvm/PassSupport.h \</div>
+<div class="line"><a name="l00168"></a><span class="lineno">  168</span>  /home/tstellar/llvm/include/llvm/Pass.h \</div>
+<div class="line"><a name="l00169"></a><span class="lineno">  169</span>  /home/tstellar/llvm/include/llvm/InitializePasses.h \</div>
+<div class="line"><a name="l00170"></a><span class="lineno">  170</span>  /home/tstellar/llvm/include/llvm/PassRegistry.h \</div>
+<div class="line"><a name="l00171"></a><span class="lineno">  171</span>  /home/tstellar/llvm/include/llvm/Support/Atomic.h \</div>
+<div class="line"><a name="l00172"></a><span class="lineno">  172</span>  /home/tstellar/llvm/include/llvm/Support/Valgrind.h \</div>
+<div class="line"><a name="l00173"></a><span class="lineno">  173</span>  /home/tstellar/llvm/include/llvm/PassAnalysisSupport.h \</div>
+<div class="line"><a name="l00174"></a><span class="lineno">  174</span>  /home/tstellar/llvm/include/llvm/IR/LLVMContext.h \</div>
+<div class="line"><a name="l00175"></a><span class="lineno">  175</span>  /home/tstellar/llvm/include/llvm/IR/Operator.h \</div>
+<div class="line"><a name="l00176"></a><span class="lineno">  176</span>  /home/tstellar/llvm/include/llvm/IR/Constants.h \</div>
+<div class="line"><a name="l00177"></a><span class="lineno">  177</span>  /home/tstellar/llvm/include/llvm/Support/GetElementPtrTypeIterator.h \</div>
+<div class="line"><a name="l00178"></a><span class="lineno">  178</span>  /home/tstellar/llvm/include/llvm/Support/ConstantFolder.h CGDebugInfo.h \</div>
+<div class="line"><a name="l00179"></a><span class="lineno">  179</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Frontend/CodeGenOptions.h \</div>
+<div class="line"><a name="l00180"></a><span class="lineno">  180</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Frontend/CodeGenOptions.def \</div>
+<div class="line"><a name="l00181"></a><span class="lineno">  181</span>  /home/tstellar/llvm/include/llvm/DIBuilder.h \</div>
+<div class="line"><a name="l00182"></a><span class="lineno">  182</span>  /home/tstellar/llvm/include/llvm/DebugInfo.h \</div>
+<div class="line"><a name="l00183"></a><span class="lineno">  183</span>  /home/tstellar/llvm/include/llvm/Support/Dwarf.h \</div>
+<div class="line"><a name="l00184"></a><span class="lineno">  184</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/ExprObjC.h \</div>
+<div class="line"><a name="l00185"></a><span class="lineno">  185</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/TargetInfo.h \</div>
+<div class="line"><a name="l00186"></a><span class="lineno">  186</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/TargetCXXABI.h \</div>
+<div class="line"><a name="l00187"></a><span class="lineno">  187</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/TargetOptions.h \</div>
+<div class="line"><a name="l00188"></a><span class="lineno">  188</span>  /home/tstellar/llvm/include/llvm/Support/Debug.h CGObjCRuntime.h \
+ CGOpenCLRuntime.h CodeGenTBAA.h \</div>
+<div class="line"><a name="l00189"></a><span class="lineno">  189</span>  /home/tstellar/llvm/include/llvm/IR/MDBuilder.h TargetInfo.h \</div>
+<div class="line"><a name="l00190"></a><span class="lineno">  190</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/DeclTemplate.h \</div>
+<div class="line"><a name="l00191"></a><span class="lineno">  191</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/RecursiveASTVisitor.h \</div>
+<div class="line"><a name="l00192"></a><span class="lineno">  192</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/DeclFriend.h \</div>
+<div class="line"><a name="l00193"></a><span class="lineno">  193</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/DeclOpenMP.h \</div>
+<div class="line"><a name="l00194"></a><span class="lineno">  194</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/StmtCXX.h \</div>
+<div class="line"><a name="l00195"></a><span class="lineno">  195</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/StmtObjC.h \</div>
+<div class="line"><a name="l00196"></a><span class="lineno">  196</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/StmtOpenMP.h \</div>
+<div class="line"><a name="l00197"></a><span class="lineno">  197</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/OpenMPKinds.h \</div>
+<div class="line"><a name="l00198"></a><span class="lineno">  198</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/OpenMPKinds.def \</div>
+<div class="line"><a name="l00199"></a><span class="lineno">  199</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/Builtins.h \</div>
+<div class="line"><a name="l00200"></a><span class="lineno">  200</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/Version.h \</div>
+<div class="line"><a name="l00201"></a><span class="lineno">  201</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/Version.inc \</div>
+<div class="line"><a name="l00202"></a><span class="lineno">  202</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Sema/SemaDiagnostic.h \</div>
+<div class="line"><a name="l00203"></a><span class="lineno">  203</span>  /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/DiagnosticSemaKinds.inc \</div>
+<div class="line"><a name="l00204"></a><span class="lineno">  204</span>  /home/tstellar/llvm/include/llvm/IR/Intrinsics.h \</div>
+<div class="line"><a name="l00205"></a><span class="lineno">  205</span>  /home/tstellar/llvm/include/llvm/IR/Intrinsics.gen \</div>
+<div class="line"><a name="l00206"></a><span class="lineno">  206</span>  /home/tstellar/llvm/include/llvm/Support/CallSite.h \</div>
+<div class="line"><a name="l00207"></a><span class="lineno">  207</span>  /home/tstellar/llvm/include/llvm/Support/ConvertUTF.h \</div>
+<div class="line"><a name="l00208"></a><span class="lineno">  208</span>  /home/tstellar/llvm/include/llvm/Target/Mangler.h</div>
+<div class="line"><a name="l00209"></a><span class="lineno">  209</span> </div>
+<div class="line"><a name="l00210"></a><span class="lineno">  210</span> CodeGenModule.h:</div>
+<div class="line"><a name="l00211"></a><span class="lineno">  211</span> </div>
+<div class="line"><a name="l00212"></a><span class="lineno">  212</span> CGVTables.h:</div>
+<div class="line"><a name="l00213"></a><span class="lineno">  213</span> </div>
+<div class="line"><a name="l00214"></a><span class="lineno">  214</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/BaseSubobject.h:</div>
+<div class="line"><a name="l00215"></a><span class="lineno">  215</span> </div>
+<div class="line"><a name="l00216"></a><span class="lineno">  216</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/CharUnits.h:</div>
+<div class="line"><a name="l00217"></a><span class="lineno">  217</span> </div>
+<div class="line"><a name="l00218"></a><span class="lineno">  218</span> /home/tstellar/llvm/include/llvm/ADT/DenseMapInfo.h:</div>
+<div class="line"><a name="l00219"></a><span class="lineno">  219</span> </div>
+<div class="line"><a name="l00220"></a><span class="lineno">  220</span> /home/tstellar/llvm/include/llvm/Support/PointerLikeTypeTraits.h:</div>
+<div class="line"><a name="l00221"></a><span class="lineno">  221</span> </div>
+<div class="line"><a name="l00222"></a><span class="lineno">  222</span> /home/tstellar/llvm/include/llvm/Support/DataTypes.h:</div>
+<div class="line"><a name="l00223"></a><span class="lineno">  223</span> </div>
+<div class="line"><a name="l00224"></a><span class="lineno">  224</span> /home/tstellar/llvm/include/llvm/Support/type_traits.h:</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> /home/tstellar/llvm/include/llvm/Support/MathExtras.h:</div>
+<div class="line"><a name="l00227"></a><span class="lineno">  227</span> </div>
+<div class="line"><a name="l00228"></a><span class="lineno">  228</span> /home/tstellar/llvm/include/llvm/Support/Compiler.h:</div>
+<div class="line"><a name="l00229"></a><span class="lineno">  229</span> </div>
+<div class="line"><a name="l00230"></a><span class="lineno">  230</span> /home/tstellar/llvm/include/llvm/Config/llvm-config.h:</div>
+<div class="line"><a name="l00231"></a><span class="lineno">  231</span> </div>
+<div class="line"><a name="l00232"></a><span class="lineno">  232</span> /home/tstellar/llvm/include/llvm/Support/SwapByteOrder.h:</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> /home/tstellar/llvm/include/llvm/ADT/DenseMap.h:</div>
+<div class="line"><a name="l00235"></a><span class="lineno">  235</span> </div>
+<div class="line"><a name="l00236"></a><span class="lineno">  236</span> /home/tstellar/llvm/include/llvm/Support/AlignOf.h:</div>
+<div class="line"><a name="l00237"></a><span class="lineno">  237</span> </div>
+<div class="line"><a name="l00238"></a><span class="lineno">  238</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/GlobalDecl.h:</div>
+<div class="line"><a name="l00239"></a><span class="lineno">  239</span> </div>
+<div class="line"><a name="l00240"></a><span class="lineno">  240</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/DeclCXX.h:</div>
+<div class="line"><a name="l00241"></a><span class="lineno">  241</span> </div>
+<div class="line"><a name="l00242"></a><span class="lineno">  242</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/ASTUnresolvedSet.h:</div>
+<div class="line"><a name="l00243"></a><span class="lineno">  243</span> </div>
+<div class="line"><a name="l00244"></a><span class="lineno">  244</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/ASTVector.h:</div>
+<div class="line"><a name="l00245"></a><span class="lineno">  245</span> </div>
+<div class="line"><a name="l00246"></a><span class="lineno">  246</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/AttrIterator.h:</div>
+<div class="line"><a name="l00247"></a><span class="lineno">  247</span> </div>
+<div class="line"><a name="l00248"></a><span class="lineno">  248</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/LLVM.h:</div>
+<div class="line"><a name="l00249"></a><span class="lineno">  249</span> </div>
+<div class="line"><a name="l00250"></a><span class="lineno">  250</span> /home/tstellar/llvm/include/llvm/Support/Casting.h:</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> /home/tstellar/llvm/include/llvm/ADT/None.h:</div>
+<div class="line"><a name="l00253"></a><span class="lineno">  253</span> </div>
+<div class="line"><a name="l00254"></a><span class="lineno">  254</span> /home/tstellar/llvm/include/llvm/ADT/PointerIntPair.h:</div>
+<div class="line"><a name="l00255"></a><span class="lineno">  255</span> </div>
+<div class="line"><a name="l00256"></a><span class="lineno">  256</span> /home/tstellar/llvm/include/llvm/Support/<a class="code" href="Format_8cpp.html#a0805f884ee63233d49322f71926371de">Allocator</a>.h:</div>
+<div class="line"><a name="l00257"></a><span class="lineno">  257</span> </div>
+<div class="line"><a name="l00258"></a><span class="lineno">  258</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/UnresolvedSet.h:</div>
+<div class="line"><a name="l00259"></a><span class="lineno">  259</span> </div>
+<div class="line"><a name="l00260"></a><span class="lineno">  260</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/DeclAccessPair.h:</div>
+<div class="line"><a name="l00261"></a><span class="lineno">  261</span> </div>
+<div class="line"><a name="l00262"></a><span class="lineno">  262</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/Specifiers.h:</div>
+<div class="line"><a name="l00263"></a><span class="lineno">  263</span> </div>
+<div class="line"><a name="l00264"></a><span class="lineno">  264</span> /home/tstellar/llvm/include/llvm/ADT/ArrayRef.h:</div>
+<div class="line"><a name="l00265"></a><span class="lineno">  265</span> </div>
+<div class="line"><a name="l00266"></a><span class="lineno">  266</span> /home/tstellar/llvm/include/llvm/ADT/SmallVector.h:</div>
+<div class="line"><a name="l00267"></a><span class="lineno">  267</span> </div>
+<div class="line"><a name="l00268"></a><span class="lineno">  268</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/Decl.h:</div>
+<div class="line"><a name="l00269"></a><span class="lineno">  269</span> </div>
+<div class="line"><a name="l00270"></a><span class="lineno">  270</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/APValue.h:</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> /home/tstellar/llvm/include/llvm/ADT/APFloat.h:</div>
+<div class="line"><a name="l00273"></a><span class="lineno">  273</span> </div>
+<div class="line"><a name="l00274"></a><span class="lineno">  274</span> /home/tstellar/llvm/include/llvm/ADT/APInt.h:</div>
+<div class="line"><a name="l00275"></a><span class="lineno">  275</span> </div>
+<div class="line"><a name="l00276"></a><span class="lineno">  276</span> /home/tstellar/llvm/include/llvm/ADT/APSInt.h:</div>
+<div class="line"><a name="l00277"></a><span class="lineno">  277</span> </div>
+<div class="line"><a name="l00278"></a><span class="lineno">  278</span> /home/tstellar/llvm/include/llvm/ADT/PointerUnion.h:</div>
+<div class="line"><a name="l00279"></a><span class="lineno">  279</span> </div>
+<div class="line"><a name="l00280"></a><span class="lineno">  280</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/DeclBase.h:</div>
+<div class="line"><a name="l00281"></a><span class="lineno">  281</span> </div>
+<div class="line"><a name="l00282"></a><span class="lineno">  282</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/DeclarationName.h:</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> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/IdentifierTable.h:</div>
+<div class="line"><a name="l00285"></a><span class="lineno">  285</span> </div>
+<div class="line"><a name="l00286"></a><span class="lineno">  286</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/OperatorKinds.h:</div>
+<div class="line"><a name="l00287"></a><span class="lineno">  287</span> </div>
+<div class="line"><a name="l00288"></a><span class="lineno">  288</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/OperatorKinds.def:</div>
+<div class="line"><a name="l00289"></a><span class="lineno">  289</span> </div>
+<div class="line"><a name="l00290"></a><span class="lineno">  290</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/TokenKinds.h:</div>
+<div class="line"><a name="l00291"></a><span class="lineno">  291</span> </div>
+<div class="line"><a name="l00292"></a><span class="lineno">  292</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/TokenKinds.def:</div>
+<div class="line"><a name="l00293"></a><span class="lineno">  293</span> </div>
+<div class="line"><a name="l00294"></a><span class="lineno">  294</span> /home/tstellar/llvm/include/llvm/ADT/SmallString.h:</div>
+<div class="line"><a name="l00295"></a><span class="lineno">  295</span> </div>
+<div class="line"><a name="l00296"></a><span class="lineno">  296</span> /home/tstellar/llvm/include/llvm/ADT/StringRef.h:</div>
+<div class="line"><a name="l00297"></a><span class="lineno">  297</span> </div>
+<div class="line"><a name="l00298"></a><span class="lineno">  298</span> /home/tstellar/llvm/include/llvm/ADT/StringMap.h:</div>
+<div class="line"><a name="l00299"></a><span class="lineno">  299</span> </div>
+<div class="line"><a name="l00300"></a><span class="lineno">  300</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/PartialDiagnostic.h:</div>
+<div class="line"><a name="l00301"></a><span class="lineno">  301</span> </div>
+<div class="line"><a name="l00302"></a><span class="lineno">  302</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/Diagnostic.h:</div>
+<div class="line"><a name="l00303"></a><span class="lineno">  303</span> </div>
+<div class="line"><a name="l00304"></a><span class="lineno">  304</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/DiagnosticIDs.h:</div>
+<div class="line"><a name="l00305"></a><span class="lineno">  305</span> </div>
+<div class="line"><a name="l00306"></a><span class="lineno">  306</span> /home/tstellar/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:</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> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/DiagnosticCommonKinds.inc:</div>
+<div class="line"><a name="l00309"></a><span class="lineno">  309</span> </div>
+<div class="line"><a name="l00310"></a><span class="lineno">  310</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/DiagnosticOptions.h:</div>
+<div class="line"><a name="l00311"></a><span class="lineno">  311</span> </div>
+<div class="line"><a name="l00312"></a><span class="lineno">  312</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/DiagnosticOptions.def:</div>
+<div class="line"><a name="l00313"></a><span class="lineno">  313</span> </div>
+<div class="line"><a name="l00314"></a><span class="lineno">  314</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/SourceLocation.h:</div>
+<div class="line"><a name="l00315"></a><span class="lineno">  315</span> </div>
+<div class="line"><a name="l00316"></a><span class="lineno">  316</span> /home/tstellar/llvm/include/llvm/ADT/STLExtras.h:</div>
+<div class="line"><a name="l00317"></a><span class="lineno">  317</span> </div>
+<div class="line"><a name="l00318"></a><span class="lineno">  318</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/<a class="code" href="namespaceclang.html#a78aadfeaf316ded55fdd2d1a9c8815b6" title="Describes the different kinds of linkage (C++ [basic.link], C99 6.2.2) that an entity may have...">Linkage</a>.h:</div>
+<div class="line"><a name="l00319"></a><span class="lineno">  319</span> </div>
+<div class="line"><a name="l00320"></a><span class="lineno">  320</span> /home/tstellar/llvm/include/llvm/Support/PrettyStackTrace.h:</div>
+<div class="line"><a name="l00321"></a><span class="lineno">  321</span> </div>
+<div class="line"><a name="l00322"></a><span class="lineno">  322</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/DeclNodes.inc:</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> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/ExternalASTSource.h:</div>
+<div class="line"><a name="l00325"></a><span class="lineno">  325</span> </div>
+<div class="line"><a name="l00326"></a><span class="lineno">  326</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/Redeclarable.h:</div>
+<div class="line"><a name="l00327"></a><span class="lineno">  327</span> </div>
+<div class="line"><a name="l00328"></a><span class="lineno">  328</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/Type.h:</div>
+<div class="line"><a name="l00329"></a><span class="lineno">  329</span> </div>
+<div class="line"><a name="l00330"></a><span class="lineno">  330</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/NestedNameSpecifier.h:</div>
+<div class="line"><a name="l00331"></a><span class="lineno">  331</span> </div>
+<div class="line"><a name="l00332"></a><span class="lineno">  332</span> /home/tstellar/llvm/include/llvm/ADT/FoldingSet.h:</div>
+<div class="line"><a name="l00333"></a><span class="lineno">  333</span> </div>
+<div class="line"><a name="l00334"></a><span class="lineno">  334</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/TemplateName.h:</div>
+<div class="line"><a name="l00335"></a><span class="lineno">  335</span> </div>
+<div class="line"><a name="l00336"></a><span class="lineno">  336</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/<a class="code" href="namespaceclang.html#af8a91eed04532d5da41ef08e7c9c081e" title="The various types of exception specifications that exist in C++11.">ExceptionSpecificationType</a>.h:</div>
+<div class="line"><a name="l00337"></a><span class="lineno">  337</span> </div>
+<div class="line"><a name="l00338"></a><span class="lineno">  338</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/<a class="code" href="namespaceclang.html#afbab15cd4aa598c4e6d9192f7ac4f102" title="Describes the different kinds of visibility that a declaration may have.">Visibility</a>.h:</div>
+<div class="line"><a name="l00339"></a><span class="lineno">  339</span> </div>
+<div class="line"><a name="l00340"></a><span class="lineno">  340</span> /home/tstellar/llvm/include/llvm/ADT/Optional.h:</div>
+<div class="line"><a name="l00341"></a><span class="lineno">  341</span> </div>
+<div class="line"><a name="l00342"></a><span class="lineno">  342</span> /home/tstellar/llvm/include/llvm/ADT/Twine.h:</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> /home/tstellar/llvm/include/llvm/Support/ErrorHandling.h:</div>
+<div class="line"><a name="l00345"></a><span class="lineno">  345</span> </div>
+<div class="line"><a name="l00346"></a><span class="lineno">  346</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/TypeNodes.def:</div>
+<div class="line"><a name="l00347"></a><span class="lineno">  347</span> </div>
+<div class="line"><a name="l00348"></a><span class="lineno">  348</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/BuiltinTypes.def:</div>
+<div class="line"><a name="l00349"></a><span class="lineno">  349</span> </div>
+<div class="line"><a name="l00350"></a><span class="lineno">  350</span> /home/tstellar/llvm/include/llvm/Support/raw_ostream.h:</div>
+<div class="line"><a name="l00351"></a><span class="lineno">  351</span> </div>
+<div class="line"><a name="l00352"></a><span class="lineno">  352</span> /home/tstellar/llvm/include/llvm/Support/FileSystem.h:</div>
+<div class="line"><a name="l00353"></a><span class="lineno">  353</span> </div>
+<div class="line"><a name="l00354"></a><span class="lineno">  354</span> /home/tstellar/llvm/include/llvm/ADT/OwningPtr.h:</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> /home/tstellar/llvm/include/llvm/Support/TimeValue.h:</div>
+<div class="line"><a name="l00357"></a><span class="lineno">  357</span> </div>
+<div class="line"><a name="l00358"></a><span class="lineno">  358</span> /home/tstellar/llvm/include/llvm/Support/system_error.h:</div>
+<div class="line"><a name="l00359"></a><span class="lineno">  359</span> </div>
+<div class="line"><a name="l00360"></a><span class="lineno">  360</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/Expr.h:</div>
+<div class="line"><a name="l00361"></a><span class="lineno">  361</span> </div>
+<div class="line"><a name="l00362"></a><span class="lineno">  362</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/OperationKinds.h:</div>
+<div class="line"><a name="l00363"></a><span class="lineno">  363</span> </div>
+<div class="line"><a name="l00364"></a><span class="lineno">  364</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/Stmt.h:</div>
+<div class="line"><a name="l00365"></a><span class="lineno">  365</span> </div>
+<div class="line"><a name="l00366"></a><span class="lineno">  366</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/DeclGroup.h:</div>
+<div class="line"><a name="l00367"></a><span class="lineno">  367</span> </div>
+<div class="line"><a name="l00368"></a><span class="lineno">  368</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/StmtIterator.h:</div>
+<div class="line"><a name="l00369"></a><span class="lineno">  369</span> </div>
+<div class="line"><a name="l00370"></a><span class="lineno">  370</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/CapturedStmt.h:</div>
+<div class="line"><a name="l00371"></a><span class="lineno">  371</span> </div>
+<div class="line"><a name="l00372"></a><span class="lineno">  372</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/StmtNodes.inc:</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> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/TemplateBase.h:</div>
+<div class="line"><a name="l00375"></a><span class="lineno">  375</span> </div>
+<div class="line"><a name="l00376"></a><span class="lineno">  376</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/CharInfo.h:</div>
+<div class="line"><a name="l00377"></a><span class="lineno">  377</span> </div>
+<div class="line"><a name="l00378"></a><span class="lineno">  378</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/TypeTraits.h:</div>
+<div class="line"><a name="l00379"></a><span class="lineno">  379</span> </div>
+<div class="line"><a name="l00380"></a><span class="lineno">  380</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/Builtins.def:</div>
+<div class="line"><a name="l00381"></a><span class="lineno">  381</span> </div>
+<div class="line"><a name="l00382"></a><span class="lineno">  382</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/ExprCXX.h:</div>
+<div class="line"><a name="l00383"></a><span class="lineno">  383</span> </div>
+<div class="line"><a name="l00384"></a><span class="lineno">  384</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/ExpressionTraits.h:</div>
+<div class="line"><a name="l00385"></a><span class="lineno">  385</span> </div>
+<div class="line"><a name="l00386"></a><span class="lineno">  386</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/Lambda.h:</div>
+<div class="line"><a name="l00387"></a><span class="lineno">  387</span> </div>
+<div class="line"><a name="l00388"></a><span class="lineno">  388</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/TypeLoc.h:</div>
+<div class="line"><a name="l00389"></a><span class="lineno">  389</span> </div>
+<div class="line"><a name="l00390"></a><span class="lineno">  390</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/TypeLocNodes.def:</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> /home/tstellar/llvm/include/llvm/ADT/SmallPtrSet.h:</div>
+<div class="line"><a name="l00393"></a><span class="lineno">  393</span> </div>
+<div class="line"><a name="l00394"></a><span class="lineno">  394</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/DeclObjC.h:</div>
+<div class="line"><a name="l00395"></a><span class="lineno">  395</span> </div>
+<div class="line"><a name="l00396"></a><span class="lineno">  396</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/<a class="code" href="namespaceclang.html#a0bca8d4a06a5e7175d2177c94788c9b4" title="Whether all locations of the selector identifiers are in a "standard" position.">SelectorLocationsKind</a>.h:</div>
+<div class="line"><a name="l00397"></a><span class="lineno">  397</span> </div>
+<div class="line"><a name="l00398"></a><span class="lineno">  398</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/ABI.h:</div>
+<div class="line"><a name="l00399"></a><span class="lineno">  399</span> </div>
+<div class="line"><a name="l00400"></a><span class="lineno">  400</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/VTableBuilder.h:</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> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/CXXInheritance.h:</div>
+<div class="line"><a name="l00403"></a><span class="lineno">  403</span> </div>
+<div class="line"><a name="l00404"></a><span class="lineno">  404</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/TypeOrdering.h:</div>
+<div class="line"><a name="l00405"></a><span class="lineno">  405</span> </div>
+<div class="line"><a name="l00406"></a><span class="lineno">  406</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/CanonicalType.h:</div>
+<div class="line"><a name="l00407"></a><span class="lineno">  407</span> </div>
+<div class="line"><a name="l00408"></a><span class="lineno">  408</span> /home/tstellar/llvm/include/llvm/ADT/MapVector.h:</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> /home/tstellar/llvm/include/llvm/ADT/SmallSet.h:</div>
+<div class="line"><a name="l00411"></a><span class="lineno">  411</span> </div>
+<div class="line"><a name="l00412"></a><span class="lineno">  412</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/RecordLayout.h:</div>
+<div class="line"><a name="l00413"></a><span class="lineno">  413</span> </div>
+<div class="line"><a name="l00414"></a><span class="lineno">  414</span> /home/tstellar/llvm/include/llvm/ADT/SetVector.h:</div>
+<div class="line"><a name="l00415"></a><span class="lineno">  415</span> </div>
+<div class="line"><a name="l00416"></a><span class="lineno">  416</span> /home/tstellar/llvm/include/llvm/ADT/DenseSet.h:</div>
+<div class="line"><a name="l00417"></a><span class="lineno">  417</span> </div>
+<div class="line"><a name="l00418"></a><span class="lineno">  418</span> /home/tstellar/llvm/include/llvm/IR/GlobalVariable.h:</div>
+<div class="line"><a name="l00419"></a><span class="lineno">  419</span> </div>
+<div class="line"><a name="l00420"></a><span class="lineno">  420</span> /home/tstellar/llvm/include/llvm/ADT/ilist_node.h:</div>
+<div class="line"><a name="l00421"></a><span class="lineno">  421</span> </div>
+<div class="line"><a name="l00422"></a><span class="lineno">  422</span> /home/tstellar/llvm/include/llvm/IR/GlobalValue.h:</div>
+<div class="line"><a name="l00423"></a><span class="lineno">  423</span> </div>
+<div class="line"><a name="l00424"></a><span class="lineno">  424</span> /home/tstellar/llvm/include/llvm/IR/Constant.h:</div>
+<div class="line"><a name="l00425"></a><span class="lineno">  425</span> </div>
+<div class="line"><a name="l00426"></a><span class="lineno">  426</span> /home/tstellar/llvm/include/llvm/IR/User.h:</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> /home/tstellar/llvm/include/llvm/IR/<a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">Value</a>.h:</div>
+<div class="line"><a name="l00429"></a><span class="lineno">  429</span> </div>
+<div class="line"><a name="l00430"></a><span class="lineno">  430</span> /home/tstellar/llvm/include/llvm/IR/Use.h:</div>
+<div class="line"><a name="l00431"></a><span class="lineno">  431</span> </div>
+<div class="line"><a name="l00432"></a><span class="lineno">  432</span> /home/tstellar/llvm/include/llvm/Support/CBindingWrapping.h:</div>
+<div class="line"><a name="l00433"></a><span class="lineno">  433</span> </div>
+<div class="line"><a name="l00434"></a><span class="lineno">  434</span> /home/tstellar/llvm/include/llvm-c/Core.h:</div>
+<div class="line"><a name="l00435"></a><span class="lineno">  435</span> </div>
+<div class="line"><a name="l00436"></a><span class="lineno">  436</span> /home/tstellar/llvm/include/llvm/IR/DerivedTypes.h:</div>
+<div class="line"><a name="l00437"></a><span class="lineno">  437</span> </div>
+<div class="line"><a name="l00438"></a><span class="lineno">  438</span> /home/tstellar/llvm/include/llvm/IR/Type.h:</div>
+<div class="line"><a name="l00439"></a><span class="lineno">  439</span> </div>
+<div class="line"><a name="l00440"></a><span class="lineno">  440</span> /home/tstellar/llvm/include/llvm/IR/OperandTraits.h:</div>
+<div class="line"><a name="l00441"></a><span class="lineno">  441</span> </div>
+<div class="line"><a name="l00442"></a><span class="lineno">  442</span> CodeGenTypes.h:</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> CGCall.h:</div>
+<div class="line"><a name="l00445"></a><span class="lineno">  445</span> </div>
+<div class="line"><a name="l00446"></a><span class="lineno">  446</span> CGValue.h:</div>
+<div class="line"><a name="l00447"></a><span class="lineno">  447</span> </div>
+<div class="line"><a name="l00448"></a><span class="lineno">  448</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/ASTContext.h:</div>
+<div class="line"><a name="l00449"></a><span class="lineno">  449</span> </div>
+<div class="line"><a name="l00450"></a><span class="lineno">  450</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/ASTTypeTraits.h:</div>
+<div class="line"><a name="l00451"></a><span class="lineno">  451</span> </div>
+<div class="line"><a name="l00452"></a><span class="lineno">  452</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/ASTFwd.h:</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> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/CommentCommandTraits.h:</div>
+<div class="line"><a name="l00455"></a><span class="lineno">  455</span> </div>
+<div class="line"><a name="l00456"></a><span class="lineno">  456</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/CommentOptions.h:</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> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/CommentCommandList.inc:</div>
+<div class="line"><a name="l00459"></a><span class="lineno">  459</span> </div>
+<div class="line"><a name="l00460"></a><span class="lineno">  460</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/PrettyPrinter.h:</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> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/LangOptions.h:</div>
+<div class="line"><a name="l00463"></a><span class="lineno">  463</span> </div>
+<div class="line"><a name="l00464"></a><span class="lineno">  464</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/ObjCRuntime.h:</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> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/VersionTuple.h:</div>
+<div class="line"><a name="l00467"></a><span class="lineno">  467</span> </div>
+<div class="line"><a name="l00468"></a><span class="lineno">  468</span> /home/tstellar/llvm/include/llvm/ADT/Triple.h:</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> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/Sanitizers.def:</div>
+<div class="line"><a name="l00471"></a><span class="lineno">  471</span> </div>
+<div class="line"><a name="l00472"></a><span class="lineno">  472</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/LangOptions.def:</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> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/OpenCLExtensions.def:</div>
+<div class="line"><a name="l00475"></a><span class="lineno">  475</span> </div>
+<div class="line"><a name="l00476"></a><span class="lineno">  476</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/RawCommentList.h:</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> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/SourceManager.h:</div>
+<div class="line"><a name="l00479"></a><span class="lineno">  479</span> </div>
+<div class="line"><a name="l00480"></a><span class="lineno">  480</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/FileManager.h:</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> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/FileSystemOptions.h:</div>
+<div class="line"><a name="l00483"></a><span class="lineno">  483</span> </div>
+<div class="line"><a name="l00484"></a><span class="lineno">  484</span> /home/tstellar/llvm/include/llvm/Support/MemoryBuffer.h:</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> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/AddressSpaces.h:</div>
+<div class="line"><a name="l00487"></a><span class="lineno">  487</span> </div>
+<div class="line"><a name="l00488"></a><span class="lineno">  488</span> /home/tstellar/llvm/include/llvm/ADT/TinyPtrVector.h:</div>
+<div class="line"><a name="l00489"></a><span class="lineno">  489</span> </div>
+<div class="line"><a name="l00490"></a><span class="lineno">  490</span> EHScopeStack.h:</div>
+<div class="line"><a name="l00491"></a><span class="lineno">  491</span> </div>
+<div class="line"><a name="l00492"></a><span class="lineno">  492</span> /home/tstellar/llvm/include/llvm/IR/BasicBlock.h:</div>
+<div class="line"><a name="l00493"></a><span class="lineno">  493</span> </div>
+<div class="line"><a name="l00494"></a><span class="lineno">  494</span> /home/tstellar/llvm/include/llvm/ADT/ilist.h:</div>
+<div class="line"><a name="l00495"></a><span class="lineno">  495</span> </div>
+<div class="line"><a name="l00496"></a><span class="lineno">  496</span> /home/tstellar/llvm/include/llvm/IR/Instruction.h:</div>
+<div class="line"><a name="l00497"></a><span class="lineno">  497</span> </div>
+<div class="line"><a name="l00498"></a><span class="lineno">  498</span> /home/tstellar/llvm/include/llvm/Support/DebugLoc.h:</div>
+<div class="line"><a name="l00499"></a><span class="lineno">  499</span> </div>
+<div class="line"><a name="l00500"></a><span class="lineno">  500</span> /home/tstellar/llvm/include/llvm/IR/Instruction.def:</div>
+<div class="line"><a name="l00501"></a><span class="lineno">  501</span> </div>
+<div class="line"><a name="l00502"></a><span class="lineno">  502</span> /home/tstellar/llvm/include/llvm/IR/SymbolTableListTraits.h:</div>
+<div class="line"><a name="l00503"></a><span class="lineno">  503</span> </div>
+<div class="line"><a name="l00504"></a><span class="lineno">  504</span> /home/tstellar/llvm/include/llvm/IR/Instructions.h:</div>
+<div class="line"><a name="l00505"></a><span class="lineno">  505</span> </div>
+<div class="line"><a name="l00506"></a><span class="lineno">  506</span> /home/tstellar/llvm/include/llvm/IR/Attributes.h:</div>
+<div class="line"><a name="l00507"></a><span class="lineno">  507</span> </div>
+<div class="line"><a name="l00508"></a><span class="lineno">  508</span> /home/tstellar/llvm/include/llvm/IR/<a class="code" href="namespaceclang.html#ae6d16e133294b0b9c8c8d3108aadd25b" title="CallingConv - Specifies the calling convention that a function uses.">CallingConv</a>.h:</div>
+<div class="line"><a name="l00509"></a><span class="lineno">  509</span> </div>
+<div class="line"><a name="l00510"></a><span class="lineno">  510</span> /home/tstellar/llvm/include/llvm/IR/InstrTypes.h:</div>
+<div class="line"><a name="l00511"></a><span class="lineno">  511</span> </div>
+<div class="line"><a name="l00512"></a><span class="lineno">  512</span> ABIInfo.h:</div>
+<div class="line"><a name="l00513"></a><span class="lineno">  513</span> </div>
+<div class="line"><a name="l00514"></a><span class="lineno">  514</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/CodeGen/CGFunctionInfo.h:</div>
+<div class="line"><a name="l00515"></a><span class="lineno">  515</span> </div>
+<div class="line"><a name="l00516"></a><span class="lineno">  516</span> /home/tstellar/llvm/include/llvm/IR/Module.h:</div>
+<div class="line"><a name="l00517"></a><span class="lineno">  517</span> </div>
+<div class="line"><a name="l00518"></a><span class="lineno">  518</span> /home/tstellar/llvm/include/llvm/IR/Function.h:</div>
+<div class="line"><a name="l00519"></a><span class="lineno">  519</span> </div>
+<div class="line"><a name="l00520"></a><span class="lineno">  520</span> /home/tstellar/llvm/include/llvm/IR/Argument.h:</div>
+<div class="line"><a name="l00521"></a><span class="lineno">  521</span> </div>
+<div class="line"><a name="l00522"></a><span class="lineno">  522</span> /home/tstellar/llvm/include/llvm/IR/GlobalAlias.h:</div>
+<div class="line"><a name="l00523"></a><span class="lineno">  523</span> </div>
+<div class="line"><a name="l00524"></a><span class="lineno">  524</span> /home/tstellar/llvm/include/llvm/IR/Metadata.h:</div>
+<div class="line"><a name="l00525"></a><span class="lineno">  525</span> </div>
+<div class="line"><a name="l00526"></a><span class="lineno">  526</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/Attr.h:</div>
+<div class="line"><a name="l00527"></a><span class="lineno">  527</span> </div>
+<div class="line"><a name="l00528"></a><span class="lineno">  528</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/AttrKinds.h:</div>
+<div class="line"><a name="l00529"></a><span class="lineno">  529</span> </div>
+<div class="line"><a name="l00530"></a><span class="lineno">  530</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/AttrList.inc:</div>
+<div class="line"><a name="l00531"></a><span class="lineno">  531</span> </div>
+<div class="line"><a name="l00532"></a><span class="lineno">  532</span> /home/tstellar/llvm/include/llvm/ADT/StringSwitch.h:</div>
+<div class="line"><a name="l00533"></a><span class="lineno">  533</span> </div>
+<div class="line"><a name="l00534"></a><span class="lineno">  534</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/Attrs.inc:</div>
+<div class="line"><a name="l00535"></a><span class="lineno">  535</span> </div>
+<div class="line"><a name="l00536"></a><span class="lineno">  536</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/Mangle.h:</div>
+<div class="line"><a name="l00537"></a><span class="lineno">  537</span> </div>
+<div class="line"><a name="l00538"></a><span class="lineno">  538</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/Module.h:</div>
+<div class="line"><a name="l00539"></a><span class="lineno">  539</span> </div>
+<div class="line"><a name="l00540"></a><span class="lineno">  540</span> /home/tstellar/llvm/include/llvm/Support/ValueHandle.h:</div>
+<div class="line"><a name="l00541"></a><span class="lineno">  541</span> </div>
+<div class="line"><a name="l00542"></a><span class="lineno">  542</span> /home/tstellar/llvm/include/llvm/Transforms/Utils/SpecialCaseList.h:</div>
+<div class="line"><a name="l00543"></a><span class="lineno">  543</span> </div>
+<div class="line"><a name="l00544"></a><span class="lineno">  544</span> CGCUDARuntime.h:</div>
+<div class="line"><a name="l00545"></a><span class="lineno">  545</span> </div>
+<div class="line"><a name="l00546"></a><span class="lineno">  546</span> CGCXXABI.h:</div>
+<div class="line"><a name="l00547"></a><span class="lineno">  547</span> </div>
+<div class="line"><a name="l00548"></a><span class="lineno">  548</span> CodeGenFunction.h:</div>
+<div class="line"><a name="l00549"></a><span class="lineno">  549</span> </div>
+<div class="line"><a name="l00550"></a><span class="lineno">  550</span> CGBuilder.h:</div>
+<div class="line"><a name="l00551"></a><span class="lineno">  551</span> </div>
+<div class="line"><a name="l00552"></a><span class="lineno">  552</span> /home/tstellar/llvm/include/llvm/IR/IRBuilder.h:</div>
+<div class="line"><a name="l00553"></a><span class="lineno">  553</span> </div>
+<div class="line"><a name="l00554"></a><span class="lineno">  554</span> /home/tstellar/llvm/include/llvm/IR/DataLayout.h:</div>
+<div class="line"><a name="l00555"></a><span class="lineno">  555</span> </div>
+<div class="line"><a name="l00556"></a><span class="lineno">  556</span> /home/tstellar/llvm/include/llvm/Pass.h:</div>
+<div class="line"><a name="l00557"></a><span class="lineno">  557</span> </div>
+<div class="line"><a name="l00558"></a><span class="lineno">  558</span> /home/tstellar/llvm/include/llvm/PassSupport.h:</div>
+<div class="line"><a name="l00559"></a><span class="lineno">  559</span> </div>
+<div class="line"><a name="l00560"></a><span class="lineno">  560</span> /home/tstellar/llvm/include/llvm/Pass.h:</div>
+<div class="line"><a name="l00561"></a><span class="lineno">  561</span> </div>
+<div class="line"><a name="l00562"></a><span class="lineno">  562</span> /home/tstellar/llvm/include/llvm/InitializePasses.h:</div>
+<div class="line"><a name="l00563"></a><span class="lineno">  563</span> </div>
+<div class="line"><a name="l00564"></a><span class="lineno">  564</span> /home/tstellar/llvm/include/llvm/PassRegistry.h:</div>
+<div class="line"><a name="l00565"></a><span class="lineno">  565</span> </div>
+<div class="line"><a name="l00566"></a><span class="lineno">  566</span> /home/tstellar/llvm/include/llvm/Support/Atomic.h:</div>
+<div class="line"><a name="l00567"></a><span class="lineno">  567</span> </div>
+<div class="line"><a name="l00568"></a><span class="lineno">  568</span> /home/tstellar/llvm/include/llvm/Support/Valgrind.h:</div>
+<div class="line"><a name="l00569"></a><span class="lineno">  569</span> </div>
+<div class="line"><a name="l00570"></a><span class="lineno">  570</span> /home/tstellar/llvm/include/llvm/PassAnalysisSupport.h:</div>
+<div class="line"><a name="l00571"></a><span class="lineno">  571</span> </div>
+<div class="line"><a name="l00572"></a><span class="lineno">  572</span> /home/tstellar/llvm/include/llvm/IR/LLVMContext.h:</div>
+<div class="line"><a name="l00573"></a><span class="lineno">  573</span> </div>
+<div class="line"><a name="l00574"></a><span class="lineno">  574</span> /home/tstellar/llvm/include/llvm/IR/Operator.h:</div>
+<div class="line"><a name="l00575"></a><span class="lineno">  575</span> </div>
+<div class="line"><a name="l00576"></a><span class="lineno">  576</span> /home/tstellar/llvm/include/llvm/IR/Constants.h:</div>
+<div class="line"><a name="l00577"></a><span class="lineno">  577</span> </div>
+<div class="line"><a name="l00578"></a><span class="lineno">  578</span> /home/tstellar/llvm/include/llvm/Support/GetElementPtrTypeIterator.h:</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> /home/tstellar/llvm/include/llvm/Support/ConstantFolder.h:</div>
+<div class="line"><a name="l00581"></a><span class="lineno">  581</span> </div>
+<div class="line"><a name="l00582"></a><span class="lineno">  582</span> CGDebugInfo.h:</div>
+<div class="line"><a name="l00583"></a><span class="lineno">  583</span> </div>
+<div class="line"><a name="l00584"></a><span class="lineno">  584</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Frontend/CodeGenOptions.h:</div>
+<div class="line"><a name="l00585"></a><span class="lineno">  585</span> </div>
+<div class="line"><a name="l00586"></a><span class="lineno">  586</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Frontend/CodeGenOptions.def:</div>
+<div class="line"><a name="l00587"></a><span class="lineno">  587</span> </div>
+<div class="line"><a name="l00588"></a><span class="lineno">  588</span> /home/tstellar/llvm/include/llvm/DIBuilder.h:</div>
+<div class="line"><a name="l00589"></a><span class="lineno">  589</span> </div>
+<div class="line"><a name="l00590"></a><span class="lineno">  590</span> /home/tstellar/llvm/include/llvm/DebugInfo.h:</div>
+<div class="line"><a name="l00591"></a><span class="lineno">  591</span> </div>
+<div class="line"><a name="l00592"></a><span class="lineno">  592</span> /home/tstellar/llvm/include/llvm/Support/Dwarf.h:</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> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/ExprObjC.h:</div>
+<div class="line"><a name="l00595"></a><span class="lineno">  595</span> </div>
+<div class="line"><a name="l00596"></a><span class="lineno">  596</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/TargetInfo.h:</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> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/TargetCXXABI.h:</div>
+<div class="line"><a name="l00599"></a><span class="lineno">  599</span> </div>
+<div class="line"><a name="l00600"></a><span class="lineno">  600</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/TargetOptions.h:</div>
+<div class="line"><a name="l00601"></a><span class="lineno">  601</span> </div>
+<div class="line"><a name="l00602"></a><span class="lineno">  602</span> /home/tstellar/llvm/include/llvm/Support/Debug.h:</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> CGObjCRuntime.h:</div>
+<div class="line"><a name="l00605"></a><span class="lineno">  605</span> </div>
+<div class="line"><a name="l00606"></a><span class="lineno">  606</span> CGOpenCLRuntime.h:</div>
+<div class="line"><a name="l00607"></a><span class="lineno">  607</span> </div>
+<div class="line"><a name="l00608"></a><span class="lineno">  608</span> CodeGenTBAA.h:</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> /home/tstellar/llvm/include/llvm/IR/MDBuilder.h:</div>
+<div class="line"><a name="l00611"></a><span class="lineno">  611</span> </div>
+<div class="line"><a name="l00612"></a><span class="lineno">  612</span> TargetInfo.h:</div>
+<div class="line"><a name="l00613"></a><span class="lineno">  613</span> </div>
+<div class="line"><a name="l00614"></a><span class="lineno">  614</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/DeclTemplate.h:</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> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/RecursiveASTVisitor.h:</div>
+<div class="line"><a name="l00617"></a><span class="lineno">  617</span> </div>
+<div class="line"><a name="l00618"></a><span class="lineno">  618</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/DeclFriend.h:</div>
+<div class="line"><a name="l00619"></a><span class="lineno">  619</span> </div>
+<div class="line"><a name="l00620"></a><span class="lineno">  620</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/DeclOpenMP.h:</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> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/StmtCXX.h:</div>
+<div class="line"><a name="l00623"></a><span class="lineno">  623</span> </div>
+<div class="line"><a name="l00624"></a><span class="lineno">  624</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/StmtObjC.h:</div>
+<div class="line"><a name="l00625"></a><span class="lineno">  625</span> </div>
+<div class="line"><a name="l00626"></a><span class="lineno">  626</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/StmtOpenMP.h:</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> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/OpenMPKinds.h:</div>
+<div class="line"><a name="l00629"></a><span class="lineno">  629</span> </div>
+<div class="line"><a name="l00630"></a><span class="lineno">  630</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/OpenMPKinds.def:</div>
+<div class="line"><a name="l00631"></a><span class="lineno">  631</span> </div>
+<div class="line"><a name="l00632"></a><span class="lineno">  632</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/Builtins.h:</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> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/Version.h:</div>
+<div class="line"><a name="l00635"></a><span class="lineno">  635</span> </div>
+<div class="line"><a name="l00636"></a><span class="lineno">  636</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/Version.inc:</div>
+<div class="line"><a name="l00637"></a><span class="lineno">  637</span> </div>
+<div class="line"><a name="l00638"></a><span class="lineno">  638</span> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Sema/SemaDiagnostic.h:</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> /home/tstellar/llvm/tools/clang/lib/CodeGen/../../include/clang/Basic/DiagnosticSemaKinds.inc:</div>
+<div class="line"><a name="l00641"></a><span class="lineno">  641</span> </div>
+<div class="line"><a name="l00642"></a><span class="lineno">  642</span> /home/tstellar/llvm/include/llvm/IR/Intrinsics.h:</div>
+<div class="line"><a name="l00643"></a><span class="lineno">  643</span> </div>
+<div class="line"><a name="l00644"></a>&l