[llvm] r271161 - Add RelaxELFRelocations to TargetOptions.h.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Sat May 28 18:57:21 PDT 2016
Author: rafael
Date: Sat May 28 20:57:20 2016
New Revision: 271161
URL: http://llvm.org/viewvc/llvm-project?rev=271161&view=rev
Log:
Add RelaxELFRelocations to TargetOptions.h.
It will be used in clang.
Modified:
llvm/trunk/include/llvm/Target/TargetOptions.h
llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp
Modified: llvm/trunk/include/llvm/Target/TargetOptions.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/TargetOptions.h?rev=271161&r1=271160&r2=271161&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Target/TargetOptions.h (original)
+++ llvm/trunk/include/llvm/Target/TargetOptions.h Sat May 28 20:57:20 2016
@@ -98,9 +98,9 @@ namespace llvm {
GuaranteedTailCallOpt(false), StackAlignmentOverride(0),
StackSymbolOrdering(true), EnableFastISel(false), UseInitArray(false),
DisableIntegratedAS(false), CompressDebugSections(false),
- FunctionSections(false), DataSections(false),
- UniqueSectionNames(true), TrapUnreachable(false), EmulatedTLS(false),
- FloatABIType(FloatABI::Default),
+ RelaxELFRelocations(false), FunctionSections(false),
+ DataSections(false), UniqueSectionNames(true), TrapUnreachable(false),
+ EmulatedTLS(false), FloatABIType(FloatABI::Default),
AllowFPOpFusion(FPOpFusion::Standard), Reciprocals(TargetRecip()),
JTType(JumpTable::Single), ThreadModel(ThreadModel::POSIX),
EABIVersion(EABI::Default), DebuggerTuning(DebuggerKind::Default),
@@ -190,6 +190,8 @@ namespace llvm {
/// Compress DWARF debug sections.
unsigned CompressDebugSections : 1;
+ unsigned RelaxELFRelocations : 1;
+
/// Emit functions into separate sections.
unsigned FunctionSections : 1;
Modified: llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp?rev=271161&r1=271160&r2=271161&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp (original)
+++ llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp Sat May 28 20:57:20 2016
@@ -73,6 +73,8 @@ void LLVMTargetMachine::initAsmInfo() {
if (Options.CompressDebugSections)
TmpAsmInfo->setCompressDebugSections(DebugCompressionType::DCT_ZlibGnu);
+ TmpAsmInfo->setRelaxELFRelocations(Options.RelaxELFRelocations);
+
AsmInfo = TmpAsmInfo;
}
More information about the llvm-commits
mailing list