diff options
| author | Alexandre Ganea <alexandre.ganea@legionlabs.com> | 2022-01-19 19:44:18 -0500 |
|---|---|---|
| committer | Alexandre Ganea <alexandre.ganea@legionlabs.com> | 2022-01-19 19:44:37 -0500 |
| commit | aba5b91b699c556da0ee04418321b581bd33611e (patch) | |
| tree | fac0405bbe876405c2d0270c1641b662e16d9c97 /llvm/lib/Transforms/Utils/LoopPeel.cpp | |
| parent | dd75a6b2ae5c9c6628fb855473dc2f31073440d0 (diff) | |
| download | llvm-aba5b91b699c556da0ee04418321b581bd33611e.zip llvm-aba5b91b699c556da0ee04418321b581bd33611e.tar.gz llvm-aba5b91b699c556da0ee04418321b581bd33611e.tar.bz2 | |
Re-land [CodeView] Add full repro to LF_BUILDINFO record
This patch writes the full -cc1 command into the resulting .OBJ, like MSVC does. This allows for external tools (Recode, Live++) to rebuild a source file without any external dependency but the .OBJ itself (other than the compiler) and without knowledge of the build system.
The LF_BUILDINFO record stores a full path to the compiler, the PWD (CWD at program startup), a relative or absolute path to the source, and the full CC1 command line. The stored command line is self-standing (does not depend on the environment). In the same way, MSVC doesn't exactly store the provided command-line, but an expanded version (a somehow equivalent of CC1) which is also self-standing.
For more information see PR36198 and D43002.
Differential Revision: https://reviews.llvm.org/D80833
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopPeel.cpp')
0 files changed, 0 insertions, 0 deletions
