[llvm] 651a42f - [ORC] Remove unused flag (PendingRemoval) from JITDylib symbol table.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 5 15:53:34 PST 2024
Author: Lang Hames
Date: 2024-01-05T15:53:26-08:00
New Revision: 651a42ff65c3afc2a2ec6c7fc19009387757d686
URL: https://github.com/llvm/llvm-project/commit/651a42ff65c3afc2a2ec6c7fc19009387757d686
DIFF: https://github.com/llvm/llvm-project/commit/651a42ff65c3afc2a2ec6c7fc19009387757d686.diff
LOG: [ORC] Remove unused flag (PendingRemoval) from JITDylib symbol table.
Added:
Modified:
llvm/include/llvm/ExecutionEngine/Orc/Core.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/ExecutionEngine/Orc/Core.h b/llvm/include/llvm/ExecutionEngine/Orc/Core.h
index ba164c6b629edc..6a9bcf712169d7 100644
--- a/llvm/include/llvm/ExecutionEngine/Orc/Core.h
+++ b/llvm/include/llvm/ExecutionEngine/Orc/Core.h
@@ -1210,14 +1210,13 @@ class JITDylib : public ThreadSafeRefCountedBase<JITDylib>,
SymbolTableEntry() = default;
SymbolTableEntry(JITSymbolFlags Flags)
: Flags(Flags), State(static_cast<uint8_t>(SymbolState::NeverSearched)),
- MaterializerAttached(false), PendingRemoval(false) {}
+ MaterializerAttached(false) {}
ExecutorAddr getAddress() const { return Addr; }
JITSymbolFlags getFlags() const { return Flags; }
SymbolState getState() const { return static_cast<SymbolState>(State); }
bool hasMaterializerAttached() const { return MaterializerAttached; }
- bool isPendingRemoval() const { return PendingRemoval; }
void setAddress(ExecutorAddr Addr) { this->Addr = Addr; }
void setFlags(JITSymbolFlags Flags) { this->Flags = Flags; }
@@ -1231,18 +1230,13 @@ class JITDylib : public ThreadSafeRefCountedBase<JITDylib>,
this->MaterializerAttached = MaterializerAttached;
}
- void setPendingRemoval(bool PendingRemoval) {
- this->PendingRemoval = PendingRemoval;
- }
-
ExecutorSymbolDef getSymbol() const { return {Addr, Flags}; }
private:
ExecutorAddr Addr;
JITSymbolFlags Flags;
- uint8_t State : 6;
+ uint8_t State : 7;
uint8_t MaterializerAttached : 1;
- uint8_t PendingRemoval : 1;
};
using SymbolTable = DenseMap<SymbolStringPtr, SymbolTableEntry>;
More information about the llvm-commits
mailing list