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
Pete Cooper 3221ed57e7 Remove llvm::getDISubprogram in favor of Function::getSubprogram
llvm::getDISubprogram walks the instructions in a function, looking for one in the scope of the current function, so that it can find the !dbg entry for the subprogram itself.

Now that !dbg is attached to functions, this should not be necessary. This patch changes all uses to just query the subprogram directly on the function.

Ideally this should be NFC, but in reality its possible that a function:

has no !dbg (in which case there's likely a bug somewhere in an opt pass), or
that none of the instructions had a scope referencing the function, so we used to not find the !dbg on the function but now we will

Reviewed by Duncan Exon Smith.

Differential Revision: http://reviews.llvm.org/D18074

llvm-svn: 263184
2016-03-11 02:14:16 +00:00
..
basic.ll SamplePGO - Fix PR 25482 - Do not rely on llvm.dbg.cu for discriminators 2015-11-11 17:54:37 +00:00
call.ll Remove llvm::getDISubprogram in favor of Function::getSubprogram 2016-03-11 02:14:16 +00:00
dbg-declare-discriminator.ll Don't generate discriminators for calls to debug intrinsics 2015-11-16 10:40:38 +00:00
diamond.ll Reimplement discriminator assignment algorithm. 2015-11-19 19:53:05 +00:00
first-only.ll SamplePGO - Fix PR 25482 - Do not rely on llvm.dbg.cu for discriminators 2015-11-11 17:54:37 +00:00
multiple.ll SamplePGO - Fix PR 25482 - Do not rely on llvm.dbg.cu for discriminators 2015-11-11 17:54:37 +00:00
no-discriminators.ll SamplePGO - Fix PR 25482 - Do not rely on llvm.dbg.cu for discriminators 2015-11-11 17:54:37 +00:00
oneline.ll Reimplement discriminator assignment algorithm. 2015-11-19 19:53:05 +00:00