summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCAsmInfoDarwin.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-10-21 01:17:30 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-10-21 01:17:30 +0000
commitc606bfe6600a64be3f99d0b420946de004c57a57 (patch)
tree1aad2f80e0b25b29f2bfb9aab827822d06b60b75 /llvm/lib/MC/MCAsmInfoDarwin.cpp
parentf60e0a160fc8db67461bcb930924f60a7dccb9be (diff)
downloadbcm5719-llvm-c606bfe6600a64be3f99d0b420946de004c57a57.tar.gz
bcm5719-llvm-c606bfe6600a64be3f99d0b420946de004c57a57.zip
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
Diffstat (limited to 'llvm/lib/MC/MCAsmInfoDarwin.cpp')
-rw-r--r--llvm/lib/MC/MCAsmInfoDarwin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCAsmInfoDarwin.cpp b/llvm/lib/MC/MCAsmInfoDarwin.cpp
index eaf28dd4cf7..96fe216d0d6 100644
--- a/llvm/lib/MC/MCAsmInfoDarwin.cpp
+++ b/llvm/lib/MC/MCAsmInfoDarwin.cpp
@@ -60,4 +60,5 @@ MCAsmInfoDarwin::MCAsmInfoDarwin() {
DwarfUsesRelocationsAcrossSections = false;
UseIntegratedAssembler = true;
+ SetDirectiveSuppressesReloc = true;
}
OpenPOWER on IntegriCloud