aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorDávid Bolvanský <david.bolvansky@gmail.com>2021-02-20 06:57:47 +0100
committerDávid Bolvanský <david.bolvansky@gmail.com>2021-02-20 06:57:47 +0100
commitee51c42e0060fc98b499312e51a96bc7cf4bcc18 (patch)
treefd4249bf054a2e5b7d3de157587e0dd49a0a7ee7 /clang/lib/CodeGen/CodeGenFunction.cpp
parentcd54c5791988ca5e80f0c08c4a27baef8dce205c (diff)
downloadllvm-ee51c42e0060fc98b499312e51a96bc7cf4bcc18.zip
llvm-ee51c42e0060fc98b499312e51a96bc7cf4bcc18.tar.gz
llvm-ee51c42e0060fc98b499312e51a96bc7cf4bcc18.tar.bz2
Reduce the number of attributes attached to each function
This takes advantage of the implicit default behavior to reduce the number of attributes.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.cpp4
1 files changed, 2 insertions, 2 deletions
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)