[all-commits] [llvm/llvm-project] 020939: [clang][NFC] Remove IgnoreLinkageSpecDecls
Nathan Sidwell via All-commits
all-commits at lists.llvm.org
Tue Feb 15 04:29:11 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 02093906fa0fd5bacc61b2189ea643c78cd02509
https://github.com/llvm/llvm-project/commit/02093906fa0fd5bacc61b2189ea643c78cd02509
Author: Nathan Sidwell <nathan at acm.org>
Date: 2022-02-15 (Tue, 15 Feb 2022)
Changed paths:
M clang/lib/AST/ItaniumMangle.cpp
Log Message:
-----------
[clang][NFC] Remove IgnoreLinkageSpecDecls
The Itanium mangler uses IgnoreLinkageSpecDecls to strip linkage spec
contexts. It doesn't do this consistently, but there is no need for
it to do it at all. getEffectiveDeclContext never returns a linkage
spec, as it either recurses, uses getRedeclContext (which itself
removes the specs), or gets the decl context of non-namespace entities.
This patch removes the function and all calls to it. For safety I add
a couple of asserts to make sure we never get them.
Reviewed By: ChuanqiXu
Differential Revision: https://reviews.llvm.org/D119748
More information about the All-commits
mailing list