Fix PR8565.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 15 Nov 2010 14:40:36 +0000 (14:40 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 15 Nov 2010 14:40:36 +0000 (14:40 +0000)
commitdb9835d0895337eb94c19e3a30b7d3fc8fcddfd5
tree44c7e159de2a82428c8280b8a1c08c1b68188b60
parent38e0c9ba578bb1f2871fa3f15c9a97a83cc17c82
Fix PR8565.

This moves most of the isUsed logic to the MCSymbol itself. With this we
get a bit more relaxed about allowing definitions after uses: uses that
don't evaluate their argument immediately (jmp foo) are accepted.

ddunbar, this was the smallest compromise I could think of that lets us
accept gcc (and clang!) assembly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119144 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCSymbol.h
lib/MC/MCParser/AsmParser.cpp
lib/MC/MCSymbol.cpp
test/MC/ELF/set.s [new file with mode: 0644]