[llvm] [Arm64EC] Copy import descriptors to the EC Map (PR #84834)

Jacek Caban via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 11 14:41:56 PDT 2024


================
@@ -704,6 +720,8 @@ static Expected<std::vector<unsigned>> getSymbols(SymbolicFile *Obj,
       if (Map == &SymMap->Map) {
         Ret.push_back(SymNames.tell());
         SymNames << Name << '\0';
+        if (CopyImportDescriptorToECMap && isImportDescriptor(Name))
----------------
cjacek wrote:

You could check `SymMap->UseECMap` here instead of `CopyImportDescriptorToECMap`. When we're in `Map == &SymMap->Map` branch, we know we don't have EC object.

https://github.com/llvm/llvm-project/pull/84834


More information about the llvm-commits mailing list