This is an archive of the discontinued LLVM Phabricator instance.

Adopt SwiftABIInfo for WebAssembly.
ClosedPublic

Authored by ddunbar on Jan 1 2019, 2:30 PM.

Details

Summary
  • This adopts SwiftABIInfo as the base class for WebAssemblyABIInfo, which is in keeping with what is done for other targets for which Swift is supported.
  • This is a minimal patch to unblock exploration of WASM support for Swift (https://bugs.swift.org/browse/SR-9307)

Diff Detail

Repository
rC Clang

Event Timeline

ddunbar created this revision.Jan 1 2019, 2:30 PM
rjmccall accepted this revision.Jan 2 2019, 8:30 AM

LGTM.

This revision is now accepted and ready to land.Jan 2 2019, 8:30 AM

...although it might be reasonable to extract the method implementations on DefaultABIInfo as helper functions so that the code can be reused without requiring a particular inheritance hierarchy.

...although it might be reasonable to extract the method implementations on DefaultABIInfo as helper functions so that the code can be reused without requiring a particular inheritance hierarchy.

I agree that would be cleaner, but don't work on Clang much anymore so was doing the minimal thing. Do you want me to go ahead and do this?

I don't mind you committing it like this.

ahti added a subscriber: ahti.Jan 3 2019, 1:51 PM
This revision was automatically updated to reflect the committed changes.