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
- rL LLVM
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 ↗ | (On Diff #209387) | -fthinlto-index= |