forked from OSchip/llvm-project
parent
65c9e3dd17
commit
40f46bc3e6
|
@ -1110,7 +1110,7 @@ ExprValue LinkerScript::getSymbolValue(StringRef Name, const Twine &Loc) {
|
||||||
if (Symbol *Sym = Symtab->find(Name)) {
|
if (Symbol *Sym = Symtab->find(Name)) {
|
||||||
if (auto *DS = dyn_cast<Defined>(Sym))
|
if (auto *DS = dyn_cast<Defined>(Sym))
|
||||||
return {DS->Section, false, DS->Value, Loc};
|
return {DS->Section, false, DS->Value, Loc};
|
||||||
if (auto *SS = dyn_cast<SharedSymbol>(Sym))
|
if (isa<SharedSymbol>(Sym))
|
||||||
if (!ErrorOnMissingSection)
|
if (!ErrorOnMissingSection)
|
||||||
return {nullptr, false, 0, Loc};
|
return {nullptr, false, 0, Loc};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue