summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGCall.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-04-13 21:08:27 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-04-13 21:08:27 +0000
commit4184ac847f91dc7a8644ad6c5a3e389923117eb3 (patch)
tree6bf3412b1f1afd38e9c10fb2945b62f3e0204644 /clang/lib/CodeGen/CGCall.cpp
parent6c1426308c29edd75b8b964b883b6f213da1b7c4 (diff)
downloadbcm5719-llvm-4184ac847f91dc7a8644ad6c5a3e389923117eb3.tar.gz
bcm5719-llvm-4184ac847f91dc7a8644ad6c5a3e389923117eb3.zip
Update to use hasAttr() instead of getAttr().
- No functionality change. llvm-svn: 68987
Diffstat (limited to 'clang/lib/CodeGen/CGCall.cpp')
-rw-r--r--clang/lib/CodeGen/CGCall.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp
index bad76409cb1..e6474cb9ee7 100644
--- a/clang/lib/CodeGen/CGCall.cpp
+++ b/clang/lib/CodeGen/CGCall.cpp
@@ -1650,13 +1650,13 @@ void CodeGenModule::ConstructAttributeList(const CGFunctionInfo &FI,
// FIXME: handle sseregparm someday...
if (TargetDecl) {
- if (TargetDecl->getAttr<NoThrowAttr>())
+ if (TargetDecl->hasAttr<NoThrowAttr>())
FuncAttrs |= llvm::Attribute::NoUnwind;
- if (TargetDecl->getAttr<NoReturnAttr>())
+ if (TargetDecl->hasAttr<NoReturnAttr>())
FuncAttrs |= llvm::Attribute::NoReturn;
- if (TargetDecl->getAttr<ConstAttr>())
+ if (TargetDecl->hasAttr<ConstAttr>())
FuncAttrs |= llvm::Attribute::ReadNone;
- else if (TargetDecl->getAttr<PureAttr>())
+ else if (TargetDecl->hasAttr<PureAttr>())
FuncAttrs |= llvm::Attribute::ReadOnly;
}
OpenPOWER on IntegriCloud