[all-commits] [llvm/llvm-project] c63f1b: [DeclCXX] Remove unknown external linkage specific...

Ehud Katz via All-commits all-commits at lists.llvm.org
Thu Nov 21 05:24:54 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c63f1b160eb68cfac30113f259abae508d8be798
      https://github.com/llvm/llvm-project/commit/c63f1b160eb68cfac30113f259abae508d8be798
  Author: Ehud Katz <ehudkatz at gmail.com>
  Date:   2019-11-21 (Thu, 21 Nov 2019)

  Changed paths:
    M clang-tools-extra/modularize/Modularize.cpp
    M clang/include/clang/AST/DeclCXX.h
    M clang/lib/AST/DeclPrinter.cpp
    M clang/lib/AST/JSONNodeDumper.cpp
    M clang/lib/AST/TextNodeDumper.cpp
    M clang/lib/CodeGen/CodeGenModule.cpp
    M clang/lib/Sema/SemaDeclCXX.cpp
    M clang/lib/Sema/SemaModule.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list