For reducing binary size purpose, the binary's debug info and executable segment can be separated(like using objcopy --only-keep-debug). Here add support in llvm-profgen to use two binaries as input. The original one is executable binary and added for debug info only binary. Adding a flag --debug-binary=file-path, with this, the binary will load debug info from debug binary.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/test/tools/llvm-profgen/inline-cs-pseudoprobe.test | ||
---|---|---|
10–13 ↗ | (On Diff #395153) | Let's use a dedicated/targeted test case for this scenario, instead of making existing test more complicated. |
llvm/test/tools/llvm-profgen/inline-noprobe2.test | ||
---|---|---|
112 ↗ | (On Diff #395153) | We should be able to use llvm-objcopy in the test, so the existing test binary can be reused and with an extra test step running llvm-objcopy. |