aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CommandFlags.cpp
diff options
context:
space:
mode:
authorArthur Eubanks <aeubanks@google.com>2021-08-16 18:24:22 -0700
committerArthur Eubanks <aeubanks@google.com>2021-08-17 21:05:41 -0700
commitde0ae9e89ec437d9f58e4b2da04d210c161854a3 (patch)
tree195a1215f00baa00c52e9fe6729951b07c985349 /llvm/lib/CodeGen/CommandFlags.cpp
parentcc327bd5231126006b4177b8ce0946ce52e2f645 (diff)
downloadllvm-de0ae9e89ec437d9f58e4b2da04d210c161854a3.zip
llvm-de0ae9e89ec437d9f58e4b2da04d210c161854a3.tar.gz
llvm-de0ae9e89ec437d9f58e4b2da04d210c161854a3.tar.bz2
[NFC] Cleanup more AttributeList::addAttribute()
Diffstat (limited to 'llvm/lib/CodeGen/CommandFlags.cpp')
-rw-r--r--llvm/lib/CodeGen/CommandFlags.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/CommandFlags.cpp b/llvm/lib/CodeGen/CommandFlags.cpp
index e5f5da5..19f3959 100644
--- a/llvm/lib/CodeGen/CommandFlags.cpp
+++ b/llvm/lib/CodeGen/CommandFlags.cpp
@@ -677,8 +677,7 @@ void codegen::setFunctionAttributes(StringRef CPU, StringRef Features,
Attribute::get(Ctx, "trap-func-name", getTrapFuncName()));
// Let NewAttrs override Attrs.
- F.setAttributes(
- Attrs.addAttributes(Ctx, AttributeList::FunctionIndex, NewAttrs));
+ F.setAttributes(Attrs.addFnAttributes(Ctx, NewAttrs));
}
/// Set function attributes of functions in Module M based on CPU,