llvm-project/llvm/test
Pete Cooper adebb9379a 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
..
Analysis Support arbitrary addrspace pointers in masked load/store intrinsics 2016-03-10 20:39:22 +00:00
Assembler Support arbitrary addrspace pointers in masked load/store intrinsics 2016-03-10 20:39:22 +00:00
Bindings Add support for invoke/landingpad/resume in C API test 2016-02-18 20:38:32 +00:00
Bitcode [AVR] Add calling convention parser tokens 2016-03-03 10:08:02 +00:00
BugPoint
CodeGen AArch64: only try to use scaled fcvt ops on legal vector types. 2016-03-10 23:02:21 +00:00
DebugInfo Don't crash when compiling inline assembler containing .file directives. 2016-03-09 17:32:56 +00:00
Examples
ExecutionEngine Disable the new Orc lazy JIT tests on Windows, they do not pass 2016-02-10 18:46:42 +00:00
Feature Add a flag to the LLVMContext to disable name for Value other than GlobalValue 2016-03-10 01:28:54 +00:00
FileCheck Reapply r262092: [FileCheck] Abort if -NOT is combined with another suffix. 2016-02-29 22:13:03 +00:00
Instrumentation [tsan] Add support for pointer typed atomic stores, loads, and cmpxchg 2016-03-07 23:16:23 +00:00
Integer
JitListener Fix several accidental DOS line endings in source files 2016-01-03 17:22:03 +00:00
LTO Rename embedded bitcode section in MachO 2016-02-29 19:40:10 +00:00
LibDriver
Linker [ThinLTO] Remove imported available externally defs from comdats. 2016-02-08 18:47:20 +00:00
MC ARM: Support relative references using the PREL31 symbol variant. 2016-03-10 19:30:18 +00:00
Object [AMDGPU] add AMDGPU target support to ELFObjectFile.h header 2016-03-09 17:08:19 +00:00
Other [CG] Add a new pass manager printer pass for the old call graph and 2016-03-10 11:24:11 +00:00
SymbolRewriter
TableGen SelectionDAG: Make Properties a field of SDPatternOperator 2016-02-10 18:40:04 +00:00
ThinLTO/X86 Fix ThinLTO test: depends on the X86 backend 2016-03-09 04:04:40 +00:00
Transforms Remove llvm::getDISubprogram in favor of Function::getSubprogram 2016-03-11 02:14:16 +00:00
Unit
Verifier [Verifier] Don't abort on invalid cleanuprets 2016-03-01 18:59:50 +00:00
YAMLParser
tools [gold] Fix common symbols handling. 2016-03-11 00:51:57 +00:00
.clang-format
CMakeLists.txt [CMake] Add convenience target llvm-test-depends to build test dependencies. 2016-03-02 00:27:14 +00:00
TestRunner.sh
lit.cfg [lit] Teach lit about global-isel requirement. 2016-03-08 00:03:40 +00:00
lit.site.cfg.in Make WinCOFFObjectWriter.cpp's timestamp writing not use ENABLE_TIMESTAMPS 2016-01-06 19:05:19 +00:00