llvm-capstone/llvm/tools/llvm-symbolizer
Alexandre Ganea 3c6f47d6b8
[llvm-driver] Fix usage of InitLLVM on Windows (#76306)
Previously, some tools such as `clang` or `lld` which require strict
order for certain command-line options, such as `clang -cc1` or `lld
-flavor`, would not longer work on Windows, when these tools were linked
as part of `llvm-driver`. This was caused by `InitLLVM` which was part
of the `*_main()` function of these tools, which in turn calls
`windows::GetCommandLineArguments`. That function completly replaces
argc/argv by new UTF-8 contents, so any ajustements to argc/argv made by
`llvm-driver` prior to calling these tools was reset.

`InitLLVM` is now called by the `llvm-driver`. Any tool that
participates in (or is part of) the `llvm-driver` doesn't call
`InitLLVM` anymore.
2024-01-11 19:08:28 -05:00
..
CMakeLists.txt [llvm-{debuginfod,ml,objdump,symbolizer}, dsymutil] Enable multicall driver 2023-08-17 23:26:51 +00:00
llvm-symbolizer.cpp [llvm-driver] Fix usage of InitLLVM on Windows (#76306) 2024-01-11 19:08:28 -05:00
Opts.td Revert D87067 "[llvm-symbolizer] Add back --use-symbol-table=true" 2023-11-03 00:09:11 -07:00