MC/Expr: Implemnt more aggressive folding during symbol evaluation using
authorDaniel Dunbar <daniel@zuster.org>
Fri, 17 Dec 2010 05:50:33 +0000 (05:50 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 17 Dec 2010 05:50:33 +0000 (05:50 +0000)
commit17304b3489b7b8ea06dd4df237f15a381ae181ce
tree00d295e407f5cd2d69878a0995c7d9b8dd54422a
parentb87422778c4e7b828e6e846b81fd77509439c622
MC/Expr: Implemnt more aggressive folding during symbol evaluation using
IsSymbolRefDifferenceFullyResolved(). For example, we will now fold away
something like:
--
_a:
...
L0:
...
L1:
...
.long (L1 - L0) / 2
--

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122043 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/MCExpr.cpp
test/MC/MachO/darwin-complex-difference.s [new file with mode: 0644]