[lld] 97b25d9 - [lld][WebAssembly] Don't set importUndefined when -shared is used. NFC (#75241)

via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 12 13:19:46 PST 2023


Author: Sam Clegg
Date: 2023-12-12T13:19:42-08:00
New Revision: 97b25d91df3a553b92915a6f81db874dc8954b19

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

LOG: [lld][WebAssembly] Don't set importUndefined when -shared is used. NFC (#75241)

`importUndefined` is only used a couple of places and both of those
already handle `isPIC` separately.

Added: 
    

Modified: 
    lld/wasm/Driver.cpp

Removed: 
    


################################################################################
diff  --git a/lld/wasm/Driver.cpp b/lld/wasm/Driver.cpp
index f8b0fc357bd90c..c68fe33a14e29d 100644
--- a/lld/wasm/Driver.cpp
+++ b/lld/wasm/Driver.cpp
@@ -606,7 +606,6 @@ static void setConfigs() {
       config->memoryImport =
           std::pair<llvm::StringRef, llvm::StringRef>(defaultModule, memoryName);
     }
-    config->importUndefined = true;
   }
 
   // If neither export-memory nor import-memory is specified, default to


        


More information about the llvm-commits mailing list