[lld] e89d6d2 - [ELF] Keep only getTarget() call. NFC

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 5 18:20:29 PDT 2022


Author: Fangrui Song
Date: 2022-08-05T18:20:23-07:00
New Revision: e89d6d2ac527f973c43563373dfdeb9e4c3bbcc5

URL: https://github.com/llvm/llvm-project/commit/e89d6d2ac527f973c43563373dfdeb9e4c3bbcc5
DIFF: https://github.com/llvm/llvm-project/commit/e89d6d2ac527f973c43563373dfdeb9e4c3bbcc5.diff

LOG: [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).

Added: 
    

Modified: 
    lld/ELF/Driver.cpp

Removed: 
    


################################################################################
diff  --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp
index 1f7c56dd389b..821cf22df35d 100644
--- a/lld/ELF/Driver.cpp
+++ b/lld/ELF/Driver.cpp
@@ -591,11 +591,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);
   }
 


        


More information about the llvm-commits mailing list