diff options
author | Nathan Sidwell <nathan@acm.org> | 2022-02-14 10:19:04 -0800 |
---|---|---|
committer | Nathan Sidwell <nathan@acm.org> | 2022-02-15 04:28:45 -0800 |
commit | 02093906fa0fd5bacc61b2189ea643c78cd02509 (patch) | |
tree | 0a1a4142171f9995eace3dc89d32de772429101c /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 166713f987b343e65baf25532b3ff48be154c390 (diff) | |
download | llvm-02093906fa0fd5bacc61b2189ea643c78cd02509.zip llvm-02093906fa0fd5bacc61b2189ea643c78cd02509.tar.gz llvm-02093906fa0fd5bacc61b2189ea643c78cd02509.tar.bz2 |
[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
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions