File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
llvm/lib/ExecutionEngine/RuntimeDyld Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -118,15 +118,14 @@ bool RuntimeDyldCOFF::isCompatibleFile(const object::ObjectFile &Obj) const {
118
118
return Obj.isCOFF ();
119
119
}
120
120
121
- bool RuntimeDyldCOFF::relocationNeedsDLLImportStub (const RelocationRef &R) const {
121
+ bool RuntimeDyldCOFF::relocationNeedsDLLImportStub (
122
+ const RelocationRef &R) const {
122
123
object::symbol_iterator Symbol = R.getSymbol ();
123
124
Expected<StringRef> TargetNameOrErr = Symbol->getName ();
124
125
if (!TargetNameOrErr)
125
126
return false ;
126
127
127
- StringRef TargetName = *TargetNameOrErr;
128
-
129
- return TargetName.startswith (getImportSymbolPrefix ());
128
+ return TargetNameOrErr->startswith (getImportSymbolPrefix ());
130
129
}
131
130
132
131
} // namespace llvm
You can’t perform that action at this time.
0 commit comments