diff options
author | Eugene Leviant <eleviant@accesssoftek.com> | 2019-07-05 15:25:05 +0000 |
---|---|---|
committer | Eugene Leviant <eleviant@accesssoftek.com> | 2019-07-05 15:25:05 +0000 |
commit | 3aef35288b5387d3b1e8c1627df5c031b9c151c7 (patch) | |
tree | a234bcaa1bd15f5170446186728e3fdd89a69159 /llvm/lib/IR/AsmWriter.cpp | |
parent | 47afdaa4872e8617734e50bcc99bab149bfb08f8 (diff) | |
download | bcm5719-llvm-3aef35288b5387d3b1e8c1627df5c031b9c151c7.tar.gz bcm5719-llvm-3aef35288b5387d3b1e8c1627df5c031b9c151c7.zip |
[ThinLTO] Attempt to recommit r365188 after alignment fix
llvm-svn: 365215
Diffstat (limited to 'llvm/lib/IR/AsmWriter.cpp')
-rw-r--r-- | llvm/lib/IR/AsmWriter.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/IR/AsmWriter.cpp b/llvm/lib/IR/AsmWriter.cpp index 51b1a0339ee..eb5760daecb 100644 --- a/llvm/lib/IR/AsmWriter.cpp +++ b/llvm/lib/IR/AsmWriter.cpp @@ -2891,7 +2891,8 @@ void AssemblyWriter::printAliasSummary(const AliasSummary *AS) { } void AssemblyWriter::printGlobalVarSummary(const GlobalVarSummary *GS) { - Out << ", varFlags: (readonly: " << GS->VarFlags.ReadOnly << ")"; + Out << ", varFlags: (readonly: " << GS->VarFlags.MaybeReadOnly << ", " + << "writeonly: " << GS->VarFlags.MaybeWriteOnly << ")"; auto VTableFuncs = GS->vTableFuncs(); if (!VTableFuncs.empty()) { @@ -3101,6 +3102,8 @@ void AssemblyWriter::printSummary(const GlobalValueSummary &Summary) { Out << FS; if (Ref.isReadOnly()) Out << "readonly "; + else if (Ref.isWriteOnly()) + Out << "writeonly "; Out << "^" << Machine.getGUIDSlot(Ref.getGUID()); } Out << ")"; |