diff options
author | Devang Patel <dpatel@apple.com> | 2008-03-03 21:46:28 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2008-03-03 21:46:28 +0000 |
commit | 949a4b703892bb1609da45f4f9b6573c9c83f161 (patch) | |
tree | 134aebc1687b4475b4b29b5bffd7672aca752505 /lib/VMCore/Instructions.cpp | |
parent | 890cc575d3ce073c6296c8e889c6325a0d9a08f6 (diff) | |
download | external_llvm-949a4b703892bb1609da45f4f9b6573c9c83f161.zip external_llvm-949a4b703892bb1609da45f4f9b6573c9c83f161.tar.gz external_llvm-949a4b703892bb1609da45f4f9b6573c9c83f161.tar.bz2 |
s/isReturnStruct()/hasStructRetAttr()/g
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47857 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Instructions.cpp')
-rw-r--r-- | lib/VMCore/Instructions.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/VMCore/Instructions.cpp b/lib/VMCore/Instructions.cpp index dfd3b83..f7401ec 100644 --- a/lib/VMCore/Instructions.cpp +++ b/lib/VMCore/Instructions.cpp @@ -419,8 +419,9 @@ bool CallInst::doesNotThrow() const { return paramHasAttr(0, ParamAttr::NoUnwind); } -/// @brief Determine if the call returns a structure. -bool CallInst::isStructReturn() const { +/// @brief Determine if the call returns a structure through first +/// pointer argument. +bool CallInst::hasStructRetAttr() const { // Be friendly and also check the callee. return paramHasAttr(1, ParamAttr::StructRet); } @@ -560,8 +561,9 @@ void InvokeInst::setDoesNotThrow(bool doesNotThrow) { setParamAttrs(PAL); } -/// @brief Determine if the call returns a structure. -bool InvokeInst::isStructReturn() const { +/// @brief Determine if the invoke returns a structure through first +/// pointer argument. +bool InvokeInst::hasStructRetAttr() const { // Be friendly and also check the callee. return paramHasAttr(1, ParamAttr::StructRet); } |