Fixes an issue with missing nul-terminators and saves us some
string copying, compared to a version which would insert nul-terminators.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D82033
[LTO] Use StringRef instead of C-style strings in setCodeGenDebugOptions ClosedPublic Authored by chill on Jun 17 2020, 11:03 AM.
Details Summary Fixes an issue with missing nul-terminators and saves us some
Diff Detail
Event Timelinechill retitled this revision from [LTO] Nul-terminate options passed to LLVM to [LTO] Use StringRef instead of C-style strings in setCodeGenDebugOptions. This revision is now accepted and ready to land.Jun 19 2020, 9:00 AM Closed by commit rG75b0bbca1d0c: [LTO] Use StringRef instead of C-style strings in setCodeGenDebugOptions (authored by chill). · Explain WhyJun 22 2020, 3:43 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 272372 llvm/include/llvm/LTO/legacy/LTOCodeGenerator.h
llvm/lib/LTO/LTOCodeGenerator.cpp
llvm/tools/lto/lto.cpp
|