llvm-project/llvm/test
Teresa Johnson 76b5b7493c Handle link of NoDebug CU with a CU that has debug emission enabled
Summary:
This is an issue both with regular and Thin LTO. When we link together
a DICompileUnit that is marked NoDebug (e.g when compiling with -g0
but applying an AutoFDO profile, which requires location tracking
in the compiler) and a DICompileUnit with debug emission enabled,
we can have failures during dwarf debug generation. Specifically,
when we have inlined from the NoDebug compile unit into the debug
compile unit, we can fail during construction of the abstract and
inlined scope DIEs. This is because the SPMap does not include NoDebug
CUs (they are skipped in the debug_compile_units_iterator).

This patch fixes the failures by skipping locations from NoDebug CUs
when extracting lexical scopes.

Reviewers: dblaikie, aprantl

Subscribers: mehdi_amini, llvm-commits

Differential Revision: https://reviews.llvm.org/D29765

llvm-svn: 295384
2017-02-17 00:21:19 +00:00
..
Analysis AMDGPU: Remove SI_fs_constant and SI_fs_interp intrinsics 2017-02-16 02:01:13 +00:00
Assembler Move inline asm diags tests to an ARM directory. 2017-02-08 16:48:35 +00:00
Bindings [cmake] Canonicalize CMake booleans to 0/1 for lit interop 2017-01-06 21:33:48 +00:00
Bitcode IR: Function summary extensions for whole-program devirtualization pass. 2017-02-10 22:29:38 +00:00
BugPoint
CodeGen [Hexagon] Start using regmasks on calls 2017-02-16 20:25:23 +00:00
DebugInfo Handle link of NoDebug CU with a CU that has debug emission enabled 2017-02-17 00:21:19 +00:00
Examples
ExecutionEngine RuntimeDyldELF/AArch64: Implement basic GOT support 2017-02-06 15:31:28 +00:00
Feature Add intrinsics for constrained floating point operations 2017-01-26 23:27:59 +00:00
FileCheck Commit a test for match-full-lines. 2017-01-09 23:11:25 +00:00
Instrumentation AddressSanitizer: don't track swifterror memory addresses 2017-02-15 20:43:43 +00:00
Integer
JitListener [cmake] Canonicalize CMake booleans to 0/1 for lit interop 2017-01-06 21:33:48 +00:00
LTO Implement intrinsic mangling for literal struct types. 2017-02-15 23:16:20 +00:00
LibDriver
Linker Linker: Move special casing for available_externally in IRMover to clients. NFCI. 2017-02-02 05:12:15 +00:00
MC [AArch64] AArch64AsmParser clean up of isImmediate functions. NFC 2017-02-16 15:52:22 +00:00
Object test: adjust the test for the BSD format 2017-02-09 20:06:30 +00:00
ObjectYAML Attempt to fix the testcase in r292824 2017-01-23 20:42:17 +00:00
Other Correct a typo, s/hosting/hoisting/ 2017-02-14 16:41:10 +00:00
SymbolRewriter
TableGen [GlobalISel] Print the matched patterns using an action. 2017-02-04 00:47:08 +00:00
ThinLTO/X86 [tests] Be explicit about the files we want to remove. 2017-02-10 22:55:37 +00:00
Transforms [LSR] Prevent formula with SCEVAddRecExpr type of Reg from Sibling loops 2017-02-16 21:27:31 +00:00
Unit
Verifier Add intrinsics for constrained floating point operations 2017-01-26 23:27:59 +00:00
YAMLParser
tools Disable wrapping llvm-xray YAML output 2017-02-14 22:49:49 +00:00
.clang-format
CMakeLists.txt [llvm-config] Print --system-libs only when static linking 2017-01-06 21:33:54 +00:00
TestRunner.sh
lit.cfg [llvm-config] Print --system-libs only when static linking 2017-01-06 21:33:54 +00:00
lit.site.cfg.in [llvm-config] Print --system-libs only when static linking 2017-01-06 21:33:54 +00:00