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 | 9d91785987f60efe6276387f49526bc5d16f2167 (patch) | |
tree | 694e231c7ac04fe8e0a559070501fb6e1c463b8f /llvm/lib/Target/CBackend/CBackend.cpp | |
parent | 8e48dfe9a1b7f859ce429cfb75eb58fdc367e529 (diff) | |
download | bcm5719-llvm-9d91785987f60efe6276387f49526bc5d16f2167.tar.gz bcm5719-llvm-9d91785987f60efe6276387f49526bc5d16f2167.zip |
s/isReturnStruct()/hasStructRetAttr()/g
llvm-svn: 47857
Diffstat (limited to 'llvm/lib/Target/CBackend/CBackend.cpp')
-rw-r--r-- | llvm/lib/Target/CBackend/CBackend.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Target/CBackend/CBackend.cpp b/llvm/lib/Target/CBackend/CBackend.cpp index 946a2831521..3a4e97e276c 100644 --- a/llvm/lib/Target/CBackend/CBackend.cpp +++ b/llvm/lib/Target/CBackend/CBackend.cpp @@ -1904,7 +1904,7 @@ void CWriter::printContainedStructs(const Type *Ty, void CWriter::printFunctionSignature(const Function *F, bool Prototype) { /// isStructReturn - Should this function actually return a struct by-value? - bool isStructReturn = F->isStructReturn(); + bool isStructReturn = F->hasStructRetAttr(); if (F->hasInternalLinkage()) Out << "static "; if (F->hasDLLImportLinkage()) Out << "__declspec(dllimport) "; @@ -2024,7 +2024,7 @@ static inline bool isFPIntBitCast(const Instruction &I) { void CWriter::printFunction(Function &F) { /// isStructReturn - Should this function actually return a struct by-value? - bool isStructReturn = F.isStructReturn(); + bool isStructReturn = F.hasStructRetAttr(); printFunctionSignature(&F, false); Out << " {\n"; @@ -2148,7 +2148,7 @@ void CWriter::printBasicBlock(BasicBlock *BB) { // void CWriter::visitReturnInst(ReturnInst &I) { // If this is a struct return function, return the temporary struct. - bool isStructReturn = I.getParent()->getParent()->isStructReturn(); + bool isStructReturn = I.getParent()->getParent()->hasStructRetAttr(); if (isStructReturn) { Out << " return StructReturn;\n"; @@ -2584,7 +2584,7 @@ void CWriter::visitCallInst(CallInst &I) { // parameter instead of passing it to the call. const ParamAttrsList *PAL = I.getParamAttrs(); bool hasByVal = I.hasByValArgument(); - bool isStructRet = I.isStructReturn(); + bool isStructRet = I.hasStructRetAttr(); if (isStructRet) { writeOperandDeref(I.getOperand(1)); Out << " = "; |