There are two reasons why we might want to use
authorRafael Espindola <rafael.espindola@gmail.com>
Sat, 4 Dec 2010 03:21:47 +0000 (03:21 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sat, 4 Dec 2010 03:21:47 +0000 (03:21 +0000)
commit5d4918dbd116b0b5e561c431b1ea527ee1b9302a
tree3c50fff76598829d12b03b798194dcc6f0ab039d
parent9ad8221bcb26643ae5837d7f27b41610eeec98a7
There are two reasons why we might want to use

foo = a - b
.long foo
instead of just
.long a - b

First, on darwin9 64 bits the assembler produces the wrong result. Second,
if "a" is the end of the section all darwin assemblers (9, 10 and mc) will not
consider a - b to be a constant but will if the dummy foo is created.

Split how we handle these cases. The first one is something MC should take care
of. The second one has to be handled by the caller.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120889 91177308-0d34-0410-b5e6-96231b3b80d8
13 files changed:
include/llvm/MC/MCAsmInfo.h
include/llvm/MC/MCObjectStreamer.h
include/llvm/MC/MCStreamer.h
lib/MC/MCAsmInfo.cpp
lib/MC/MCAsmStreamer.cpp
lib/MC/MCDwarf.cpp
lib/MC/MCLoggingStreamer.cpp
lib/MC/MCNullStreamer.cpp
lib/MC/MCObjectStreamer.cpp
lib/Target/PTX/PTXMCAsmStreamer.cpp
lib/Target/PowerPC/PPCMCAsmInfo.cpp
lib/Target/X86/X86MCAsmInfo.cpp
test/MC/MachO/empty-dwarf-lines.s