Previously, passing -fthinlto-index= to clang required that bitcode
files be explicitly marked by -x ir. This change makes us detect files
with object file extensions as bitcode files when -fthinlto-index= is
present, so that explicitly marking them is no longer necessary.
Explicitly specifying -x ir is still accepted and continues to be part
of the test case to ensure we continue to support it.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 34829 Build 34828: arc lint + arc unit
Event Timeline
Comment Actions
This was suggested on D64458.
If we take this change, D64458 can be simplified to just accepting -fthinlto-index= as a CoreOption without needing any further changes to Driver.cpp.
I also changed the error message in this change to reflect the fact that we no longer require -x ir; we just require the input to be a bitcode file.
clang/lib/Driver/Driver.cpp | ||
---|---|---|
2123 | -fthinlto-index= |
-fthinlto-index=