]> granicus.if.org Git - clang/commit
Add support for ObjectFormat to TargetSpecificAttr
authorErich Keane <erich.keane@intel.com>
Wed, 20 Dec 2017 18:51:08 +0000 (18:51 +0000)
committerErich Keane <erich.keane@intel.com>
Wed, 20 Dec 2017 18:51:08 +0000 (18:51 +0000)
commit6bb630e324efc92f36c95fc2ac11ba71751cd9b4
tree7c6ca8833a23e5ad445d12e7ca1a20910548a73d
parent7d32ec8fb0d04f322b2ad1ddfaec72110d9a3a96
Add support for ObjectFormat to TargetSpecificAttr

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.

Differential Revision: https://reviews.llvm.org/D41303

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@321201 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Attr.td
lib/Sema/SemaDeclAttr.cpp
test/Sema/attr-ifunc.c
utils/TableGen/ClangAttrEmitter.cpp