llvm-mirror/lib
Daniel Sanders 5c148a073f [mips] Fix 'jumpy' debug line info around calls.
Summary:
At the moment, address calculation is taking the debug line info from the
address node (e.g. TargetGlobalAddress). When a function is called multiple
times, this results in output of the form:

  .loc $first_call_location
  .. address calculation ..
  .. function call ..
  .. address calculation ..
  .loc $second_call_location
  .. function call ..
  .loc $first_call_location
  .. address calculation ..
  .loc $third_call_location
  .. function call ..

This patch makes address calculations for function calls take the debug line
info for the call node and results in output of the form:
  .loc $first_call_location
  .. address calculation ..
  .. function call ..
  .loc $second_call_location
  .. address calculation ..
  .. function call ..
  .loc $third_call_location
  .. address calculation ..
  .. function call ..

All other address calculations continue to use the address node.

Test Plan: Fixes test/DebugInfo/multiline.ll on a mips host.

Subscribers: dblaikie, llvm-commits

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

llvm-svn: 227005
2015-01-24 14:35:11 +00:00
..
Analysis [PM] Rework how the TargetLibraryInfo pass integrates with the new pass 2015-01-24 02:06:09 +00:00
AsmParser AsmParser: PARSE_MD_FIELD() => ParseMDField(), NFC 2015-01-20 02:42:29 +00:00
Bitcode [Bitcode] Diagnose errors instead of asserting from bad input 2015-01-24 04:15:05 +00:00
CodeGen [DAG] Fix wrong canonicalization performed on shuffle nodes. 2015-01-24 11:54:29 +00:00
DebugInfo
ExecutionEngine Fix the MSVC build with the new Orc JIT APIs 2015-01-23 22:25:47 +00:00
IR Address more review comments for DIExpression::iterator. 2015-01-23 23:40:47 +00:00
IRReader
LineEditor
Linker [llvm link] Destroy ConstantArrays in LLVMContext if they are not used. 2015-01-20 19:24:59 +00:00
LTO [PM] Rework how the TargetLibraryInfo pass integrates with the new pass 2015-01-24 02:06:09 +00:00
MC Add STB_GNU_UNIQUE to the ELF writer. 2015-01-23 04:44:35 +00:00
Object [Object][ELF] Test unknown type. 2015-01-23 21:58:09 +00:00
Option
ProfileData
Support If we see UTF-8 BOM sequence at the beginning of a response file, we shall 2015-01-24 04:23:08 +00:00
TableGen
Target [mips] Fix 'jumpy' debug line info around calls. 2015-01-24 14:35:11 +00:00
Transforms [PM] General doxygen and comment cleanup for this pass. 2015-01-24 11:44:32 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile