LTOBackend.cpp emits `$dwo_dir/.dwo`.įor -gsplit-dwarf in the backend phase of a distributed ThinLTO (-fthinlto-index=) which does object file generation and no IR generation, -g should not be needed. Note: for implicit regular/Thin LTO, `clang -flto=thin -gsplit-dwarf a.o b.o` passes `-plugin-opt=dwo_dir=` to the linker. o' a.indexing.o b.indexing.oĬlang -gsplit-dwarf -O2 -c -fthinlto-index=lto/a.o.thinlto.bc a.o -o lto/a.oĬlang -gsplit-dwarf -O2 -c -fthinlto-index=lto/b.o.thinlto.bc b.o -o lto/b.o dwo even in the absence of -g.Ĭlang -g -O2 -c -flto=thin -fthin-link-bitcode=a.indexing.o a.cĬlang -g -O2 -c -flto=thin -fthin-link-bitcode=b.indexing.o b.cĬlang -fuse-ld=lld -Wl,-thinlto-index-only=a.rsp -Wl,-thinlto-prefix-replace=' lto/' -Wl,-thinlto-object-suffix-replace='.indexing.o. This patch makes `-fthinlto-index= -gsplit-dwarf` emit. g is an IR generation option while -gsplit-dwarf is an object file generation option.įor -gsplit-dwarf in ThinLTO backend compile which does object file generation and no IR generation, -g should not be needed.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |