mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-16 11:08:09 +00:00
Add RelaxELFRelocations to TargetOptions.h.
It will be used in clang. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271161 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c615a826fd
commit
65123b902b
@ -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;
|
||||
|
||||
|
@ -73,6 +73,8 @@ void LLVMTargetMachine::initAsmInfo() {
|
||||
if (Options.CompressDebugSections)
|
||||
TmpAsmInfo->setCompressDebugSections(DebugCompressionType::DCT_ZlibGnu);
|
||||
|
||||
TmpAsmInfo->setRelaxELFRelocations(Options.RelaxELFRelocations);
|
||||
|
||||
AsmInfo = TmpAsmInfo;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user