[llvm-commits] [llvm] r48248 - in /llvm/trunk/lib/Bitcode: Reader/BitcodeReader.cpp Writer/BitcodeWriter.cpp
Chris Lattner
clattner at apple.com
Tue Mar 11 17:30:26 PDT 2008
> URL: http://llvm.org/viewvc/llvm-project?rev=48248&view=rev
> Log:
> Honour aliases visibility when reading from/writing to bitcode
Hey Anton,
> - // ALIAS: [alias type, aliasee val#, linkage]
> + // ALIAS: [alias type, aliasee val#, linkage, visibility]
> case bitc::MODULE_CODE_ALIAS: {
> if (Record.size() < 3)
> return Error("Invalid MODULE_ALIAS record");
> @@ -1085,6 +1085,7 @@
>
> GlobalAlias *NewGA = new GlobalAlias(Ty,
> GetDecodedLinkage(Record[2]),
> "", 0, TheModule);
> + NewGA->setVisibility(GetDecodedVisibility(Record[3]));
For compatibility with old bc files, this should handle the case when
Record.size() == 3 gracefully (set default visibility?)
-Chris
More information about the llvm-commits
mailing list