aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2013-01-07 19:09:15 +0000
committerAlexander Kornienko <alexfh@google.com>2013-01-07 19:09:15 +0000
commit975b1203baeb04b13cdaa017b7fdd384f5adcad0 (patch)
tree6644948453b1a1540a454c9966ce6ac0cc3e086c /utils
parent6092d4ed09a2368871993d9a45717f24394329ce (diff)
Fixed a number of -Wcovered-switch-default diagnostics in tools/clang/include/clang/AST/AttrDump.inc
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171768 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/ClangAttrEmitter.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/utils/TableGen/ClangAttrEmitter.cpp b/utils/TableGen/ClangAttrEmitter.cpp
index 3651636e95..395347c122 100644
--- a/utils/TableGen/ClangAttrEmitter.cpp
+++ b/utils/TableGen/ClangAttrEmitter.cpp
@@ -549,11 +549,6 @@ namespace {
}
void writeDump(raw_ostream &OS) const {
OS << " switch(SA->get" << getUpperName() << "()) {\n";
- OS << " default:\n";
- OS << " llvm_unreachable(\"Unknown " << getAttrName() << "Attr::"
- << type << "!\");\n";
- OS << " break;\n";
-
for (std::vector<StringRef>::const_iterator I = uniques.begin(),
E = uniques.end(); I != E; ++I) {
OS << " case " << getAttrName() << "Attr::" << *I << ":\n";