[PATCH] D22931: Add __declspec code_seg support
Reid Kleckner via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 28 13:02:45 PDT 2016
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
More information about the cfe-commits
mailing list