forked from OSchip/llvm-project
parent
6a2a889b8a
commit
b993cf50d6
|
@ -83,13 +83,13 @@ public:
|
|||
}
|
||||
|
||||
/// Bitwise AND-assignment for FlagNames.
|
||||
JITSymbolFlags& operator&=(const FlagNames &RHS) {
|
||||
JITSymbolFlags &operator&=(const FlagNames &RHS) {
|
||||
Flags &= RHS;
|
||||
return *this;
|
||||
}
|
||||
|
||||
/// Bitwise OR-assignment for FlagNames.
|
||||
JITSymbolFlags& operator|=(const FlagNames &RHS) {
|
||||
JITSymbolFlags &operator|=(const FlagNames &RHS) {
|
||||
Flags |= RHS;
|
||||
return *this;
|
||||
}
|
||||
|
@ -136,7 +136,9 @@ public:
|
|||
bool isCallable() const { return (Flags & Callable) == Callable; }
|
||||
|
||||
/// Get the underlying flags value as an integer.
|
||||
UnderlyingType getRawFlagsValue() const { return static_cast<UnderlyingType>(Flags); }
|
||||
UnderlyingType getRawFlagsValue() const {
|
||||
return static_cast<UnderlyingType>(Flags);
|
||||
}
|
||||
|
||||
/// Return a reference to the target-specific flags.
|
||||
TargetFlagsType& getTargetFlags() { return TargetFlags; }
|
||||
|
|
|
@ -1158,7 +1158,8 @@ 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(DependantSym.getFlags() & ~JITSymbolFlags::Materializing);
|
||||
DependantSym.setFlags(DependantSym.getFlags() &
|
||||
~JITSymbolFlags::Materializing);
|
||||
DependantJD.MaterializingInfos.erase(DependantMII);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue