Emit declarations before definitions if they are available. This causes DW_AT_specifi...
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 4 Nov 2011 19:00:29 +0000 (19:00 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 4 Nov 2011 19:00:29 +0000 (19:00 +0000)
commitb0527283682c5f44fae24ae0a7e2e794f019fade
treef1b55a1bf5fd20f836a92eee1e1580ed3fe3ce49
parent931d4c204390752b30d4459264f8786de95b36d8
Emit declarations before definitions if they are available. This causes DW_AT_specification to
point back in the file in the included testcase. Fixes PR11300.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143726 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
test/DebugInfo/pr11300.ll [new file with mode: 0644]