<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:rnk@google.com" title="Reid Kleckner <rnk@google.com>"> <span class="fn">Reid Kleckner</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WONTFIX - Create a helper pragma to make unity builds easire"
   href="http://llvm.org/bugs/show_bug.cgi?id=20756">bug 20756</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>rnk@google.com
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>WONTFIX
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WONTFIX - Create a helper pragma to make unity builds easire"
   href="http://llvm.org/bugs/show_bug.cgi?id=20756#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WONTFIX - Create a helper pragma to make unity builds easire"
   href="http://llvm.org/bugs/show_bug.cgi?id=20756">bug 20756</a>
              from <span class="vcard"><a class="email" href="mailto:rnk@google.com" title="Reid Kleckner <rnk@google.com>"> <span class="fn">Reid Kleckner</span></a>
</span></b>
        <pre>I don't think we currently have any interest in supporting this. Unity builds
are a hack around crappy compiler technology, and we'd rather fix the core
algorithms rather than promote the hack. Most of our efforts are pointed at
modules, which also avoid reparsing headers and are much more scalable than
unity builds.

I don't think this is impossible to implement in Clang. Hypothetically you
could start the TU with your pragma. If we see the pragma, we would start
tracking TU-local entities such as using decls, anonymous namespaces, statics,
etc, and then somehow delete them from the AST after iterating to fixpoint in
CodeGen. Unless someone steps forward with the resources to implement this,
though, I think we should mark this as wontfix.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>