summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Linker/LinkModules.cpp
Commit message (Collapse)AuthorAgeFilesLines
* For PR495:Reid Spencer2005-07-071-1/+1
| | | | | | | | | | | | | | | | | | | | | Get rid of the difference between file paths and directory paths. The Path class now simply stores a path that can refer to either a file or a directory. This required various changes in the implementation and interface of the class with the corresponding impact to its users. Doxygen comments were also updated to reflect these changes. Interface changes are: appendDirectory -> appendComponent appendFile -> appendComponent elideDirectory -> eraseComponent elideFile -> eraseComponent elideSuffix -> eraseSuffix renameFile -> rename setDirectory -> set setFile -> set Changes pass Dejagnu and llvm-test/SingleSource tests. llvm-svn: 22349
* Preserve CC's when linking modulesChris Lattner2005-05-091-0/+1
| | | | llvm-svn: 21799
* Remove trailing whitespaceMisha Brukman2005-04-211-18/+18
| | | | llvm-svn: 21422
* This mega patch converts us from using Function::a{iterator|begin|end} toChris Lattner2005-03-151-6/+6
| | | | | | | | using Function::arg_{iterator|begin|end}. Likewise Module::g* -> Module::global_*. This patch is contributed by Gabor Greif, thanks! llvm-svn: 20597
* Eliminate silly warnings from the linker of the form:Chris Lattner2005-02-191-12/+0
| | | | | | | WARNING: Type conflict between types named 'union.._604.'. Src=' %union.._604.'. Dest=' %union.._604.' llvm-svn: 20252
* Allow globals to be of different const'nesses when we link.Chris Lattner2005-02-121-8/+2
| | | | | | | This finally resolves PR502, PR450, and test/Regression/Linker/2005-02-12-ConstantGlobals{,-2}.ll correctly llvm-svn: 20135
* Make LinkModules a static member functionReid Spencer2004-12-131-1/+2
| | | | llvm-svn: 18859
* Make sure to link the target-triple as well, so it ends up in the .llvm.bc fileChris Lattner2004-12-101-1/+6
| | | | llvm-svn: 18774
* Revert this disgusting hack, John has a much nicer solutionChris Lattner2004-12-081-23/+0
| | | | llvm-svn: 18611
* Add a disgusting hack to work around a libstdc++ issue. This code shouldChris Lattner2004-12-081-0/+23
| | | | | | be removed when PR400 is resolved. llvm-svn: 18610
* Fix linkage of mismatched weak globals. This unbreaks 300.twolfChris Lattner2004-12-041-0/+2
| | | | llvm-svn: 18494
* Significantly rework linker support for global variables, allowing it toChris Lattner2004-12-031-84/+101
| | | | | | | | | correctly link globals whose LLVM types do not match. This fixes several of the F2C SPEC FP benchmarks, which were failing this due to the implementation of common blocks used by f2c. llvm-svn: 18465
* Remove blank comment lines for uniformity.Reid Spencer2004-11-251-25/+2
| | | | | | Make sure lines don't exceed 80 cols. llvm-svn: 18242
* Don't increment a dead iteratorChris Lattner2004-11-161-3/+2
| | | | llvm-svn: 17904
* Simplify the remapper by only needing one map, since the body of the functionsChris Lattner2004-11-161-43/+31
| | | | | | being linked do not need to be remapped any longer. llvm-svn: 17900
* Take advantage of the fact that we are allowed to clobber the input moduleChris Lattner2004-11-161-26/+8
| | | | | | | | | | | | | | by splicing function bodies from the src module to the destination module. This speeds up linking quite a bit, e.g. gccld time on 176.gcc from 26s -> 20s when forming the .rbc file, with a profile build. One of the really strange but cool effects of this patch is that it speeds up the optimizers as well, from 12s -> 10.7s, presumably because of better locality??? In any case, this is just a first step. We can trivially get rid of the LocalMap now and do other simplifications. llvm-svn: 17893
* The second arg may be clobbered by this functionChris Lattner2004-11-161-1/+1
| | | | llvm-svn: 17880
* Linker.h moved to include/llvm from include/llvm/Support.Reid Spencer2004-11-141-2/+1
| | | | llvm-svn: 17807
* This file originated in lib/VMCore/Linker.cpp but now lives inReid Spencer2004-11-121-0/+956
lib/Linker/LinkModules.cpp llvm-svn: 17694
OpenPOWER on IntegriCloud