diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-09-20 14:44:42 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-09-20 14:44:42 +0000 |
commit | 8ce1e432d1c942d101617b3c623970a4f763f93d (patch) | |
tree | fcdf2ec41ce4f7e27ab421aaa942fb479e2b2d2e /lib/VMCore/AsmWriter.cpp | |
parent | 6dfabb6cc72118e046d2a466aa6adcec4c4923db (diff) | |
download | external_llvm-8ce1e432d1c942d101617b3c623970a4f763f93d.zip external_llvm-8ce1e432d1c942d101617b3c623970a4f763f93d.tar.gz external_llvm-8ce1e432d1c942d101617b3c623970a4f763f93d.tar.bz2 |
Make the 'getAsString' function a method of the Attributes class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164305 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/AsmWriter.cpp')
-rw-r--r-- | lib/VMCore/AsmWriter.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index 7626818..19fe156 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -1244,7 +1244,7 @@ void AssemblyWriter::writeParamOperand(const Value *Operand, TypePrinter.print(Operand->getType(), Out); // Print parameter attributes list if (Attrs != Attribute::None) - Out << ' ' << Attribute::getAsString(Attrs); + Out << ' ' << Attrs.getAsString(); Out << ' '; // Print the operand WriteAsOperandInternal(Out, Operand, &TypePrinter, &Machine, TheModule); @@ -1557,7 +1557,7 @@ void AssemblyWriter::printFunction(const Function *F) { const AttrListPtr &Attrs = F->getAttributes(); Attributes RetAttrs = Attrs.getRetAttributes(); if (RetAttrs != Attribute::None) - Out << Attribute::getAsString(Attrs.getRetAttributes()) << ' '; + Out << Attrs.getRetAttributes().getAsString() << ' '; TypePrinter.print(F->getReturnType(), Out); Out << ' '; WriteAsOperandInternal(Out, F, &TypePrinter, &Machine, F->getParent()); @@ -1587,7 +1587,7 @@ void AssemblyWriter::printFunction(const Function *F) { Attributes ArgAttrs = Attrs.getParamAttributes(i+1); if (ArgAttrs != Attribute::None) - Out << ' ' << Attribute::getAsString(ArgAttrs); + Out << ' ' << ArgAttrs.getAsString(); } } @@ -1601,7 +1601,7 @@ void AssemblyWriter::printFunction(const Function *F) { Out << " unnamed_addr"; Attributes FnAttrs = Attrs.getFnAttributes(); if (FnAttrs != Attribute::None) - Out << ' ' << Attribute::getAsString(Attrs.getFnAttributes()); + Out << ' ' << Attrs.getFnAttributes().getAsString(); if (F->hasSection()) { Out << " section \""; PrintEscapedString(F->getSection(), Out); @@ -1635,7 +1635,7 @@ void AssemblyWriter::printArgument(const Argument *Arg, // Output parameter attributes list if (Attrs != Attribute::None) - Out << ' ' << Attribute::getAsString(Attrs); + Out << ' ' << Attrs.getAsString(); // Output name, if available... if (Arg->hasName()) { @@ -1850,7 +1850,7 @@ void AssemblyWriter::printInstruction(const Instruction &I) { const AttrListPtr &PAL = CI->getAttributes(); if (PAL.getRetAttributes() != Attribute::None) - Out << ' ' << Attribute::getAsString(PAL.getRetAttributes()); + Out << ' ' << PAL.getRetAttributes().getAsString(); // If possible, print out the short form of the call instruction. We can // only do this if the first argument is a pointer to a nonvararg function, @@ -1874,7 +1874,7 @@ void AssemblyWriter::printInstruction(const Instruction &I) { } Out << ')'; if (PAL.getFnAttributes() != Attribute::None) - Out << ' ' << Attribute::getAsString(PAL.getFnAttributes()); + Out << ' ' << PAL.getFnAttributes().getAsString(); } else if (const InvokeInst *II = dyn_cast<InvokeInst>(&I)) { Operand = II->getCalledValue(); PointerType *PTy = cast<PointerType>(Operand->getType()); @@ -1889,7 +1889,7 @@ void AssemblyWriter::printInstruction(const Instruction &I) { } if (PAL.getRetAttributes() != Attribute::None) - Out << ' ' << Attribute::getAsString(PAL.getRetAttributes()); + Out << ' ' << PAL.getRetAttributes().getAsString(); // If possible, print out the short form of the invoke instruction. We can // only do this if the first argument is a pointer to a nonvararg function, @@ -1914,7 +1914,7 @@ void AssemblyWriter::printInstruction(const Instruction &I) { Out << ')'; if (PAL.getFnAttributes() != Attribute::None) - Out << ' ' << Attribute::getAsString(PAL.getFnAttributes()); + Out << ' ' << PAL.getFnAttributes().getAsString(); Out << "\n to "; writeOperand(II->getNormalDest(), true); |