summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaModule.cpp
diff options
context:
space:
mode:
authorEhud Katz <ehudkatz@gmail.com>2019-11-07 12:28:48 +0200
committerEhud Katz <ehudkatz@gmail.com>2019-11-21 15:23:05 +0200
commitc63f1b160eb68cfac30113f259abae508d8be798 (patch)
tree9f631c7e2097f18463bb7ad80f0ff89f300c1353 /clang/lib/Sema/SemaModule.cpp
parent7b957ddc981d65276ca5aa0e7208890269cc9682 (diff)
downloadbcm5719-llvm-c63f1b160eb68cfac30113f259abae508d8be798.tar.gz
bcm5719-llvm-c63f1b160eb68cfac30113f259abae508d8be798.zip
[DeclCXX] Remove unknown external linkage specifications
Partial revert of r372681 "Support for DWARF-5 C++ language tags". The change introduced new external linkage languages ("C++11" and "C++14") which not supported in C++. It also changed the definition of the existing enum to use the DWARF constants. The problem is that "LinkageSpecDeclBits.Language" (the field that reserves this enum) is actually defined as 3 bits length (bitfield), which cannot contain the new DWARF constants. Defining the enum as integer literals is more appropriate for maintaining valid values. Differential Revision: https://reviews.llvm.org/D69935
Diffstat (limited to 'clang/lib/Sema/SemaModule.cpp')
-rw-r--r--clang/lib/Sema/SemaModule.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaModule.cpp b/clang/lib/Sema/SemaModule.cpp
index 1fca351bfb0..10de0ca9122 100644
--- a/clang/lib/Sema/SemaModule.cpp
+++ b/clang/lib/Sema/SemaModule.cpp
@@ -31,8 +31,6 @@ static void checkModuleImportContext(Sema &S, Module *M,
ExternCLoc = LSD->getBeginLoc();
break;
case LinkageSpecDecl::lang_cxx:
- case LinkageSpecDecl::lang_cxx_11:
- case LinkageSpecDecl::lang_cxx_14:
break;
}
DC = LSD->getParent();
OpenPOWER on IntegriCloud