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 | a88a016f2d99488f2eff0eb6be256f2f43602afa (patch) | |
tree | 9e2b8fa7b7532884c9f6d667386a4fac071d28ff /lib/IR/AsmWriter.cpp | |
parent | fcba22decb8f44ff9aa8807f275ca3a32589fba0 (diff) | |
download | llvm-a88a016f2d99488f2eff0eb6be256f2f43602afa.tar.gz llvm-a88a016f2d99488f2eff0eb6be256f2f43602afa.tar.bz2 llvm-a88a016f2d99488f2eff0eb6be256f2f43602afa.tar.xz |
Make the TargetIndependent flag have the right boolean value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179798 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR/AsmWriter.cpp')
-rw-r--r-- | lib/IR/AsmWriter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/IR/AsmWriter.cpp b/lib/IR/AsmWriter.cpp index 6b0bfd5918..5e9c52080f 100644 --- a/lib/IR/AsmWriter.cpp +++ b/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"; } |