diff options
author | Fangrui Song <i@maskray.me> | 2024-03-06 23:19:59 -0800 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2024-03-06 23:19:59 -0800 |
commit | a3319371970b599ef65ef1567c440fbdc3a330f4 (patch) | |
tree | d63abccdc3bddef6511079dc71585ca5485fa789 /llvm/lib/CodeGen/LLVMTargetMachine.cpp | |
parent | 886ecb3078e5f3a5cffc70408a637242c223c363 (diff) | |
download | llvm-a3319371970b599ef65ef1567c440fbdc3a330f4.zip llvm-a3319371970b599ef65ef1567c440fbdc3a330f4.tar.gz llvm-a3319371970b599ef65ef1567c440fbdc3a330f4.tar.bz2 |
[MC] Move CompressDebugSections/RelaxELFRelocations from TargetOptions/MCAsmInfo to MCTargetOptions
The convention is for such MC-specific options to reside in
MCTargetOptions. However, CompressDebugSections/RelaxELFRelocations do
not follow the convention: `CompressDebugSections` is defined in both
TargetOptions and MCAsmInfo and there is forwarding complexity.
Move the option to MCTargetOptions and hereby simplify the code. Rename
the misleading RelaxELFRelocations to X86RelaxRelocations. llvm-mc
-relax-relocations and llc -x86-relax-relocations can now be unified.
Diffstat (limited to 'llvm/lib/CodeGen/LLVMTargetMachine.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LLVMTargetMachine.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp index 42cabb5..94ab8ed 100644 --- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp +++ b/llvm/lib/CodeGen/LLVMTargetMachine.cpp @@ -77,10 +77,6 @@ void LLVMTargetMachine::initAsmInfo() { TmpAsmInfo->setPreserveAsmComments(Options.MCOptions.PreserveAsmComments); - TmpAsmInfo->setCompressDebugSections(Options.CompressDebugSections); - - TmpAsmInfo->setRelaxELFRelocations(Options.RelaxELFRelocations); - TmpAsmInfo->setFullRegisterNames(Options.MCOptions.PPCUseFullRegisterNames); if (Options.ExceptionModel != ExceptionHandling::None) |