aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/BackendUtil.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2024-08-15 15:52:20 -0700
committerFangrui Song <i@maskray.me>2024-08-15 15:52:20 -0700
commit3333ec1183803fa5a2353e710b8b22db6a72e292 (patch)
tree80eda433040cb855f069a2e8a61fe97cd708d3a8 /clang/lib/CodeGen/BackendUtil.cpp
parent7156bcf2867f4ca98c8c9166e1ecb77daab08aa5 (diff)
downloadllvm-3333ec1183803fa5a2353e710b8b22db6a72e292.zip
llvm-3333ec1183803fa5a2353e710b8b22db6a72e292.tar.gz
llvm-3333ec1183803fa5a2353e710b8b22db6a72e292.tar.bz2
[Driver] Make CodeGenOptions name match MCTargetOptions names
* Initialize `X86RelaxRelocations`. * Fix #96860 test to actually test -Wa,-msse2avx for non-x86.
Diffstat (limited to 'clang/lib/CodeGen/BackendUtil.cpp')
-rw-r--r--clang/lib/CodeGen/BackendUtil.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp
index 81e6702..34c0881 100644
--- a/clang/lib/CodeGen/BackendUtil.cpp
+++ b/clang/lib/CodeGen/BackendUtil.cpp
@@ -471,7 +471,7 @@ static bool initTargetOptions(DiagnosticsEngine &Diags,
Options.MCOptions.Dwarf64 = CodeGenOpts.Dwarf64;
Options.MCOptions.PreserveAsmComments = CodeGenOpts.PreserveAsmComments;
Options.MCOptions.Crel = CodeGenOpts.Crel;
- Options.MCOptions.X86RelaxRelocations = CodeGenOpts.RelaxELFRelocations;
+ Options.MCOptions.X86RelaxRelocations = CodeGenOpts.X86RelaxRelocations;
Options.MCOptions.CompressDebugSections =
CodeGenOpts.getCompressDebugSections();
Options.MCOptions.ABIName = TargetOpts.ABI;