From 0b0271ef976cec3ee6a1ab2d654e42cf111a68bd Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Tue, 19 Apr 2016 14:55:09 +0000 Subject: IR: getOrInsertODRUniquedType => DICompositeType::getODRType, NFC Lift the API for debug info ODR type uniquing up a layer. Instead of clients managing the map directly on the LLVMContext, add a static method to DICompositeType called getODRType and handle the map in the background. Also adds DICompositeType::getODRTypeIfExists, so far just for convenience in the unit tests. This simplifies the logic in LLParser and BitcodeReader. Because of argument spam there are actually a few more lines of code now; I'll see if I come up with a reasonable way to clean that up. llvm-svn: 266742 --- llvm/test/Linker/dicompositetype-unique.ll | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/test/Linker') diff --git a/llvm/test/Linker/dicompositetype-unique.ll b/llvm/test/Linker/dicompositetype-unique.ll index 9c8b351ec64..4f3fcec6964 100644 --- a/llvm/test/Linker/dicompositetype-unique.ll +++ b/llvm/test/Linker/dicompositetype-unique.ll @@ -21,11 +21,11 @@ !named = !{!0, !1} ; Check both directions. -; CHECK: !1 = !DICompositeType( +; CHECK: !1 = distinct !DICompositeType( ; CHECK-SAME: name: "T1" ; CHECK-SAME: identifier: "T" ; CHECK-NOT: identifier: "T" -; REVERSE: !1 = !DICompositeType( +; REVERSE: !1 = distinct !DICompositeType( ; REVERSE-SAME: name: "T2" ; REVERSE-SAME: identifier: "T" ; REVERSE-NOT: identifier: "T" -- cgit v1.2.3