]> granicus.if.org Git - clang/commit
Refactor TableGen backend for ClangAttrEmitter to avoid duplication.
authorBob Wilson <bob.wilson@apple.com>
Mon, 20 Jul 2015 22:57:36 +0000 (22:57 +0000)
committerBob Wilson <bob.wilson@apple.com>
Mon, 20 Jul 2015 22:57:36 +0000 (22:57 +0000)
commitb8f61114ae450efd13d70c4ffa3c21070682ee0a
treeef96c341dbe467b7cddcec0817d89c4dfca50e2c
parent4e5f9fb46e1bfcb4ec1831785225496c5e11f413
Refactor TableGen backend for ClangAttrEmitter to avoid duplication.

GenerateHasAttrSpellingStringSwitch and GenerateTargetRequirements had
duplicated code to check the conditions for target-specific attributes.
Refactor the duplicated code into a separate function. NFC.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@242731 91177308-0d34-0410-b5e6-96231b3b80d8
utils/TableGen/ClangAttrEmitter.cpp