diff options
author | Anders Carlsson <andersca@mac.com> | 2009-02-19 19:22:11 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-02-19 19:22:11 +0000 |
commit | 81ebbde0fb30a40df0f5e913d8a1f71c383d271a (patch) | |
tree | 9c426c357db09e256e8ee32c2a03fcaf4cca65ee /lib/CodeGen/CodeGenModule.cpp | |
parent | 5bab788d40026ad6e932a3cd9b86bc13f8a27661 (diff) |
Add irgen support for the noinline attribute.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65056 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenModule.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index ae472f01ce..3d01770cd3 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/lib/CodeGen/CodeGenModule.cpp @@ -339,6 +339,9 @@ void CodeGenModule::SetFunctionAttributesForDefinition(const Decl *D, if (D->getAttr<AlwaysInlineAttr>()) F->addFnAttr(llvm::Attribute::AlwaysInline); + + if (D->getAttr<NoinlineAttr>()) + F->addFnAttr(llvm::Attribute::NoInline); } void CodeGenModule::SetMethodAttributes(const ObjCMethodDecl *MD, |