Skip to content

Conversation

@yuanfang-chen
Copy link

Google CLA signed.

Clang use DW_FORM_ref_addr for DW_AT_abstract_origin when doing LTO. When
searching for abstract_origin subprograms, we need to search all CUs.
CleanupUnusedSubprograms is disabled because there may be links to it
afterwards.(ps: maybe cleanup is needed after parsing of all CUs are done?)
         llvm profile output.

For top level symbols, their start_line in SymbolMap are alwarys 0,
since in SymbolMap::AddSourceCount top level symbol do not take the value
from SourceStack.
For Inlined symbols, their start_line in SymbolMap are assigned in
SymbolMap::TraverseInlineStack.

Fix by assign correct start_line to top level symbols and change
LLVMSourceProfileWriter::WriteSourceLocation accordingly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants