[PATCH] D46805: If some platforms do not support an attribute, we should exclude the platform
Richard Smith - zygoloid via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun May 13 14:40:00 PDT 2018
rsmith added inline comments.
================
Comment at: include/clang/Basic/Attr.td:566-567
-def Alias : Attr {
+// We do not support alias attribute on Apple platform, so we exclude the platform.
+def Alias : Attr, TargetSpecificAttr<TargetDarwinNegative> {
let Spellings = [GCC<"alias">];
----------------
Is this really specific to Darwin? I would expect it instead to be specific to the `ObjectFormat`. And I think listing the object formats that *do* support aliases seems reasonable (as there's only three of them to list -- assuming that WAsm actually supports aliases, which I don't know -- and we'd probably want future object file formats to opt in rather than opting out).
Repository:
rC Clang
https://reviews.llvm.org/D46805
More information about the cfe-commits
mailing list