forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 342
Create new CAS Blocks to represent missing DWARF sections #8620
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
Merged
adrian-prantl
merged 14 commits into
swiftlang:swift/release/6.0
from
rastogishubham:NewCASBlocks6
Apr 23, 2024
Merged
Create new CAS Blocks to represent missing DWARF sections #8620
adrian-prantl
merged 14 commits into
swiftlang:swift/release/6.0
from
rastogishubham:NewCASBlocks6
Apr 23, 2024
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In MCCAS we use MCCASBuilder::mergeMCFragmentContents to merge the contents of DWARF sections before doing optimizations on them for deduplication, while most sections only use MCDataFragments, some other sections can use other kinds of fragments, make sure we support all MCEncodedFragmentWithContents types. (cherry picked from commit 45e539d)
MCCAS DWARF section materialization and creation can have a lot of redundant code for most sections, this patch introduces some functions to reduce the code duplication. (cherry picked from commit 02326d7)
MCCAS has an ability to have different block types for different data, this patch introduces DebugStrOffsetsRef and DebugStringOffsetsSectionRef to represent the debug_str_offsets section in DWARF5. (cherry picked from commit 3ebb5f1)
MCCAS has an ability to have different block types for different data, this patch introduces DebugLoclistsRef and DebugLoclistsSectionRef to represent the debug_loclists section in DWARF5. (cherry picked from commit d68ee59)
MCCAS has an ability to have different block types for different data, this patch introduces DebugRangesRef and DebugRangesSectionRef to represent the debug_ranges section in DWARF4. (cherry picked from commit e13e97f)
MCCAS has an ability to have different block types for different data, this patch introduces DebugLocRef and DebugLocSectionRef to represent the debug_str_loc section in DWARF4. (cherry picked from commit 94cd14c)
MCCAS has an ability to have different block types for different data, this patch introduces DebugRangelistsRef and DebugRangelistsSectionRef to represent the debug_rnglist section in DWARF5. (cherry picked from commit 8a8213c)
MCCAS has an ability to have different block types for different data, this patch introduces DebugLineStrRef and DebugLineStrSectionRef to represent the debug_line_str section in DWARF5. (cherry picked from commit c69d1a2)
MCCAS has an ability to have different block types for different data, this patch introduces DebugNamesRef and DebugNamesSectionRef to represent the debug_names section in DWARF5. (cherry picked from commit 9d0c069)
MCCAS has an ability to have different block types for different data, this patch introduces DebugAppleNamesRef and DebugAppleNamesSectionRef to represent the apple_names section in DWARF4. (cherry picked from commit 2d62e3d)
MCCAS has an ability to have different block types for different data, this patch introduces AppleTypesRef and AppleTypesSectionRef to represent the apple_types section in DWARF4. (cherry picked from commit 744d390)
MCCAS has an ability to have different block types for different data, this patch introduces AppleNamespaceRef and AppleNamespaceSectionRef to represent the apple_namepsac section in DWARF4. (cherry picked from commit 1d95a08)
MCCAS has an ability to have different block types for different data, this patch introduces AppleObjCRef and AppleObjCSectionRef to represent the apple_objc section in DWARF4. (cherry picked from commit 687a046)
(cherry picked from commit 71bb893)
@swift-ci please test |
adrian-prantl
approved these changes
Apr 23, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Cherry-pick #8576 to swift/release/6