[PATCH] D41303: Add support for ObjectFormat to TargetSpecificAttr

Erich Keane via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 15 10:51:03 PST 2017


erichkeane created this revision.
erichkeane added reviewers: aaron.ballman, echristo.

Looking through the code, I saw a FIXME on IFunc to switch it
to a target specific attribute.  In looking through it, i saw that
the no-longer-appropriately-named TargetArch didn't support ObjectFormat
checking.

This patch changes the name of TargetArch to TargetSpecific
(since it checks much more than just Arch), makes "Arch" optional, adds
support for ObjectFormat, better documents the TargetSpecific type, and
changes IFunc over to a TargetSpecificAttr.


Repository:
  rC Clang

https://reviews.llvm.org/D41303

Files:
  include/clang/Basic/Attr.td
  lib/Sema/SemaDeclAttr.cpp
  test/Sema/attr-ifunc.c
  utils/TableGen/ClangAttrEmitter.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41303.127159.patch
Type: text/x-patch
Size: 8077 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171215/ff037c97/attachment.bin>


More information about the cfe-commits mailing list