llvm-6502/lib/MC
Rafael Espindola 5d4918dbd1 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
2010-12-04 03:21:47 +00:00
..
MCDisassembler
MCParser
CMakeLists.txt
ELFObjectWriter.cpp
MachObjectWriter.cpp
Makefile
MCAsmInfo.cpp There are two reasons why we might want to use 2010-12-04 03:21:47 +00:00
MCAsmInfoCOFF.cpp
MCAsmInfoDarwin.cpp Next step: Only pad debug_line when the target is darwin. Add a FIXME to avoid 2010-12-04 00:31:13 +00:00
MCAsmStreamer.cpp There are two reasons why we might want to use 2010-12-04 03:21:47 +00:00
MCAssembler.cpp
MCCodeEmitter.cpp
MCContext.cpp
MCDisassembler.cpp
MCDwarf.cpp There are two reasons why we might want to use 2010-12-04 03:21:47 +00:00
MCELFStreamer.cpp Try to resolve symbol differences early, and if successful create a plain 2010-12-03 00:55:40 +00:00
MCExpr.cpp Try to resolve symbol differences early, and if successful create a plain 2010-12-03 00:55:40 +00:00
MCInst.cpp
MCInstPrinter.cpp
MCLabel.cpp
MCLoggingStreamer.cpp There are two reasons why we might want to use 2010-12-04 03:21:47 +00:00
MCMachOStreamer.cpp Try to resolve symbol differences early, and if successful create a plain 2010-12-03 00:55:40 +00:00
MCNullStreamer.cpp There are two reasons why we might want to use 2010-12-04 03:21:47 +00:00
MCObjectFormat.cpp
MCObjectStreamer.cpp There are two reasons why we might want to use 2010-12-04 03:21:47 +00:00
MCObjectWriter.cpp
MCPureStreamer.cpp
MCSection.cpp
MCSectionCOFF.cpp
MCSectionELF.cpp
MCSectionMachO.cpp
MCStreamer.cpp Make EmitIntValue more efficient and more like what we do for leb128. The 2010-12-03 02:54:21 +00:00
MCSymbol.cpp
MCValue.cpp
TargetAsmBackend.cpp
WinCOFFObjectWriter.cpp
WinCOFFStreamer.cpp