diff options
author | John McCall <rjmccall@apple.com> | 2020-05-16 14:44:54 -0400 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2020-05-16 14:44:54 -0400 |
commit | 32870a84d9a40ea682e22a24b5f0d1a218c3b062 (patch) | |
tree | c475c4cde3b66e7723dd54571e92cf088f2c3b29 /clang/lib/CodeGen/CodeGenAction.cpp | |
parent | 49c9a68d7fc62aabdf4d625fcb2954555496772b (diff) | |
download | llvm-32870a84d9a40ea682e22a24b5f0d1a218c3b062.zip llvm-32870a84d9a40ea682e22a24b5f0d1a218c3b062.tar.gz llvm-32870a84d9a40ea682e22a24b5f0d1a218c3b062.tar.bz2 |
Expose IRGen API to add the default IR attributes to a function definition.
I've also made a stab at imposing some more order on where and how we add
attributes; this part should be NFC. I wasn't sure whether the CUDA use
case for libdevice should propagate CPU/features attributes, so there's a
bit of unnecessary duplication.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenAction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenAction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenAction.cpp b/clang/lib/CodeGen/CodeGenAction.cpp index b8ffe34..5592511 100644 --- a/clang/lib/CodeGen/CodeGenAction.cpp +++ b/clang/lib/CodeGen/CodeGenAction.cpp @@ -246,7 +246,7 @@ namespace clang { for (auto &LM : LinkModules) { if (LM.PropagateAttrs) for (Function &F : *LM.Module) - Gen->CGM().AddDefaultFnAttrs(F); + Gen->CGM().addDefaultFunctionDefinitionAttributes(F); CurLinkModule = LM.Module.get(); |