From af668b0e7d3581dea3b4f29a9262686e83887e5b Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Tue, 28 Oct 2008 00:17:57 +0000 Subject: Add attribute always_inline support. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58304 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenModule.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/CodeGen/CodeGenModule.cpp') diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index a1cd6f1e6c..aaca21bab3 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/lib/CodeGen/CodeGenModule.cpp @@ -274,6 +274,9 @@ void CodeGenModule::SetFunctionAttributesForDefinition(const Decl *D, if (!Features.Exceptions) F->addFnAttr(llvm::Attribute::NoUnwind); + + if (D->getAttr()) + F->addFnAttr(llvm::Attribute::AlwaysInline); } void CodeGenModule::SetMethodAttributes(const ObjCMethodDecl *MD, -- cgit v1.2.3-18-g5258