-
Notifications
You must be signed in to change notification settings - Fork 341
Rewrite MachOCASWriter to be a derived class of MachObjectWriter #9111
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
Rewrite MachOCASWriter to be a derived class of MachObjectWriter #9111
Conversation
A significant amount of changes were made upstream to MCAssembler and MachObjectWriter that broke MCCAS. To fix them, we moved a bunch of code from MachObjectWriter to MCObjectWriter as a band-aid fix, but those are full of layering violations, this patch reverts those changes in favor of a correct fix in the next commit which involves rewriting MachOCASWriter to be a derived class if MachObjectWriter. (cherry picked from commit 91e9561)
@swift-ci please test |
@swift-ci please test llvm |
cc01163
to
49eed84
Compare
@swift-ci please test |
@swift-ci please test llvm |
This patch rewrites MachOCASWriter to be a derived class of MachObjectWriter which fixes a lot of the issues we see from the changes made to MCAssembler. This also fixes the issue of the MCMachoStreamer only having calls to the getWriter() function that returns a MachOCASWriter. (cherry picked from commit 895cd5a)
49eed84
to
61aec53
Compare
@swift-ci please test |
@swift-ci please test llvm |
@swift-ci please test |
@swift-ci please test llvm |
The Linux build failed the following test:
|
@swift-ci please test Windows platform |
@compnerd the linux platform test break is not because of this patch, look at
|
@rastogishubham yeah, I agree. The Windows build hung but got further than without the change. I think that this is fine to merge personally. |
The windows build is failing on swift-driver, far after the LLVM build, I think that this is ready to merge. |
8f9beda
into
swiftlang:stable/20240723
@compnerd thanks for the feedback! |
This patch rewrites MachOCASWriter to be a derived class of MachObjectWriter which fixes a lot of the issues we see from the changes made to MCAssembler. This also fixes the issue of the MCMachoStreamer only having calls to the getWriter() function that returns a MachOCASWriter.
It also reverts all the changes made to MCObjectWriter for rdar://133264719 and rdar://133001453
(It is a cherry-pick of PR: #9086)