diff options
author | Alexandre Ganea <alexandre.ganea@ubisoft.com> | 2020-06-18 08:57:50 -0400 |
---|---|---|
committer | Alexandre Ganea <alexandre.ganea@ubisoft.com> | 2020-06-18 09:17:14 -0400 |
commit | 89ea0b05207d45c145fb525df554b3b986ae379b (patch) | |
tree | b7eb532a2dfdfb9453963471f595e34a02f9e74d /clang/tools/driver/cc1_main.cpp | |
parent | 24eff42ba4b85eaa5429e8efe9bd2070d34ba1f7 (diff) | |
download | llvm-89ea0b05207d45c145fb525df554b3b986ae379b.zip llvm-89ea0b05207d45c145fb525df554b3b986ae379b.tar.gz llvm-89ea0b05207d45c145fb525df554b3b986ae379b.tar.bz2 |
[MC] Pass down argv0 & cc1 cmd-line to the back-end and store in MCTargetOptions
When targetting CodeView, the goal is to store argv0 & cc1 cmd-line in the emitted .OBJ, in order to allow a reproducer from the .OBJ alone.
This patch is to simplify https://reviews.llvm.org/D80833
Diffstat (limited to 'clang/tools/driver/cc1_main.cpp')
-rw-r--r-- | clang/tools/driver/cc1_main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/tools/driver/cc1_main.cpp b/clang/tools/driver/cc1_main.cpp index 3347785..0872015 100644 --- a/clang/tools/driver/cc1_main.cpp +++ b/clang/tools/driver/cc1_main.cpp @@ -203,8 +203,8 @@ int cc1_main(ArrayRef<const char *> Argv, const char *Argv0, void *MainAddr) { IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions(); TextDiagnosticBuffer *DiagsBuffer = new TextDiagnosticBuffer; DiagnosticsEngine Diags(DiagID, &*DiagOpts, DiagsBuffer); - bool Success = - CompilerInvocation::CreateFromArgs(Clang->getInvocation(), Argv, Diags); + bool Success = CompilerInvocation::CreateFromArgs(Clang->getInvocation(), + Argv, Diags, Argv0); if (Clang->getFrontendOpts().TimeTrace) { llvm::timeTraceProfilerInitialize( |