diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-05-02 14:50:50 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-05-02 14:50:50 +0000 |
commit | d6268ffe94e5159ef41c61fe7f750c22546d3ef3 (patch) | |
tree | 3ac506a0eea79d4c5161989ff76cb9009300d61a /utils/TableGen/ClangAttrEmitter.cpp | |
parent | fb5825dca4e95fee463fdeaddb8b729294fb4d10 (diff) |
Revert my optimization to AttributeList::getKind() in r155987;
Benjamin has suggested a better approach.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155989 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/ClangAttrEmitter.cpp')
-rw-r--r-- | utils/TableGen/ClangAttrEmitter.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/utils/TableGen/ClangAttrEmitter.cpp b/utils/TableGen/ClangAttrEmitter.cpp index 6dc015acfb..7951fc467d 100644 --- a/utils/TableGen/ClangAttrEmitter.cpp +++ b/utils/TableGen/ClangAttrEmitter.cpp @@ -1083,8 +1083,7 @@ void ClangAttrParsedAttrKindsEmitter::run(raw_ostream &OS) { AttrName = NormalizeAttrName(AttrName); Spelling = NormalizeAttrSpelling(Spelling); - OS << "Result[\"" << Spelling << "\"] = " << "AttributeList::AT_" - << AttrName << ";\n"; + OS << ".Case(\"" << Spelling << "\", " << "AT_" << AttrName << ")\n"; } } } |