From 30aba8443584881eea466626cee65bfd906e91c2 Mon Sep 17 00:00:00 2001 From: James Y Knight Date: Wed, 20 Nov 2019 12:10:14 -0500 Subject: [PATCH] Rename 'DenormalMode' in CommandFlags.inc to 'DenormalFPMath', as its option is actually named anyhow. This avoids a conflict with the llvm::DenormalMode enum in FloatingPointMode.h. --- include/llvm/CodeGen/CommandFlags.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/llvm/CodeGen/CommandFlags.inc b/include/llvm/CodeGen/CommandFlags.inc index f1b3afbb44a..76071b38c41 100644 --- a/include/llvm/CodeGen/CommandFlags.inc +++ b/include/llvm/CodeGen/CommandFlags.inc @@ -151,7 +151,7 @@ static cl::opt "attribute not to use exceptions"), cl::init(false)); -static cl::opt DenormalMode( +static cl::opt DenormalFPMath( "denormal-fp-math", cl::desc("Select which denormal numbers the code is permitted to require"), cl::init(FPDenormal::IEEE), @@ -291,7 +291,7 @@ static TargetOptions InitTargetOptionsFromCodeGenFlags() { Options.NoNaNsFPMath = EnableNoNaNsFPMath; Options.NoSignedZerosFPMath = EnableNoSignedZerosFPMath; Options.NoTrappingFPMath = EnableNoTrappingFPMath; - Options.FPDenormalMode = DenormalMode; + Options.FPDenormalMode = DenormalFPMath; Options.HonorSignDependentRoundingFPMathOption = EnableHonorSignDependentRoundingFPMath; if (FloatABIForCalls != FloatABI::Default)