From e63ea9d6f7b1d15f4819e6af8ee9452046e1548c Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Wed, 6 Mar 2024 23:03:11 -0800 Subject: [CommandFlags] Rename option -relax-elf-relocations to -x86-relax-relocations relax-elf-relocations is misleading and there were AMDGPU/SystemZ tests misusing this x86-specific option. --- llvm/lib/CodeGen/CommandFlags.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/CommandFlags.cpp') diff --git a/llvm/lib/CodeGen/CommandFlags.cpp b/llvm/lib/CodeGen/CommandFlags.cpp index d82b2a8..d61b708 100644 --- a/llvm/lib/CodeGen/CommandFlags.cpp +++ b/llvm/lib/CodeGen/CommandFlags.cpp @@ -363,7 +363,7 @@ codegen::RegisterCodeGenFlags::RegisterCodeGenFlags() { CGBINDOPT(UseCtors); static cl::opt RelaxELFRelocations( - "relax-elf-relocations", + "x86-relax-relocations", cl::desc( "Emit GOTPCRELX/REX_GOTPCRELX instead of GOTPCREL on x86-64 ELF"), cl::init(true)); -- cgit v1.1