Add RelaxELFRelocations to TargetOptions.h.
It will be used in clang.
llvm-svn: 271161
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
index 2f7f8df..346555a 100644
--- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp
+++ b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
@@ -73,6 +73,8 @@
if (Options.CompressDebugSections)
TmpAsmInfo->setCompressDebugSections(DebugCompressionType::DCT_ZlibGnu);
+ TmpAsmInfo->setRelaxELFRelocations(Options.RelaxELFRelocations);
+
AsmInfo = TmpAsmInfo;
}