[llvm-commits] [llvm] r122144 - /llvm/trunk/lib/MC/MCExpr.cpp
Rafael Espindola
rafael.espindola at gmail.com
Fri Dec 17 20:19:20 PST 2010
Author: rafael
Date: Fri Dec 17 22:19:20 2010
New Revision: 122144
URL: http://llvm.org/viewvc/llvm-project?rev=122144&view=rev
Log:
Add a FIXME and explain a hack.
Modified:
llvm/trunk/lib/MC/MCExpr.cpp
Modified: llvm/trunk/lib/MC/MCExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCExpr.cpp?rev=122144&r1=122143&r2=122144&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCExpr.cpp (original)
+++ llvm/trunk/lib/MC/MCExpr.cpp Fri Dec 17 22:19:20 2010
@@ -267,7 +267,10 @@
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()) {
// EvaluateAsAbsolute is defined to return the "current value" of
// the expression if we are given a Layout object, even in cases
More information about the llvm-commits
mailing list