Fix a bit of confusion about .set and produce more readable assembly.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 21 Oct 2014 01:17:30 +0000 (01:17 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 21 Oct 2014 01:17:30 +0000 (01:17 +0000)
commit45968c54e94b306e8c65d97a829ab5b68102963c
treea3da052c4ab09a9a09cf55fb272bbd9be25248f8
parentf8c9d3d3c2525b529172577f4b42be1d401a6215
Fix a bit of confusion about .set and produce more readable assembly.

Every target we support has support for assembly that looks like

a = b - c
.long a

What is special about MachO is that the above combination suppresses the
production of a relocation.

With this change we avoid producing the intermediary labels when they don't
add any value.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220256 91177308-0d34-0410-b5e6-96231b3b80d8
15 files changed:
include/llvm/MC/MCAsmInfo.h
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
lib/MC/MCAsmInfo.cpp
lib/MC/MCAsmInfoDarwin.cpp
lib/Target/NVPTX/MCTargetDesc/NVPTXMCAsmInfo.cpp
lib/Target/R600/MCTargetDesc/AMDGPUMCAsmInfo.cpp
lib/Target/X86/X86MCInstLower.cpp
test/CodeGen/AArch64/jump-table.ll
test/CodeGen/X86/2010-05-25-DotDebugLoc.ll
test/CodeGen/X86/patchpoint-invoke.ll
test/CodeGen/XCore/exception.ll
test/DebugInfo/X86/debug-loc-asan.ll
test/DebugInfo/X86/dwarf-aranges.ll
test/DebugInfo/X86/multiple-aranges.ll
test/DebugInfo/X86/pr19307.ll