This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] MC: Make explicit our current lack of support for relocations against unnamed temporary symbols.
ClosedPublic

Authored by sbc100 on Feb 15 2018, 5:31 PM.

Details

Summary

Add an explict check before looking up symbol in SymbolIndices.
This was previously silently succeeding and returning zero for such
unnamed temporaries.

The two new test failures represent tests that were failing
silents previously with incorrect relocation entries.

Diff Detail

Repository
rL LLVM

Event Timeline

sbc100 created this revision.Feb 15 2018, 5:31 PM
sbc100 updated this revision to Diff 134538.Feb 15 2018, 5:44 PM
  • update test expectations
sbc100 edited the summary of this revision. (Show Details)Feb 15 2018, 5:45 PM
dschuff accepted this revision.Feb 16 2018, 8:47 AM
This revision is now accepted and ready to land.Feb 16 2018, 8:47 AM

Regarding this test case, it really should be failing earlier because of the use of blockaddress... but I'm not sure how to make that happen.

Any idea how else I can create relocation against a temporary?

(I'm probably going to land this now anyway BTW, but I'm curious how else I might create a test that tickles this).

Yeah come to think of it, I thought we just failed isel for blockaddress?

Yeah come to think of it, I thought we just failed isel for blockaddress?

We do, but this is not an instruction, its purely a relocation.

This revision was automatically updated to reflect the committed changes.