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 | f96954ca30bde3fd6cfbe0e933de03bbc53fbb4e (patch) | |
tree | 6634e2ed6519c53b4dbef1969f258bcd53885c98 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 880971241bc86b5027c4a19abedd1aadb9a700ed (diff) | |
download | bcm5719-llvm-f96954ca30bde3fd6cfbe0e933de03bbc53fbb4e.tar.gz bcm5719-llvm-f96954ca30bde3fd6cfbe0e933de03bbc53fbb4e.zip |
Add irgen support for the noinline attribute.
llvm-svn: 65056
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-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 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<AlwaysInlineAttr>()) F->addFnAttr(llvm::Attribute::AlwaysInline); + + if (D->getAttr<NoinlineAttr>()) + F->addFnAttr(llvm::Attribute::NoInline); } void CodeGenModule::SetMethodAttributes(const ObjCMethodDecl *MD, |