diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2008-10-28 00:17:57 +0000 | 
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2008-10-28 00:17:57 +0000 | 
| commit | 03a3844c661d436c4771e2a55430b5713db02af1 (patch) | |
| tree | 7e85f4c8f47903f9d2116f438643d35263597551 /clang/lib/CodeGen | |
| parent | 42c68f26cfaff9039d301d15b7f0130929375603 (diff) | |
| download | bcm5719-llvm-03a3844c661d436c4771e2a55430b5713db02af1.tar.gz bcm5719-llvm-03a3844c661d436c4771e2a55430b5713db02af1.zip  | |
Add attribute always_inline support.
llvm-svn: 58304
Diffstat (limited to 'clang/lib/CodeGen')
| -rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 3 | 
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index a1cd6f1e6ca..aaca21bab33 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/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<AlwaysInlineAttr>()) +    F->addFnAttr(llvm::Attribute::AlwaysInline);  }  void CodeGenModule::SetMethodAttributes(const ObjCMethodDecl *MD,  | 

