aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-10-04 06:43:21 +0000
committerBill Wendling <isanbard@gmail.com>2012-10-04 06:43:21 +0000
commit8f00ae6a3f8d392ce0f42a81223e479f97876d7f (patch)
tree80a046a9c058fcbb0fbcc7529784eb2f6cc15888 /lib/Target/NVPTX/NVPTXAsmPrinter.cpp
parent41d876cea3b5212e5ee8bc25c13c6eab54a4a93c (diff)
downloadexternal_llvm-8f00ae6a3f8d392ce0f42a81223e479f97876d7f.zip
external_llvm-8f00ae6a3f8d392ce0f42a81223e479f97876d7f.tar.gz
external_llvm-8f00ae6a3f8d392ce0f42a81223e479f97876d7f.tar.bz2
Use new accessor methods to query for attributes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165205 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/NVPTX/NVPTXAsmPrinter.cpp')
-rw-r--r--lib/Target/NVPTX/NVPTXAsmPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/NVPTX/NVPTXAsmPrinter.cpp b/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
index f2b9616..f1e0367 100644
--- a/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
+++ b/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
@@ -1456,7 +1456,7 @@ void NVPTXAsmPrinter::emitFunctionParamList(const Function *F,
continue;
}
- if (PAL.paramHasAttr(paramIndex+1, Attribute::ByVal) == false) {
+ if (PAL.getParamAttributes(paramIndex+1).hasByValAttr() == false) {
// Just a scalar
const PointerType *PTy = dyn_cast<PointerType>(Ty);
if (isKernelFunc) {