summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-10 20:37:47 +0000
committerChris Lattner <sabre@nondot.org>2002-04-10 20:37:47 +0000
commitc34061fc54b1a30f73798ce32af49ed6e4202bc9 (patch)
tree771bbaa5d71ef6567fdc90116fff505ec391a6f2
parentc4414d4a10c16730938e31033c1113af4c261df3 (diff)
downloadbcm5719-llvm-c34061fc54b1a30f73798ce32af49ed6e4202bc9.tar.gz
bcm5719-llvm-c34061fc54b1a30f73798ce32af49ed6e4202bc9.zip
* The cleangcc pass is broken into two parts, we only want to
FunctionResolvingPass one. * We run it *after* the symbol stripping pass so that -strip can be pipelined with the constant merging pass or something else if desired. llvm-svn: 2226
-rw-r--r--llvm/tools/gccld/gccld.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/llvm/tools/gccld/gccld.cpp b/llvm/tools/gccld/gccld.cpp
index 66d1afb4f30..11595f7d22c 100644
--- a/llvm/tools/gccld/gccld.cpp
+++ b/llvm/tools/gccld/gccld.cpp
@@ -120,7 +120,7 @@ int main(int argc, char **argv) {
}
}
- // In addition to just parsing the input from GCC, we also want to spiff it up
+ // In addition to just linking the input from GCC, we also want to spiff it up
// a little bit. Do this now.
//
PassManager Passes;
@@ -130,13 +130,6 @@ int main(int argc, char **argv) {
//
Passes.add(createConstantMergePass());
- // 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, among other things.
- //
- Passes.add(createCleanupGCCOutputPass());
-
// If the -s command line option was specified, strip the symbols out of the
// resulting program to make it smaller. -s is a GCC option that we are
// supporting.
@@ -144,6 +137,13 @@ int main(int argc, char **argv) {
if (Strip)
Passes.add(createSymbolStrippingPass());
+ // 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.
+ //
+ Passes.add(createFunctionResolvingPass());
+
// Now that composite has been compiled, scan through the module, looking for
// a main function. If main is defined, mark all other functions internal.
//
OpenPOWER on IntegriCloud