summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2016-05-29 01:57:20 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2016-05-29 01:57:20 +0000
commitfd82f0501fe1b3e0d6f4ba09c0e3169e01e88d7a (patch)
treee45f62e92442988572ba9445813c941fb3a02b15 /llvm/lib/CodeGen
parent9768d73c743d69f96558f0821ce692c66de1473e (diff)
downloadbcm5719-llvm-fd82f0501fe1b3e0d6f4ba09c0e3169e01e88d7a.tar.gz
bcm5719-llvm-fd82f0501fe1b3e0d6f4ba09c0e3169e01e88d7a.zip
Add RelaxELFRelocations to TargetOptions.h.
It will be used in clang. llvm-svn: 271161
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/LLVMTargetMachine.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
index 2f7f8dfe646..346555a3deb 100644
--- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp
+++ b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
@@ -73,6 +73,8 @@ void LLVMTargetMachine::initAsmInfo() {
if (Options.CompressDebugSections)
TmpAsmInfo->setCompressDebugSections(DebugCompressionType::DCT_ZlibGnu);
+ TmpAsmInfo->setRelaxELFRelocations(Options.RelaxELFRelocations);
+
AsmInfo = TmpAsmInfo;
}
OpenPOWER on IntegriCloud