mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-21 13:33:26 +00:00
Add a FIXME and explain a hack.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122144 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
47e8ae6324
commit
3f037ef2f5
@ -267,7 +267,10 @@ bool MCExpr::EvaluateAsAbsolute(int64_t &Res, const MCAssembler *Asm,
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!EvaluateAsRelocatableImpl(Value, Asm, Layout, Addrs, Addrs) ||
|
// FIXME: The use if InSet = Addrs is a hack. Setting InSet causes us
|
||||||
|
// absolutize differences across sections and that is what the MachO writer
|
||||||
|
// uses Addrs for.
|
||||||
|
if (!EvaluateAsRelocatableImpl(Value, Asm, Layout, Addrs, /*InSet*/ Addrs) ||
|
||||||
!Value.isAbsolute()) {
|
!Value.isAbsolute()) {
|
||||||
// EvaluateAsAbsolute is defined to return the "current value" of
|
// EvaluateAsAbsolute is defined to return the "current value" of
|
||||||
// the expression if we are given a Layout object, even in cases
|
// the expression if we are given a Layout object, even in cases
|
||||||
|
Loading…
x
Reference in New Issue
Block a user