llvm/unittests
Keno Fischer 11adcc4de0 [Cloning] Clone every Function's Debug Info
Summary:
Export the CloneDebugInfoMetadata utility, which clones all debug info
associated with a function into the first module. Also use this function
in CloneModule on each function we clone (the CloneFunction entrypoint
already does this).

Without this, cloning a module will lead to DI quality regressions,
especially since r252219 reversed the Function <-> DISubprogram edge
(before we could get lucky and have this edge preserved if the
DISubprogram itself was, e.g. due to location metadata).

This was verified to fix missing debug information in julia and
a unittest to verify the new behavior is included.

Patch by Yichao Yu! Thanks!

Reviewers: loladiro, pcc
Differential Revision: http://reviews.llvm.org/D17165

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@260791 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-13 02:04:29 +00:00
..
ADT Add AMDGPU related triple vendors/OSes 2016-02-13 01:56:21 +00:00
Analysis Factor out UnrollAnalyzer to Analysis, and add unit tests for it. 2016-02-08 23:03:59 +00:00
AsmParser Remove autoconf support 2016-01-26 21:29:08 +00:00
Bitcode Remove autoconf support 2016-01-26 21:29:08 +00:00
CodeGen Remove autoconf support 2016-01-26 21:29:08 +00:00
DebugInfo Remove autoconf support 2016-01-26 21:29:08 +00:00
ExecutionEngine [Orc] Add lazy-JITting support for i386. 2016-02-10 01:02:33 +00:00
IR Simplify this unittest. 2016-02-08 19:13:15 +00:00
LineEditor Remove autoconf support 2016-01-26 21:29:08 +00:00
Linker Delete the deprecated LLVMLinkModules. 2016-02-12 15:28:45 +00:00
MC [unittests] Move TargetRegistry test from Support to MC 2016-02-03 21:41:24 +00:00
Option Remove autoconf support 2016-01-26 21:29:08 +00:00
ProfileData [PGO] Add another interface for annotateValueSite 2016-02-12 21:36:17 +00:00
Support Fix a -Wsign-compare in Support Path unittests 2016-02-10 19:29:01 +00:00
Transforms [Cloning] Clone every Function's Debug Info 2016-02-13 02:04:29 +00:00
CMakeLists.txt AsmParser: Require a terminating null character when creating memory buffer. 2015-05-20 20:41:27 +00:00