summaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/Target/TargetOptions.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetOptions.h b/include/llvm/Target/TargetOptions.h
index d9c8651..e77be0e 100644
--- a/include/llvm/Target/TargetOptions.h
+++ b/include/llvm/Target/TargetOptions.h
@@ -54,6 +54,59 @@ namespace llvm {
FloatABIType(FloatABI::Default), AllowFPOpFusion(FPOpFusion::Standard)
{}
+ TargetOptions(const TargetOptions& rhs)
+ : PrintMachineCode(rhs.PrintMachineCode),
+ NoFramePointerElim(rhs.NoFramePointerElim),
+ LessPreciseFPMADOption(rhs.LessPreciseFPMADOption),
+ UnsafeFPMath(rhs.UnsafeFPMath),
+ NoInfsFPMath(rhs.NoInfsFPMath),
+ NoNaNsFPMath(rhs.NoNaNsFPMath),
+ HonorSignDependentRoundingFPMathOption(rhs.HonorSignDependentRoundingFPMathOption),
+ UseSoftFloat(rhs.UseSoftFloat),
+ NoZerosInBSS(rhs.NoZerosInBSS),
+ JITEmitDebugInfo(rhs.JITEmitDebugInfo),
+ JITEmitDebugInfoToDisk(rhs.JITEmitDebugInfoToDisk),
+ GuaranteedTailCallOpt(rhs.GuaranteedTailCallOpt),
+ DisableTailCalls(rhs.DisableTailCalls),
+ StackAlignmentOverride(rhs.StackAlignmentOverride),
+ EnableFastISel(rhs.EnableFastISel),
+ PositionIndependentExecutable(rhs.PositionIndependentExecutable),
+ EnableSegmentedStacks(rhs.EnableSegmentedStacks),
+ UseInitArray(rhs.UseInitArray),
+ TrapFuncName(rhs.TrapFuncName),
+ FloatABIType(rhs.FloatABIType),
+ AllowFPOpFusion(rhs.AllowFPOpFusion)
+ {}
+
+ TargetOptions& operator =(const TargetOptions& rhs)
+ {
+ if (&rhs == this)
+ return *this;
+
+ PrintMachineCode = rhs.PrintMachineCode;
+ NoFramePointerElim = rhs.NoFramePointerElim;
+ LessPreciseFPMADOption = rhs.LessPreciseFPMADOption;
+ UnsafeFPMath = rhs.UnsafeFPMath;
+ NoInfsFPMath = rhs.NoInfsFPMath;
+ NoNaNsFPMath = rhs.NoNaNsFPMath;
+ HonorSignDependentRoundingFPMathOption = rhs.HonorSignDependentRoundingFPMathOption;
+ UseSoftFloat = rhs.UseSoftFloat;
+ NoZerosInBSS = rhs.NoZerosInBSS;
+ JITEmitDebugInfo = rhs.JITEmitDebugInfo;
+ JITEmitDebugInfoToDisk = rhs.JITEmitDebugInfoToDisk;
+ GuaranteedTailCallOpt = rhs.GuaranteedTailCallOpt;
+ DisableTailCalls = rhs.DisableTailCalls;
+ StackAlignmentOverride = rhs.StackAlignmentOverride;
+ EnableFastISel = rhs.EnableFastISel;
+ PositionIndependentExecutable = rhs.PositionIndependentExecutable;
+ EnableSegmentedStacks = rhs.EnableSegmentedStacks;
+ UseInitArray = rhs.UseInitArray;
+ TrapFuncName = rhs.TrapFuncName;
+ FloatABIType = rhs.FloatABIType;
+ AllowFPOpFusion = rhs.AllowFPOpFusion;
+ return *this;
+ }
+
/// PrintMachineCode - This flag is enabled when the -print-machineinstrs
/// option is specified on the command line, and should enable debugging
/// output from the code generator.