1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

Make the TargetIndependent flag have the right boolean value.

llvm-svn: 179798
This commit is contained in:
Bill Wendling 2013-04-18 21:45:04 +00:00
parent aeff9e581b
commit 4f17a0e079
3 changed files with 5 additions and 5 deletions

View File

@ -306,7 +306,7 @@ public:
unsigned getStackAlignment(unsigned Index) const;
/// \brief Return the attributes at the index as a string.
std::string getAsString(unsigned Index, bool TargetIndependent = false,
std::string getAsString(unsigned Index, bool TargetIndependent = true,
bool InAttrGrp = false) const;
typedef ArrayRef<Attribute>::iterator iterator;

View File

@ -1615,7 +1615,7 @@ void AssemblyWriter::printFunction(const Function *F) {
const AttributeSet &Attrs = F->getAttributes();
if (!OldStyleAttrSyntax && Attrs.hasAttributes(AttributeSet::FunctionIndex)) {
AttributeSet AS = Attrs.getFnAttributes();
std::string AttrStr = AS.getAsString(AttributeSet::FunctionIndex, true);
std::string AttrStr = AS.getAsString(AttributeSet::FunctionIndex, false);
if (!AttrStr.empty())
Out << "; Function Attrs: " << AttrStr << '\n';
}
@ -1682,7 +1682,7 @@ void AssemblyWriter::printFunction(const Function *F) {
Out << " #" << Machine.getAttributeGroupSlot(Attrs.getFnAttributes());
} else {
AttributeSet AS = Attrs.getFnAttributes();
std::string AttrStr = AS.getAsString(AttributeSet::FunctionIndex, true);
std::string AttrStr = AS.getAsString(AttributeSet::FunctionIndex, false);
if (!AttrStr.empty())
Out << ' ' << AttrStr;
}
@ -2156,7 +2156,7 @@ void AssemblyWriter::writeAllAttributeGroups() {
for (std::vector<std::pair<AttributeSet, unsigned> >::iterator
I = asVec.begin(), E = asVec.end(); I != E; ++I)
Out << "attributes #" << I->second << " = { "
<< I->first.getAsString(AttributeSet::FunctionIndex, false, true)
<< I->first.getAsString(AttributeSet::FunctionIndex, true, true)
<< " }\n";
}

View File

@ -485,7 +485,7 @@ std::string AttributeSetNode::getAsString(bool TargetIndependent,
std::string Str = "";
for (SmallVectorImpl<Attribute>::const_iterator I = AttrList.begin(),
E = AttrList.end(); I != E; ) {
if (!TargetIndependent || !I->isStringAttribute()) {
if (TargetIndependent || !I->isStringAttribute()) {
Str += I->getAsString(InAttrGrp);
if (++I != E) Str += " ";
} else {