summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2018-09-02 01:28:26 +0000
committerLang Hames <lhames@gmail.com>2018-09-02 01:28:26 +0000
commit6a2a889b8a2cfee207f77cfdc525a8315cfaf6d7 (patch)
tree9abcdc5d3002329eb09591735d75b3376a0a878d /llvm/lib/ExecutionEngine
parente0d03e966552f03253825bff248fb4ad1c425c78 (diff)
downloadbcm5719-llvm-6a2a889b8a2cfee207f77cfdc525a8315cfaf6d7.tar.gz
bcm5719-llvm-6a2a889b8a2cfee207f77cfdc525a8315cfaf6d7.zip
[ORC] Tidy up JITSymbolFlags to remove the need for some explicit static_casts.
Removes the implicit conversion to the underlying type for JITSymbolFlags::FlagNames and replaces it with some bitwise and comparison operators. llvm-svn: 341282
Diffstat (limited to 'llvm/lib/ExecutionEngine')
-rw-r--r--llvm/lib/ExecutionEngine/Orc/Core.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/ExecutionEngine/Orc/Core.cpp b/llvm/lib/ExecutionEngine/Orc/Core.cpp
index 46c1673011e..0a44e2eed67 100644
--- a/llvm/lib/ExecutionEngine/Orc/Core.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/Core.cpp
@@ -1158,8 +1158,7 @@ void JITDylib::emit(const SymbolFlagsMap &Emitted) {
assert(DependantJD.Symbols.count(DependantName) &&
"Dependant has no entry in the Symbols table");
auto &DependantSym = DependantJD.Symbols[DependantName];
- DependantSym.setFlags(static_cast<JITSymbolFlags::FlagNames>(
- DependantSym.getFlags() & ~JITSymbolFlags::Materializing));
+ DependantSym.setFlags(DependantSym.getFlags() & ~JITSymbolFlags::Materializing);
DependantJD.MaterializingInfos.erase(DependantMII);
}
}
@@ -1177,8 +1176,7 @@ void JITDylib::emit(const SymbolFlagsMap &Emitted) {
assert(Symbols.count(Name) &&
"Symbol has no entry in the Symbols table");
auto &Sym = Symbols[Name];
- Sym.setFlags(static_cast<JITSymbolFlags::FlagNames>(
- Sym.getFlags() & ~JITSymbolFlags::Materializing));
+ Sym.setFlags(Sym.getFlags() & ~JITSymbolFlags::Materializing);
MaterializingInfos.erase(MII);
}
}
OpenPOWER on IntegriCloud