This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] MC: Fix type of function aliases
ClosedPublic

Authored by sbc100 on Jan 31 2019, 12:41 PM.

Details

Summary

Aliases of functions are now marked as function symbols even if
they are bitcast to some other other non-function type.
This is important for WebAssembly where object and function
symbols can't alias each other.

Fixes PR38866

Diff Detail

Repository
rL LLVM

Event Timeline

sbc100 created this revision.Jan 31 2019, 12:41 PM
sbc100 updated this revision to Diff 184579.Jan 31 2019, 12:44 PM

add comment

sbc100 retitled this revision from [WebAssembly] Fix type of function aliases to [WebAssembly] MC: Fix type of function aliases.Jan 31 2019, 12:44 PM
sbc100 added reviewers: kripken, dschuff.
dschuff accepted this revision.Jan 31 2019, 1:14 PM

LGTM. Can you put a little more detail in the commit message (e.g. something like what you wrote in the comment) to make it easier to see in a log (without having to look at the code or the PR)?

This revision is now accepted and ready to land.Jan 31 2019, 1:14 PM
sbc100 edited the summary of this revision. (Show Details)Jan 31 2019, 2:01 PM
sbc100 updated this revision to Diff 184655.Jan 31 2019, 5:37 PM
  • Handle issue in AsmPrinter so MCSymbol has correct type
Herald added a project: Restricted Project. · View Herald TranscriptJan 31 2019, 5:37 PM
sbc100 edited the summary of this revision. (Show Details)Jan 31 2019, 5:41 PM
sbc100 updated this revision to Diff 185071.Feb 4 2019, 9:25 AM
  • Update test
This revision was automatically updated to reflect the committed changes.