[LLD][COFF] Generate map file even if no /out flag is present
Currently LLD does not generate a map file if no /out flag (e.g., /out:a.exe) is present. This is because LLD derives the map file's name from the default output file name is no output file name is specified explicitly on the command line. However, in this case, the default output file name has not been set by LLD yet when LLD tries to set the name of the map file. This patch fixes this corner case by moving the logic handling map file flags to a place after the default output file name is set. Reviewed By: thakis Differential Revision: https://reviews.llvm.org/D134559
Loading
Please sign in to comment