[all-commits] [llvm/llvm-project] 961c45: [LLD][COFF] Generate map file even if no /out flag...

pzhengqc via All-commits all-commits at lists.llvm.org
Mon Sep 26 09:05:50 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 961c45fd9f4e289d7d5e3d990c611d2bb7f2f1fb
      https://github.com/llvm/llvm-project/commit/961c45fd9f4e289d7d5e3d990c611d2bb7f2f1fb
  Author: Pengxuan Zheng <pzheng at quicinc.com>
  Date:   2022-09-26 (Mon, 26 Sep 2022)

  Changed paths:
    M lld/COFF/Driver.cpp
    M lld/test/COFF/map.test

  Log Message:
  -----------
  [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




More information about the All-commits mailing list