[PATCH] D46034: Support for distributed ThinLTO options
Peter Collingbourne via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 27 12:08:11 PDT 2018
pcc added inline comments.
================
Comment at: lld/ELF/InputFiles.h:263
+ bool addedToLink();
+ bool isFileBitcode();
----------------
rdhindsa wrote:
> pcc wrote:
> > I don't think you need this function. You should be able to use `isBitcode` to test whether `MB->File` is bitcode directly in the caller.
> isBitcode is a static function in InputFiles.cpp. In order to be able to use that function in LTO.cpp :
> 1) Either I move the function to InputFiles.h, in which case it will get imported to all other files including InputFiles.h ,which will increase code size.
> In my opinion, we can simply call it for LazyObjFile. Please let me know if you still have concerns.
You can just declare it as `inline bool isBitcode(...) { ... }`. That way it should be fine to put it in a header file.
Repository:
rLLD LLVM Linker
https://reviews.llvm.org/D46034
More information about the llvm-commits
mailing list