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:
parent
5753d430a6
commit
c56685dca6
@ -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());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user