diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2008-03-11 21:40:17 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2008-03-11 21:40:17 +0000 |
commit | db691cbd6dc2459d462d7d64322fedc02f564255 (patch) | |
tree | b262f89c728c6d88e181ba221df39f2fcc15ca07 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | 6616836e71c1080f2b5606bf6e7ff26e10783273 (diff) | |
download | llvm-db691cbd6dc2459d462d7d64322fedc02f564255.zip llvm-db691cbd6dc2459d462d7d64322fedc02f564255.tar.gz llvm-db691cbd6dc2459d462d7d64322fedc02f564255.tar.bz2 |
Honour aliases visibility when reading from/writing to bitcode
llvm-svn: 48248
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index 67b13e3..aaad2268 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -422,6 +422,7 @@ static void WriteModuleInfo(const Module *M, const ValueEnumerator &VE, Vals.push_back(VE.getTypeID(AI->getType())); Vals.push_back(VE.getValueID(AI->getAliasee())); Vals.push_back(getEncodedLinkage(AI)); + Vals.push_back(getEncodedVisibility(AI)); unsigned AbbrevToUse = 0; Stream.EmitRecord(bitc::MODULE_CODE_ALIAS, Vals, AbbrevToUse); Vals.clear(); |