diff options
| author | Chris Lattner <sabre@nondot.org> | 2001-11-26 19:14:03 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2001-11-26 19:14:03 +0000 | 
| commit | 4219baafb5b7a33c0ca90392e42f141a6f85d9d8 (patch) | |
| tree | 7adfa5ef657276a71e3563f71b02edf9a894746b /llvm/lib/Transforms | |
| parent | 660c2f0e6f1ea05fd0351a0bf3567e1f00fed5b4 (diff) | |
| download | bcm5719-llvm-4219baafb5b7a33c0ca90392e42f141a6f85d9d8.tar.gz bcm5719-llvm-4219baafb5b7a33c0ca90392e42f141a6f85d9d8.zip | |
Support internal linkage
llvm-svn: 1382
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/IPO/MutateStructTypes.cpp | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/llvm/lib/Transforms/IPO/MutateStructTypes.cpp b/llvm/lib/Transforms/IPO/MutateStructTypes.cpp index 3e6d53fb3af..fd1f46d0fa2 100644 --- a/llvm/lib/Transforms/IPO/MutateStructTypes.cpp +++ b/llvm/lib/Transforms/IPO/MutateStructTypes.cpp @@ -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()); | 

