diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-05-01 13:07:03 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-05-01 13:07:03 +0000 |
commit | cbf5a7ad06c1cc9ae319c78ed4e71c43b985c307 (patch) | |
tree | 15f6c7e0eb5a5e217e14d5a450fee36971a46d8c /llvm/lib/IR/Attributes.cpp | |
parent | 39354b32635a8717b9f631ca438167f2c4bbc534 (diff) | |
download | llvm-cbf5a7ad06c1cc9ae319c78ed4e71c43b985c307.zip llvm-cbf5a7ad06c1cc9ae319c78ed4e71c43b985c307.tar.gz llvm-cbf5a7ad06c1cc9ae319c78ed4e71c43b985c307.tar.bz2 |
Now that the underlying issue is fixed, revert r180750 and r180722.
The cause of the windows failures was fixed by r180791. Revert to the state
after Sabre's original revert.
Original message:
revert r179735, it has no testcases, and doesn't really make sense.
llvm-svn: 180844
Diffstat (limited to 'llvm/lib/IR/Attributes.cpp')
-rw-r--r-- | llvm/lib/IR/Attributes.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp index 2443b34..4fe6f9d 100644 --- a/llvm/lib/IR/Attributes.cpp +++ b/llvm/lib/IR/Attributes.cpp @@ -483,16 +483,13 @@ unsigned AttributeSetNode::getStackAlignment() const { return 0; } -std::string AttributeSetNode::getAsString(bool TargetIndependent, - bool InAttrGrp) const { +std::string AttributeSetNode::getAsString(bool InAttrGrp) const { std::string Str; for (SmallVectorImpl<Attribute>::const_iterator I = AttrList.begin(), E = AttrList.end(); I != E; ++I) { - if (TargetIndependent || !I->isStringAttribute()) { - if (I != AttrList.begin()) - Str += ' '; - Str += I->getAsString(InAttrGrp); - } + if (I != AttrList.begin()) + Str += ' '; + Str += I->getAsString(InAttrGrp); } return Str; } @@ -848,10 +845,10 @@ unsigned AttributeSet::getStackAlignment(unsigned Index) const { return ASN ? ASN->getStackAlignment() : 0; } -std::string AttributeSet::getAsString(unsigned Index, bool TargetIndependent, +std::string AttributeSet::getAsString(unsigned Index, bool InAttrGrp) const { AttributeSetNode *ASN = getAttributes(Index); - return ASN ? ASN->getAsString(TargetIndependent, InAttrGrp) : std::string(""); + return ASN ? ASN->getAsString(InAttrGrp) : std::string(""); } /// \brief The attributes for the specified index are returned. |