aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Attributes.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2013-04-25 20:34:16 +0000
committerChris Lattner <sabre@nondot.org>2013-04-25 20:34:16 +0000
commit6b2702a6cc39bcca3514f1d39b9c1b81b57bd322 (patch)
treea48ac8df3ad3eaa2d4e8e8e035a69f0c3b720060 /llvm/lib/IR/Attributes.cpp
parent8b7ab4ba2ba90341daf95adc745a54189f805c3b (diff)
downloadllvm-6b2702a6cc39bcca3514f1d39b9c1b81b57bd322.zip
llvm-6b2702a6cc39bcca3514f1d39b9c1b81b57bd322.tar.gz
llvm-6b2702a6cc39bcca3514f1d39b9c1b81b57bd322.tar.bz2
revert r179735, it has no testcases, and doesn't really make sense.
llvm-svn: 180574
Diffstat (limited to 'llvm/lib/IR/Attributes.cpp')
-rw-r--r--llvm/lib/IR/Attributes.cpp16
1 files changed, 6 insertions, 10 deletions
diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp
index 80968db..8347844 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,11 +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.