[PATCH] Defer codegen of dllexport/attribute(used) inline method definitions

Hans Wennborg hans at chromium.org
Thu Jun 5 17:35:55 PDT 2014


Simplify things. Let ModuleBuilder defer method definitions, and then consider them at the next top level decl. At that point, it's safe to calculate the GVA linkage, so we can just call into EmitTopLevelDecl and let that figure out if the method needs to be emitted in the usual way - no special cases.

http://reviews.llvm.org/D4038

Files:
  lib/CodeGen/ModuleBuilder.cpp
  test/CodeGenCXX/attr-used.cpp
  test/CodeGenCXX/dllexport-members.cpp
  test/CodeGenCXX/dllexport.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4038.10160.patch
Type: text/x-patch
Size: 4156 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140606/823aaf6c/attachment.bin>


More information about the cfe-commits mailing list