diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2016-05-29 01:57:20 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2016-05-29 01:57:20 +0000 |
| commit | fd82f0501fe1b3e0d6f4ba09c0e3169e01e88d7a (patch) | |
| tree | e45f62e92442988572ba9445813c941fb3a02b15 | |
| parent | 9768d73c743d69f96558f0821ce692c66de1473e (diff) | |
| download | bcm5719-llvm-fd82f0501fe1b3e0d6f4ba09c0e3169e01e88d7a.tar.gz bcm5719-llvm-fd82f0501fe1b3e0d6f4ba09c0e3169e01e88d7a.zip | |
Add RelaxELFRelocations to TargetOptions.h.
It will be used in clang.
llvm-svn: 271161
| -rw-r--r-- | llvm/include/llvm/Target/TargetOptions.h | 8 | ||||
| -rw-r--r-- | llvm/lib/CodeGen/LLVMTargetMachine.cpp | 2 |
2 files changed, 7 insertions, 3 deletions
diff --git a/llvm/include/llvm/Target/TargetOptions.h b/llvm/include/llvm/Target/TargetOptions.h index eb272c31bb9..1de8a5baacc 100644 --- a/llvm/include/llvm/Target/TargetOptions.h +++ b/llvm/include/llvm/Target/TargetOptions.h @@ -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; 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; } |

