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)
commitc606bfe6600a64be3f99d0b420946de004c57a57
tree1aad2f80e0b25b29f2bfb9aab827822d06b60b75
parentf60e0a160fc8db67461bcb930924f60a7dccb9be
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.

llvm-svn: 220256
15 files changed:
llvm/include/llvm/MC/MCAsmInfo.h
llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
llvm/lib/MC/MCAsmInfo.cpp
llvm/lib/MC/MCAsmInfoDarwin.cpp
llvm/lib/Target/NVPTX/MCTargetDesc/NVPTXMCAsmInfo.cpp
llvm/lib/Target/R600/MCTargetDesc/AMDGPUMCAsmInfo.cpp
llvm/lib/Target/X86/X86MCInstLower.cpp
llvm/test/CodeGen/AArch64/jump-table.ll
llvm/test/CodeGen/X86/2010-05-25-DotDebugLoc.ll
llvm/test/CodeGen/X86/patchpoint-invoke.ll
llvm/test/CodeGen/XCore/exception.ll
llvm/test/DebugInfo/X86/debug-loc-asan.ll
llvm/test/DebugInfo/X86/dwarf-aranges.ll
llvm/test/DebugInfo/X86/multiple-aranges.ll
llvm/test/DebugInfo/X86/pr19307.ll