1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

regenerate

llvm-svn: 41816
This commit is contained in:
Chris Lattner 2007-09-10 23:24:14 +00:00
parent c94e3e9361
commit 9f93ab3579
2 changed files with 308 additions and 266 deletions

File diff suppressed because it is too large Load Diff

View File

@ -2129,6 +2129,27 @@ Definition
CurModule.CurrentModule);
GA->setVisibility($2);
InsertValue(GA, CurModule.Values);
// If there was a forward reference of this alias, resolve it now.
ValID ID;
if (!Name.empty())
ID = ValID::createGlobalName(Name);
else
ID = ValID::createGlobalID(CurModule.Values.size()-1);
if (GlobalValue *FWGV =
CurModule.GetForwardRefForGlobal(GA->getType(), ID)) {
// Replace uses of the fwdref with the actual alias.
FWGV->replaceAllUsesWith(GA);
if (GlobalVariable *GV = dyn_cast<GlobalVariable>(FWGV))
GV->eraseFromParent();
else
cast<Function>(FWGV)->eraseFromParent();
}
ID.destroy();
CHECK_FOR_ERROR
}
| TARGET TargetDefinition {