summaryrefslogtreecommitdiffstats
path: root/llvm/tools/gccld/gccld.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-06-18 16:29:02 +0000
committerChris Lattner <sabre@nondot.org>2003-06-18 16:29:02 +0000
commit472beba236d7b453d201926aacd5fd522c646dfe (patch)
treef90a56de4970744d12cb385b75f165e7765eb326 /llvm/tools/gccld/gccld.cpp
parent5d3c145d4ed614db56de4c1cb03d16b3202e4eea (diff)
downloadbcm5719-llvm-472beba236d7b453d201926aacd5fd522c646dfe.tar.gz
bcm5719-llvm-472beba236d7b453d201926aacd5fd522c646dfe.zip
Add new DAE pass to gccld. It does not add cause any regressions in the test-suite
llvm-svn: 6770
Diffstat (limited to 'llvm/tools/gccld/gccld.cpp')
-rw-r--r--llvm/tools/gccld/gccld.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/tools/gccld/gccld.cpp b/llvm/tools/gccld/gccld.cpp
index 2fae2020308..f04817fdf3d 100644
--- a/llvm/tools/gccld/gccld.cpp
+++ b/llvm/tools/gccld/gccld.cpp
@@ -396,6 +396,10 @@ int main(int argc, char **argv) {
Passes.add(createInternalizePass());
}
+ // Remove unused arguments from functions...
+ //
+ Passes.add(createDeadArgEliminationPass());
+
// Now that we have optimized the program, discard unreachable functions...
//
Passes.add(createGlobalDCEPass());
OpenPOWER on IntegriCloud