[llvm-branch-commits] [lld] 9383f82 - [ELF] Keep only getTarget() call. NFC

Tom Stellard via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Aug 8 12:53:50 PDT 2022


Author: Fangrui Song
Date: 2022-08-08T12:53:26-07:00
New Revision: 9383f823971f847baafd0b05dc35c6cc530000e1

URL: https://github.com/llvm/llvm-project/commit/9383f823971f847baafd0b05dc35c6cc530000e1
DIFF: https://github.com/llvm/llvm-project/commit/9383f823971f847baafd0b05dc35c6cc530000e1.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).

(cherry picked from commit e89d6d2ac527f973c43563373dfdeb9e4c3bbcc5)

Added: 
    

Modified: 
    lld/ELF/Driver.cpp

Removed: 
    


################################################################################
diff  --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp
index 6c0fd3139e87..dc2d4ada450d 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);
   }
 


        


More information about the llvm-branch-commits mailing list