summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-06-19 22:27:46 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-06-19 22:27:46 +0000
commit5c2871c78139ed8bee12552f8c8c3ff9afe6f60e (patch)
treede39ec3faceed66f4ad0d233507e694f3d776be4 /lib
parent474f2238604c3e1c81e2094acf53726e43c96fd3 (diff)
downloadllvm-5c2871c78139ed8bee12552f8c8c3ff9afe6f60e.tar.gz
llvm-5c2871c78139ed8bee12552f8c8c3ff9afe6f60e.tar.bz2
llvm-5c2871c78139ed8bee12552f8c8c3ff9afe6f60e.tar.xz
Use the assignment operator.
No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211319 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/LTO/LTOCodeGenerator.cpp23
1 files changed, 1 insertions, 22 deletions
diff --git a/lib/LTO/LTOCodeGenerator.cpp b/lib/LTO/LTOCodeGenerator.cpp
index 2772676c8e..a1709f60ff 100644
--- a/lib/LTO/LTOCodeGenerator.cpp
+++ b/lib/LTO/LTOCodeGenerator.cpp
@@ -124,28 +124,7 @@ bool LTOCodeGenerator::addModule(LTOModule* mod, std::string& errMsg) {
}
void LTOCodeGenerator::setTargetOptions(TargetOptions options) {
- Options.LessPreciseFPMADOption = options.LessPreciseFPMADOption;
- Options.NoFramePointerElim = options.NoFramePointerElim;
- Options.AllowFPOpFusion = options.AllowFPOpFusion;
- Options.UnsafeFPMath = options.UnsafeFPMath;
- Options.NoInfsFPMath = options.NoInfsFPMath;
- Options.NoNaNsFPMath = options.NoNaNsFPMath;
- Options.HonorSignDependentRoundingFPMathOption =
- options.HonorSignDependentRoundingFPMathOption;
- Options.UseSoftFloat = options.UseSoftFloat;
- Options.FloatABIType = options.FloatABIType;
- Options.NoZerosInBSS = options.NoZerosInBSS;
- Options.GuaranteedTailCallOpt = options.GuaranteedTailCallOpt;
- Options.DisableTailCalls = options.DisableTailCalls;
- Options.StackAlignmentOverride = options.StackAlignmentOverride;
- Options.TrapFuncName = options.TrapFuncName;
- Options.PositionIndependentExecutable = options.PositionIndependentExecutable;
- Options.UseInitArray = options.UseInitArray;
- Options.DataSections = options.DataSections;
- Options.FunctionSections = options.FunctionSections;
-
- Options.MCOptions = options.MCOptions;
- Options.JTType = options.JTType;
+ Options = options;
}
void LTOCodeGenerator::setDebugInfo(lto_debug_model debug) {