File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
include/llvm/CASObjectFormats Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ struct CASBlock {
65
65
Content (Content), SectionRef(SectionRef),
66
66
BlockContentID(BlockContentID) {}
67
67
68
- bool isZeroFill () const { return !Content.hasValue (); }
68
+ bool isZeroFill () const { return !Content.has_value (); }
69
69
};
70
70
71
71
struct CASBlockFixup {
@@ -86,7 +86,7 @@ struct CASSymbol {
86
86
bool IsAutoHide;
87
87
Optional<CASBlockRef> BlockRef;
88
88
89
- bool isDefined () const { return BlockRef.hasValue (); }
89
+ bool isDefined () const { return BlockRef.has_value (); }
90
90
};
91
91
92
92
// / Provides information about the symbols/blocks/sections that a CAS schema
Original file line number Diff line number Diff line change @@ -1882,7 +1882,7 @@ Expected<CASSymbolRef> NestedV1ObjectReader::getOrCreateCASSymbolRef(
1882
1882
Expected<Optional<NameRef>> NameRef = Symbol->getName ();
1883
1883
if (!NameRef)
1884
1884
return NameRef.takeError ();
1885
- if (NameRef->hasValue ())
1885
+ if (NameRef->has_value ())
1886
1886
SymbolsByName[(*NameRef)->getName ()] = CASSymbolRef{uint64_t (Ref.get ())};
1887
1887
}
1888
1888
return CASSymbolRef{uint64_t (Ref.get ())};
@@ -2085,7 +2085,7 @@ Error BlockNodeRef::materializeFixups(
2085
2085
2086
2086
// Check for an abstract backedge.
2087
2087
if (TI->Index == Targets->size ()) {
2088
- assert (KeptAliveBySymbol.hasValue ());
2088
+ assert (KeptAliveBySymbol.has_value ());
2089
2089
CASBlockFixup CASFixup{F->Offset , F->Kind , TI->Addend ,
2090
2090
*KeptAliveBySymbol};
2091
2091
if (Error E = Callback (CASFixup))
@@ -2112,7 +2112,7 @@ Error BlockNodeRef::materializeFixups(
2112
2112
if (!ExpectedName)
2113
2113
return ExpectedName.takeError ();
2114
2114
StringRef Name = *ExpectedName;
2115
- TargetRef = Reader.getCASSymbolRefByName (Name). getValue ( );
2115
+ TargetRef = * Reader.getCASSymbolRefByName (Name);
2116
2116
}
2117
2117
2118
2118
// Pass in this block's KeptAliveByBlock for edges.
You can’t perform that action at this time.
0 commit comments