mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
Simplify.
llvm-svn: 122401
This commit is contained in:
parent
bc2bf96e91
commit
8db4843cd3
@ -906,16 +906,15 @@ public:
|
||||
// find a case where they are actually emitted.
|
||||
Type = macho::RIT_Vanilla;
|
||||
} else if (SD->getSymbol().isVariable()) {
|
||||
const MCExpr *Value = SD->getSymbol().getVariableValue();
|
||||
int64_t Res;
|
||||
bool isAbs = Value->EvaluateAsAbsolute(Res, Layout, SectionAddress);
|
||||
if (isAbs) {
|
||||
if (SD->getSymbol().getVariableValue()->EvaluateAsAbsolute(
|
||||
Res, Layout, SectionAddress)) {
|
||||
FixedValue = Res;
|
||||
return;
|
||||
} else {
|
||||
report_fatal_error("unsupported relocation of variable '" +
|
||||
SD->getSymbol().getName() + "'");
|
||||
}
|
||||
|
||||
report_fatal_error("unsupported relocation of variable '" +
|
||||
SD->getSymbol().getName() + "'");
|
||||
} else {
|
||||
// Check whether we need an external or internal relocation.
|
||||
if (doesSymbolRequireExternRelocation(SD)) {
|
||||
|
Loading…
Reference in New Issue
Block a user