Commit Graph

12 Commits

Author SHA1 Message Date
Doug Gregor
58c5b020cb [Mangling] Handle mangling involving bound generic "protocols".
When mangling a specialized use of a typealias in a protocol, we end up
with a "bound generic protocol" mangling, with the one substitution
replacing Self with some other type. Handle de-mangling and
re-mangling of such names.

Fixes rdar://problem/41549126.
2018-06-27 16:43:29 -07:00
Doug Gregor
5350d45d6e [Mangler] Mangle generic typealiases in extensions of nested generics. 2018-06-26 16:54:57 -07:00
Doug Gregor
b3e536b333 [Type Reconstruction] Guard against wrong # of generic args for a typealias.
When we are attempting to reconstruct a type node for a generic typealias,
make sure that we get the right number of generic arguments. If not,
fail gracefully rather than crashing.

Eventually, we should be able to handle this nested case.
2018-06-26 13:48:13 -07:00
Davide Italiano
2a91041ea0 [TypeReconstruction] Add support for generic typealiases.
This fixes the compiler side of the problem.
An lldb test will be added to make sure this doesn't regress
in the future (or, if it does, at least we know).

<rdar://problem/40261592>.
2018-05-17 14:19:20 -07:00
Davide Italiano
73d01b0fed [lldb-moduleimport-test] Improve error detection. 2018-05-14 12:16:12 -07:00
Davide Italiano
5c99c35d24 [lldb-moduleimport-test] Validate input to prevent crashes. 2018-04-17 11:22:15 -07:00
Davide Italiano
eeac130ea3 [lldb-moduleimport-test] Get informations from the module.
This now mirrors what lldb does, and allows us to test this
codepath outside of the debugger.

<rdar://problem/38867076>
2018-04-02 13:05:34 -07:00
Davide Italiano
6ae953e660 [DebugInfo] Remove REQUIRES from test now that the issue is fixed.
Thanks to Slava for taking care of the XFAIL in the meanwhile.
2018-03-25 19:25:14 -07:00
Slava Pestov
7741925449 Merge pull request #15479 from slavapestov/build-czaring
Fixes for CI failures
2018-03-24 13:35:23 -07:00
Slava Pestov
942a8c6333 Disable DebugInfo/DumpDeclFromMangledName.swift test which is failing on the iOS simulators 2018-03-24 01:39:36 -07:00
Davide Italiano
5e463b1bc0 [lldb-moduleimport-test] Pass a target triple as a stopgap solution.
We're going to infer all these informations from the module, but
that's a large refactoring task which I'm going to do next.
In the meanwhile, this should allow Adrian's work to be unblocked.

<rdar://problem/38720742>
2018-03-23 13:13:26 -07:00
Davide Italiano
9dbd966e73 [lldb-moduleimport] Add the logic for testing getDeclBySymbolName().
Adrian already found and reported a bug, which I'm going to fix
in a later commit. Eventually this will go away, but in the meanwhile,
we should add test for this codepath.

<rdar://problem/38720742>
2018-03-22 10:47:24 -07:00