[llvm] [lld] [clang] Embed the command line arguments during LTO (PR #79390)
Sam Clegg via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 24 15:43:21 PST 2024
================
@@ -40,6 +41,7 @@ using namespace llvm;
namespace lld::wasm {
static std::unique_ptr<lto::LTO> createLTO() {
lto::Config c;
+ c.EmbedCmdArgs = commonContext().cmdArgs;
----------------
sbc100 wrote:
How about adding a helper like the existing ones `CommonLinkerContext.h`:
```
inline llvm::StringSaver &saver() { return context().saver; }
```
This means that the current linker code just calls `saver()` whenever it needs it.
https://github.com/llvm/llvm-project/pull/79390
More information about the cfe-commits
mailing list