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 @@ -119,15 +119,14 @@ bool RuntimeDyldCOFF::isCompatibleFile(const object::ObjectFile &Obj) const {
119
119
return Obj.isCOFF ();
120
120
}
121
121
122
- bool RuntimeDyldCOFF::relocationNeedsDLLImportStub (const RelocationRef &R) const {
122
+ bool RuntimeDyldCOFF::relocationNeedsDLLImportStub (
123
+ const RelocationRef &R) const {
123
124
object::symbol_iterator Symbol = R.getSymbol ();
124
125
Expected<StringRef> TargetNameOrErr = Symbol->getName ();
125
126
if (!TargetNameOrErr)
126
127
return false ;
127
128
128
- StringRef TargetName = *TargetNameOrErr;
129
-
130
- return TargetName.startswith (getImportSymbolPrefix ());
129
+ return TargetNameOrErr->startswith (getImportSymbolPrefix ());
131
130
}
132
131
133
132
} // namespace llvm
You can’t perform that action at this time.
0 commit comments