From ee51c42e0060fc98b499312e51a96bc7cf4bcc18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Bolvansk=C3=BD?= Date: Sat, 20 Feb 2021 06:57:47 +0100 Subject: Reduce the number of attributes attached to each function This takes advantage of the implicit default behavior to reduce the number of attributes. --- clang/lib/CodeGen/CodeGenFunction.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp') diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index b393c88..f552b27 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/lib/CodeGen/CodeGenFunction.cpp @@ -859,8 +859,8 @@ void CodeGenFunction::StartFunction(GlobalDecl GD, QualType RetTy, } // Add no-jump-tables value. - Fn->addFnAttr("no-jump-tables", - llvm::toStringRef(CGM.getCodeGenOpts().NoUseJumpTables)); + if (CGM.getCodeGenOpts().NoUseJumpTables) + Fn->addFnAttr("no-jump-tables", "true"); // Add no-inline-line-tables value. if (CGM.getCodeGenOpts().NoInlineLineTables) -- cgit v1.1