rnk added a subscriber: rnk. rnk added a comment. Needs tests, though. The MSDN sample code is probably a good starting point.
================ Comment at: lib/Sema/SemaDeclAttr.cpp:2659 @@ -2658,1 +2658,3 @@ + // code_seg only ever applies to functions. + if (Attr.getName()->getName() == "code_seg" && !isa<FunctionDecl>(D)) ---------------- MSDN suggests that it can also be applied to classes to control where special member functions live. I think it might be better to have a separate attribute for this. Repository: rL LLVM https://reviews.llvm.org/D22931 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits