diff options
Diffstat (limited to 'lib/VMCore/AsmWriter.cpp')
-rw-r--r-- | lib/VMCore/AsmWriter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index ffbdd2ebdb..4ad08ff8a2 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -1556,7 +1556,7 @@ void AssemblyWriter::printFunction(const Function *F) { } FunctionType *FT = F->getFunctionType(); - const AttrListPtr &Attrs = F->getAttributes(); + const AttributeSet &Attrs = F->getAttributes(); Attributes RetAttrs = Attrs.getRetAttributes(); if (RetAttrs.hasAttributes()) Out << Attrs.getRetAttributes().getAsString() << ' '; @@ -1849,7 +1849,7 @@ void AssemblyWriter::printInstruction(const Instruction &I) { PointerType *PTy = cast<PointerType>(Operand->getType()); FunctionType *FTy = cast<FunctionType>(PTy->getElementType()); Type *RetTy = FTy->getReturnType(); - const AttrListPtr &PAL = CI->getAttributes(); + const AttributeSet &PAL = CI->getAttributes(); if (PAL.getRetAttributes().hasAttributes()) Out << ' ' << PAL.getRetAttributes().getAsString(); @@ -1882,7 +1882,7 @@ void AssemblyWriter::printInstruction(const Instruction &I) { PointerType *PTy = cast<PointerType>(Operand->getType()); FunctionType *FTy = cast<FunctionType>(PTy->getElementType()); Type *RetTy = FTy->getReturnType(); - const AttrListPtr &PAL = II->getAttributes(); + const AttributeSet &PAL = II->getAttributes(); // Print the calling convention being used. if (II->getCallingConv() != CallingConv::C) { |