Skip to content

Generate debug info for generics #1758

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jdm opened this issue Feb 5, 2012 · 4 comments
Closed

Generate debug info for generics #1758

jdm opened this issue Feb 5, 2012 · 4 comments
Labels
A-debuginfo Area: Debugging information in compiled programs (DWARF, PDB, etc.) A-type-system Area: Type system

Comments

@jdm
Copy link
Contributor

jdm commented Feb 5, 2012

The debug info generator is almost certain to fall over if it comes across generic functions or types. This should be rectified (presumably using the metadata facilities for dealing with C++ templates).

@marijnh
Copy link
Contributor

marijnh commented Feb 5, 2012

I'm currently working on #1736 -- if that works out, along with cross-crate inlining/monomorphizing, this issue will be much easier to tackle. So unless this is really getting in someone's way, I would recommend you don't work on it on the short term.

@ghost ghost assigned jdm Apr 12, 2012
@msullivan
Copy link
Contributor

Now that we monomorphize, what is the status of this?

@jdm
Copy link
Contributor Author

jdm commented Jun 27, 2012

We probably want to generate metadata that includes template information now. Clang's probably the best reference for this, since http://llvm.org/docs/SourceLevelDebugging.html#format_subprograms doesn't give any example of what's expected.

@emberian
Copy link
Member

/cc @michaelwoerister

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-debuginfo Area: Debugging information in compiled programs (DWARF, PDB, etc.) A-type-system Area: Type system
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants