[llvm-commits] CVS: llvm/tools/gccld/GenerateCode.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Nov 28 03:45:01 PST 2003
Changes in directory llvm/tools/gccld:
GenerateCode.cpp updated: 1.15 -> 1.16
---
Log message:
The function resolving pass must be run, even if -disable-opt is specified
---
Diffs of the changes: (+6 -6)
Index: llvm/tools/gccld/GenerateCode.cpp
diff -u llvm/tools/gccld/GenerateCode.cpp:1.15 llvm/tools/gccld/GenerateCode.cpp:1.16
--- llvm/tools/gccld/GenerateCode.cpp:1.15 Thu Nov 20 00:26:15 2003
+++ llvm/tools/gccld/GenerateCode.cpp Fri Nov 28 03:44:03 2003
@@ -74,6 +74,12 @@
// Add an appropriate TargetData instance for this module...
addPass(Passes, new TargetData("gccld", 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) {
// Linking modules together can lead to duplicated global constants, only
// keep one copy of each constant...
@@ -84,12 +90,6 @@
// supporting.
if (Strip)
addPass(Passes, 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.
- addPass(Passes, createFunctionResolvingPass());
if (Internalize) {
// Now that composite has been compiled, scan through the module, looking
More information about the llvm-commits
mailing list