summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-ld/Optimize.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-02-05 20:47:22 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-02-05 20:47:22 +0000
commit3aaaa0b2bd3825580647b7e0ee5045a8e32e0413 (patch)
tree2ca99bb6046e1441bf5af80fc1dff176ddc79a8c /llvm/tools/llvm-ld/Optimize.cpp
parente84cf921412069284266f02e8aa3fa18ca315e25 (diff)
downloadbcm5719-llvm-3aaaa0b2bd3825580647b7e0ee5045a8e32e0413.tar.gz
bcm5719-llvm-3aaaa0b2bd3825580647b7e0ee5045a8e32e0413.zip
For PR411:
This patch replaces the SymbolTable class with ValueSymbolTable which does not support types planes. This means that all symbol names in LLVM must now be unique. The patch addresses the necessary changes to deal with this and removes code no longer needed as a result. This completes the bulk of the changes for this PR. Some cleanup patches will follow. llvm-svn: 33918
Diffstat (limited to 'llvm/tools/llvm-ld/Optimize.cpp')
-rw-r--r--llvm/tools/llvm-ld/Optimize.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/tools/llvm-ld/Optimize.cpp b/llvm/tools/llvm-ld/Optimize.cpp
index c0edd43efcf..0f77027ef62 100644
--- a/llvm/tools/llvm-ld/Optimize.cpp
+++ b/llvm/tools/llvm-ld/Optimize.cpp
@@ -108,12 +108,6 @@ void Optimize(Module* M) {
// Add an appropriate TargetData instance for this module...
addPass(Passes, new TargetData(M));
- // Often if the programmer does not specify proper prototypes for the
- // functions they are calling, they end up calling a vararg version of the
- // function that does not get a body filled in (the real function has typed
- // arguments). This pass merges the two functions.
- addPass(Passes, createFunctionResolvingPass());
-
if (!DisableOptimizations) {
// Now that composite has been compiled, scan through the module, looking
// for a main function. If main is defined, mark all other functions
OpenPOWER on IntegriCloud