diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-04-18 21:45:04 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-04-18 21:45:04 +0000 |
commit | 6a97e89df6304a527dca48a9708b23757953a569 (patch) | |
tree | 699c1fde2156cdab476048962280dcc2e44530a0 /llvm/lib/IR/AsmWriter.cpp | |
parent | c557828805080679ed4a41044272229b8c05f119 (diff) | |
download | bcm5719-llvm-6a97e89df6304a527dca48a9708b23757953a569.tar.gz bcm5719-llvm-6a97e89df6304a527dca48a9708b23757953a569.zip |
Make the TargetIndependent flag have the right boolean value.
llvm-svn: 179798
Diffstat (limited to 'llvm/lib/IR/AsmWriter.cpp')
-rw-r--r-- | llvm/lib/IR/AsmWriter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/IR/AsmWriter.cpp b/llvm/lib/IR/AsmWriter.cpp index 6b0bfd59188..5e9c52080fd 100644 --- a/llvm/lib/IR/AsmWriter.cpp +++ b/llvm/lib/IR/AsmWriter.cpp @@ -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"; } |