summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCAsmInfo.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/MCAsmInfo.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/MCAsmInfo.cpp')
-rw-r--r--llvm/lib/MC/MCAsmInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCAsmInfo.cpp b/llvm/lib/MC/MCAsmInfo.cpp
index ed3d5edb2e7..7574edbcbe8 100644
--- a/llvm/lib/MC/MCAsmInfo.cpp
+++ b/llvm/lib/MC/MCAsmInfo.cpp
@@ -64,7 +64,7 @@ MCAsmInfo::MCAsmInfo() {
GPRel64Directive = nullptr;
GPRel32Directive = nullptr;
GlobalDirective = "\t.globl\t";
- HasSetDirective = true;
+ SetDirectiveSuppressesReloc = false;
HasAggressiveSymbolFolding = true;
COMMDirectiveAlignmentIsInBytes = true;
LCOMMDirectiveAlignmentType = LCOMM::NoAlignment;
OpenPOWER on IntegriCloud