mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
Support internal linkage
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1382 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d4c1550cac
commit
c54692b969
@ -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