aboutsummaryrefslogtreecommitdiff
path: root/lld/ELF/Driver.h
diff options
context:
space:
mode:
authorReshabh Sharma <Reshabhkumar.Sharma@amd.com>2020-12-18 12:09:01 +0530
committerReshabh Sharma <Reshabhkumar.Sharma@amd.com>2020-12-18 12:18:37 +0530
commitfdd6ed8e9341f5161673e962cbd36e1f4c3968f5 (patch)
treedeb9d7c25c7bbea1ced0750bc74d9053eae72b72 /lld/ELF/Driver.h
parent93fd52329fe530d10ace5d24327e2b6d457c2ac8 (diff)
downloadllvm-fdd6ed8e9341f5161673e962cbd36e1f4c3968f5.zip
llvm-fdd6ed8e9341f5161673e962cbd36e1f4c3968f5.tar.gz
llvm-fdd6ed8e9341f5161673e962cbd36e1f4c3968f5.tar.bz2
[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
Diffstat (limited to 'lld/ELF/Driver.h')
-rw-r--r--lld/ELF/Driver.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/Driver.h b/lld/ELF/Driver.h
index 3115e28..96d0400 100644
--- a/lld/ELF/Driver.h
+++ b/lld/ELF/Driver.h
@@ -26,7 +26,7 @@ extern class LinkerDriver *driver;
class LinkerDriver {
public:
- void main(ArrayRef<const char *> args);
+ void linkerMain(ArrayRef<const char *> args);
void addFile(StringRef path, bool withLOption);
void addLibrary(StringRef name);