This is an archive of the discontinued LLVM Phabricator instance.

Code cleanup in preparation for adding LTO for wasm. NFC.
ClosedPublic

Authored by sbc100 on May 22 2018, 9:46 AM.

Details

Summary

Move some common code into Common/rrorHandler.cpp and
Common/Strings.h.

Don't use fatal when incompatible bitcode files are
encountered.

Rename NameRef variable to just Name.

See D47162

Diff Detail

Repository
rL LLVM

Event Timeline

sbc100 created this revision.May 22 2018, 9:46 AM
sbc100 retitled this revision from Code cleanup in preparation for adding LTO for wasm to Code cleanup in preparation for adding LTO for wasm. NFC..May 22 2018, 9:47 AM
sbc100 edited the summary of this revision. (Show Details)
sbc100 edited the summary of this revision. (Show Details)May 22 2018, 9:54 AM
sbc100 edited reviewers, added: ruiu; removed: espindola.
sbc100 updated this revision to Diff 148033.May 22 2018, 9:54 AM
sbc100 edited the summary of this revision. (Show Details)
sbc100 removed a reviewer: ruiu.
  • config names
sbc100 updated this revision to Diff 148035.May 22 2018, 9:57 AM
  • Buff -> Buf
ruiu added a subscriber: ruiu.May 22 2018, 10:53 AM
ruiu added inline comments.
Common/ErrorHandler.cpp
64 ↗(On Diff #148035)

nit: while you are here, please rename this S because we usually use shorter names for this kind of variable.

ELF/Config.h
199 ↗(On Diff #148035)

LTOO is an odd name but intentional. All options are named after their corresponding command line options, and this option corresponds to -lto-o, so it should be LTOO.

sbc100 updated this revision to Diff 148084.May 22 2018, 1:14 PM
  • feedback
sbc100 marked 2 inline comments as done.May 22 2018, 1:15 PM
sbc100 added inline comments.
ELF/Config.h
199 ↗(On Diff #148035)

OK, I mostly wanted some consistency between the linkers, so I renamed the other one and I'll use that in the wasm version too.

ruiu accepted this revision.May 22 2018, 1:20 PM

LGTM

Thank you for doing this!

This revision is now accepted and ready to land.May 22 2018, 1:20 PM
This revision was automatically updated to reflect the committed changes.