diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-10-09 07:45:26 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-10-09 07:45:26 +0000 |
commit | 0597c1e53cc9e773eff07746df271cd035cc5bd2 (patch) | |
tree | b918b6194a706c48a89ce9ceb8424bd6efddd9ba /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | c9b22d735a921e335bc02aea0bd4695c5a3e52a9 (diff) | |
download | bcm5719-llvm-0597c1e53cc9e773eff07746df271cd035cc5bd2.tar.gz bcm5719-llvm-0597c1e53cc9e773eff07746df271cd035cc5bd2.zip |
We use the enums to query whether an Attributes object has that attribute. The
opaque layer is responsible for knowing where that specific attribute is stored.
llvm-svn: 165489
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index c6bb9f21771..8c57f4cff25 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -578,7 +578,7 @@ void CodeGenModule::SetLLVMFunctionAttributesForDefinition(const Decl *D, // (noinline wins over always_inline, and we can't specify both in IR) if ((D->hasAttr<AlwaysInlineAttr>() || D->hasAttr<ForceInlineAttr>()) && - !F->getFnAttributes().hasNoInlineAttr()) + !F->getFnAttributes().hasAttribute(llvm::Attributes::NoInline)) F->addFnAttr(llvm::Attribute::AlwaysInline); // FIXME: Communicate hot and cold attributes to LLVM more directly. |