This is an archive of the discontinued LLVM Phabricator instance.

[CodeView] Encode signed int values correctly when emitting S_CONSTANTs
ClosedPublic

Authored by akhuang on Oct 26 2020, 5:17 PM.

Diff Detail

Event Timeline

akhuang created this revision.Oct 26 2020, 5:17 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 26 2020, 5:17 PM
akhuang requested review of this revision.Oct 26 2020, 5:17 PM
rnk accepted this revision.Oct 27 2020, 11:29 AM

lgtm

llvm/test/DebugInfo/COFF/global-constants.ll
66

So, we actually already had a test for this, but didn't notice the mismatch during review. Oops. :)

This revision is now accepted and ready to land.Oct 27 2020, 11:29 AM
akhuang updated this revision to Diff 301784.Oct 29 2020, 4:24 PM

I think we want to emit floats as unsigned, so add a function to check if the
constant is a float.

rnk accepted this revision.Oct 29 2020, 5:44 PM

lgtm

This revision was landed with ongoing or failed builds.Oct 30 2020, 9:31 AM
This revision was automatically updated to reflect the committed changes.