From f96954ca30bde3fd6cfbe0e933de03bbc53fbb4e Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Thu, 19 Feb 2009 19:22:11 +0000 Subject: Add irgen support for the noinline attribute. llvm-svn: 65056 --- clang/lib/CodeGen/CodeGenModule.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'clang/lib/CodeGen/CodeGenModule.cpp') diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index ae472f01ce6..3d01770cd3a 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -339,6 +339,9 @@ void CodeGenModule::SetFunctionAttributesForDefinition(const Decl *D, if (D->getAttr()) F->addFnAttr(llvm::Attribute::AlwaysInline); + + if (D->getAttr()) + F->addFnAttr(llvm::Attribute::NoInline); } void CodeGenModule::SetMethodAttributes(const ObjCMethodDecl *MD, -- cgit v1.2.3