1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 20:12:56 +02:00
llvm-mirror/test/Transforms/AddDiscriminators
Dehao Chen 05a0184887 Recommit r251680 (also need to update clang test)
Update the discriminator assignment algorithm

* If a scope has already been assigned a discriminator, do not reassign a nested discriminator for it.
* If the file and line both match, even if the column does not match, we should assign a new discriminator for the stmt.

original code:
; #1 int foo(int i) {
; #2 if (i == 3 || i == 5) return 100; else return 99;
; #3 }

; i == 3: discriminator 0
; i == 5: discriminator 2
; return 100: discriminator 1
; return 99: discriminator 3

llvm-svn: 251689
2015-10-30 05:07:15 +00:00
..
basic.ll DI: Require subprogram definitions to be distinct 2015-08-28 20:26:49 +00:00
first-only.ll DI: Require subprogram definitions to be distinct 2015-08-28 20:26:49 +00:00
multiple.ll DI: Require subprogram definitions to be distinct 2015-08-28 20:26:49 +00:00
no-discriminators.ll DI: Require subprogram definitions to be distinct 2015-08-28 20:26:49 +00:00
oneline.ll Recommit r251680 (also need to update clang test) 2015-10-30 05:07:15 +00:00