diff options
author | Fangrui Song <i@maskray.me> | 2022-08-05 18:20:23 -0700 |
---|---|---|
committer | Tom Stellard <tstellar@redhat.com> | 2022-08-08 12:53:26 -0700 |
commit | 9383f823971f847baafd0b05dc35c6cc530000e1 (patch) | |
tree | 0f9490ba9e1ad554e4d613e4f80f4d794be59069 | |
parent | 107b9db28bd7e16e8ba5a165a7936e8d3331fe64 (diff) | |
download | llvm-9383f823971f847baafd0b05dc35c6cc530000e1.zip llvm-9383f823971f847baafd0b05dc35c6cc530000e1.tar.gz llvm-9383f823971f847baafd0b05dc35c6cc530000e1.tar.bz2 |
[ELF] Keep only getTarget() call. NFC
The place from D61712 seems unneeded now. We can just use the place added by
D62609 (support AArch64 BTI/PAC).
(cherry picked from commit e89d6d2ac527f973c43563373dfdeb9e4c3bbcc5)
-rw-r--r-- | lld/ELF/Driver.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp index 6c0fd31..dc2d4ad 100644 --- a/lld/ELF/Driver.cpp +++ b/lld/ELF/Driver.cpp @@ -590,11 +590,6 @@ void LinkerDriver::linkerMain(ArrayRef<const char *> argsArr) { if (errorCount()) return; - // The Target instance handles target-specific stuff, such as applying - // relocations or writing a PLT section. It also contains target-dependent - // values such as a default image base address. - target = getTarget(); - link(args); } |