[LLD] Rename lld port driver entry function to a consistent name
authorReshabh Sharma <Reshabhkumar.Sharma@amd.com>
Fri, 18 Dec 2020 06:39:01 +0000 (12:09 +0530)
committerReshabh Sharma <Reshabhkumar.Sharma@amd.com>
Fri, 18 Dec 2020 06:48:37 +0000 (12:18 +0530)
commitfdd6ed8e9341f5161673e962cbd36e1f4c3968f5
treedeb9d7c25c7bbea1ced0750bc74d9053eae72b72
parent93fd52329fe530d10ace5d24327e2b6d457c2ac8
[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
lld/COFF/Driver.cpp
lld/COFF/Driver.h
lld/ELF/Driver.cpp
lld/ELF/Driver.h
lld/wasm/Driver.cpp