summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-04-19 14:55:09 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-04-19 14:55:09 +0000
commit0b0271ef976cec3ee6a1ab2d654e42cf111a68bd (patch)
treeb4425f350e69c433c823dfc993711143958a25fd /llvm/test
parent171b92f1e159be30fbc29871fefcb09fd05a9016 (diff)
downloadbcm5719-llvm-0b0271ef976cec3ee6a1ab2d654e42cf111a68bd.tar.gz
bcm5719-llvm-0b0271ef976cec3ee6a1ab2d654e42cf111a68bd.zip
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
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/Linker/dicompositetype-unique.ll4
1 files changed, 2 insertions, 2 deletions
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"
OpenPOWER on IntegriCloud