Page MenuHomePhabricator

Use InitLLVM to setup a pretty stack printer
ClosedPublic

Authored by ruiu on Nov 25 2019, 5:27 PM.

Details

Summary

InitLLVM does not only save a few lines from main() but also makes the
commands do the right thing for multibyte character pathnames on
Windows (i.e. canonicalize argv's to UTF-8) because of the code we
have in this file:

https://github.com/llvm/llvm-project/blob/master/llvm/lib/Support/InitLLVM.cpp#L32

For many LLVM commands, we already have calls of InitLLVM, but there
are still remainings.

Diff Detail

Event Timeline

ruiu created this revision.Nov 25 2019, 5:27 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptNov 25 2019, 5:27 PM
MaskRay accepted this revision.Nov 25 2019, 5:38 PM
This revision is now accepted and ready to land.Nov 25 2019, 5:38 PM
This revision was automatically updated to reflect the committed changes.