Skip to content

Various warning and compilation fixes for stable/20211026 #3541

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
merged 16 commits into from
Nov 16, 2021

Conversation

bnbarham
Copy link

No description provided.

The index added `SymbolSubKind::UsingEnum`. Add this to the indexstore
as well.

Resolves rdar://84229820
a3939e1 changed
`PluginInterface::GetPluginName` to return a `StringRef` instead of a
`ConstString`.
c020be1 changes `FindFunctions` to take
a `ModuleFunctionSearchOptions` instead. There's some Swift additions
that also need to be changed to use this argument instead.
14735ca renamed `eOpenOptionWrite` to
`eOpenOptionWriteOnly`. Rename reference in Swift additions.
41d0b20 renamed `WillPop` to `DidPop`.
Rename the override in `ThreadPlanStepInAsync`.
1457b7d introduced
`GetDemangledFunctionNameWithoutArguments` for `SwiftLanguage` but had a
mismatched parenthesis. Remove it.
1457b7d implemented
`GetDemangledFunctionNameWithoutArguments` for `SwiftLanguage`, but it
contained a few errors.
14f4430 changed
`StringPrinter::SetData` to take a rvalue to prevent needless copies.
c1055f0 now passes in a valid
`lldb_private::AddressRange` rather than implementations needing to
query for it.
3d7161e changed `GetGlobalProperties`
from returning a `std::shared_ptr` to a reference.
@bnbarham
Copy link
Author

bnbarham commented Nov 16, 2021

@JDevlieghere feel free to check everything, but the last few commits would be good to look at:

  • 22c9a68: I just added -DLLDB_USE_STATIC_BINDINGS:BOOL=OFF and then ran copy-static-bindings.py, is there anything else to do there? Seems to pass locally with -DLLDB_USE_STATIC_BINDINGS:BOOL=ON now.
  • a0d730e: not 100% sure what happened here, but this looks like left over code (had a warning for missing Invalid)
  • 89eca2e: is passing false for requiresOSSAModules in the call to validateSerializedAST correct?
  • 52874b1: what do we actually want to dump here? I've just left an empty dump in TypeSystemSwift for now, but I assume we'll actually want to dump something in its subclasses.

@bnbarham
Copy link
Author

@swift-ci please test

3116987 moved the switch in
`ValueObjectVariable::UpdateValue` to
`ValueObject::UpdateChildrenAddressType`.

31c4cc7 then reverted this change.

e337350 looks to have re-applied it but
moved `ValueObject::UpdateChildrenAddressType` down into
`ValueObjectVariable::UpdateChildrenAddressType` and
6b16a52 enabled calling it again.
Neither of these remove the old switch in
`ValueObjectVariable::UpdateValue` though.

Remove the duplicate switch.
swift f458d9b added checking for the
dependencies of any module compiled with `-enable-ossa-modules` to also
be compiled with `-enable-ossa-modules`.
9a57d1e added a
`dump(llvm::raw_ostream)` to `TypeSsystem`. Implement in
`TypeSystemSwift.
@JDevlieghere
Copy link

Adding @adrian-prantl for the Swift-related changes in LLDB.

@JDevlieghere
Copy link

@JDevlieghere feel free to check everything, but the last few commits would be good to look at:

  • 22c9a68: I just added -DLLDB_USE_STATIC_BINDINGS:BOOL=OFF and then ran copy-static-bindings.py, is there anything else to do there? Seems to pass locally with -DLLDB_USE_STATIC_BINDINGS:BOOL=ON now.

Perfect.

  • a0d730e: not 100% sure what happened here, but this looks like left over code (had a warning for missing Invalid)

@jimingham can you please double check?

  • 89eca2e: is passing false for requiresOSSAModules in the call to validateSerializedAST correct?
  • 52874b1: what do we actually want to dump here? I've just left an empty dump in TypeSystemSwift for now, but I assume we'll actually want to dump something in its subclasses.

@adrian-prantl can you please double check?

@bnbarham
Copy link
Author

I'm going to merge this to get the bots actually building. Dump will still need to be implemented, but we can do that later.

@bnbarham bnbarham merged commit cf40296 into swiftlang:stable/20211026 Nov 16, 2021
@bnbarham bnbarham deleted the rebranch-fixes branch November 16, 2021 22:49
@jimingham
Copy link

jimingham commented Nov 16, 2021 via email

@bnbarham
Copy link
Author

That code got moved to ValueObjectVariable::DoUpdateChildrenAddressType, and shouldn't be in ValueObjectVariable::UpdateValue. If you expand the file in the patch you referred to, this code is properly in the DoUpdate method. So everything is right once yp remove the redundant copy. This looks right to me. Jim

Thanks for checking! Sorry, I should have been more clear in the comment itself - the commit message mentions the duplicate code + relevant commits.

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.

3 participants