More principled implementation of DISubprogram::describes()
authorAdrian Prantl <aprantl@apple.com>
Mon, 2 Mar 2020 17:39:27 +0000 (09:39 -0800)
committerAdrian Prantl <aprantl@apple.com>
Mon, 2 Mar 2020 18:03:14 +0000 (10:03 -0800)
commit5c83bedecab94f4dbbb0449cced31aec1b8aaac5
tree43706ce03fd041ee1c63b76b505c53c4cc783414
parente691b3015c64648cc8d8255284e1c63ad1038f77
More principled implementation of DISubprogram::describes()

Previously we would also accept DISubprograms that matched in name
only, but this doesn't appear to be necessary any more.

I did a Full and Thin LTO build of Clang and it completed without a warning.

Differential Revision: https://reviews.llvm.org/D75213
llvm/lib/IR/DebugInfoMetadata.cpp
llvm/lib/IR/Verifier.cpp
llvm/test/Verifier/disubprogram-name-match-only.ll [new file with mode: 0644]