Commit Graph

9 Commits

Author SHA1 Message Date
Jordan Rose
6e0515f644 [test] Update tests for upstream changes in LLVM/Clang. 2017-07-25 14:46:17 -07:00
Adrian Prantl
b85f1d679b Update for LLVM IR metadata changes (DIImportedEntity now needs a DIFile).
rdar://problem/32993231
2017-07-18 18:09:55 -07:00
Adrian Prantl
17496f3012 Simplify IRGenDebugInfo submodule creation and support homonymous submodules. 2017-05-24 14:00:07 -07:00
Adrian Prantl
f344e535f3 Debug info: Avoid emitting module imports twice when access path differs.
This fixes a recent regression from 68a5cadb90.
rdar://problem/32327266
2017-05-22 11:53:12 -07:00
Adrian Prantl
68a5cadb90 Debug Info: Generate imported entities for implicitly imported parent modules.
The Swift compiler uses an ugly hack that auto-imports a submodule's
top-level-module, even if we didn't ask for it. Reflect that in the
debug info.

<rdar://problem/31310320>
2017-05-17 12:58:04 -07:00
Adrian Prantl
e2784cbb87 Represent Clang macro definitions from -Xcc options in the debug info.
Currently -Xcc options are serialized in Swift modules, but they are
not saved as attributes to the DW_TAG_module representing the imported
clang module. This patch saves all *user-specified* -D macros there,
but it does not save any macros that are added by the ClangImporter
itself.

<rdar://problem/31990102>
2017-05-09 16:46:22 -07:00
Adrian Prantl
c2b14dccd3 Debug info: Represent clang-imported submodules.
Previously an import of a submodule would emit debug info for
importing the root module.

<rdar://problem/17260802>
2017-05-03 08:33:55 -07:00
Dmitri Gribenko
d175b3b66d Migrate FileCheck to %FileCheck in tests 2016-08-10 23:52:02 -07:00
Adrian Prantl
b7501e8725 Debug Info: Add a testcase for clang submodule imports.
rdar://problem/17951343
2015-12-23 14:34:44 -08:00