Fix comments.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146109 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chad Rosier 2011-12-08 00:11:31 +00:00
parent d40e103ea5
commit 14d622dce6
2 changed files with 2 additions and 1 deletions

View File

@ -64,7 +64,7 @@ namespace bitc {
// section, visibility, gc, unnamed_addr] // section, visibility, gc, unnamed_addr]
MODULE_CODE_FUNCTION = 8, MODULE_CODE_FUNCTION = 8,
// ALIAS: [alias type, aliasee val#, linkage] // ALIAS: [alias type, aliasee val#, linkage, visibility]
MODULE_CODE_ALIAS = 9, MODULE_CODE_ALIAS = 9,
/// MODULE_CODE_PURGEVALS: [numvals] /// MODULE_CODE_PURGEVALS: [numvals]

View File

@ -525,6 +525,7 @@ static void WriteModuleInfo(const Module *M, const ValueEnumerator &VE,
// Emit the alias information. // Emit the alias information.
for (Module::const_alias_iterator AI = M->alias_begin(), E = M->alias_end(); for (Module::const_alias_iterator AI = M->alias_begin(), E = M->alias_end();
AI != E; ++AI) { AI != E; ++AI) {
// ALIAS: [alias type, aliasee val#, linkage, visibility]
Vals.push_back(VE.getTypeID(AI->getType())); Vals.push_back(VE.getTypeID(AI->getType()));
Vals.push_back(VE.getValueID(AI->getAliasee())); Vals.push_back(VE.getValueID(AI->getAliasee()));
Vals.push_back(getEncodedLinkage(AI)); Vals.push_back(getEncodedLinkage(AI));