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

Support internal linkage

llvm-svn: 1382
This commit is contained in:
Chris Lattner 2001-11-26 19:14:03 +00:00
parent 5753d430a6
commit c56685dca6

View File

@ -250,7 +250,8 @@ bool MutateStructTypes::doPassInitialization(Module *M) {
cast<MethodType>(ConvertType(Meth->getMethodType()));
// Create a new method to put stuff into...
Method *NewMeth = new Method(NewMTy, Meth->getName());
Method *NewMeth = new Method(NewMTy, Meth->hasInternalLinkage(),
Meth->getName());
if (Meth->hasName())
Meth->setName("OLD."+Meth->getName());