aboutsummaryrefslogtreecommitdiff
path: root/utils/TableGen/ClangAttrEmitter.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2012-05-02 14:50:50 +0000
committerDouglas Gregor <dgregor@apple.com>2012-05-02 14:50:50 +0000
commitd6268ffe94e5159ef41c61fe7f750c22546d3ef3 (patch)
tree3ac506a0eea79d4c5161989ff76cb9009300d61a /utils/TableGen/ClangAttrEmitter.cpp
parentfb5825dca4e95fee463fdeaddb8b729294fb4d10 (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.cpp3
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";
}
}
}