[all-commits] [llvm/llvm-project] fdd6ed: [LLD] Rename lld port driver entry function to a c...

Reshabh Sharma via All-commits all-commits at lists.llvm.org
Thu Dec 17 22:54:35 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: fdd6ed8e9341f5161673e962cbd36e1f4c3968f5
      https://github.com/llvm/llvm-project/commit/fdd6ed8e9341f5161673e962cbd36e1f4c3968f5
  Author: Reshabh Sharma <Reshabhkumar.Sharma at amd.com>
  Date:   2020-12-18 (Fri, 18 Dec 2020)

  Changed paths:
    M lld/COFF/Driver.cpp
    M lld/COFF/Driver.h
    M lld/ELF/Driver.cpp
    M lld/ELF/Driver.h
    M lld/wasm/Driver.cpp

  Log Message:
  -----------
  [LLD] Rename lld port driver entry function to a consistent name

Libraries linked to the lld elf library exposes a function named main.
When debugging code linked to such libraries and intending to set a
breakpoint at main, the debugger also sets breakpoint at the main
function at lld elf driver. The possible choice was to rename it to
link but that would again clash with lld::*::link. This patch tries
to consistently rename them to linkerMain.

Differential Revision: https://reviews.llvm.org/D91418




More information about the All-commits mailing list