From e74b326b1f506538f1fce11b7a70bcf7fb9b573c 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. --- llvm/include/llvm/CodeGen/CommandFlags.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/CodeGen/CommandFlags.inc b/llvm/include/llvm/CodeGen/CommandFlags.inc index f1b3afb..76071b3 100644 --- a/llvm/include/llvm/CodeGen/CommandFlags.inc +++ b/llvm/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) -- 2.7.4