// arguments). This pass merges the two functions.
addPass(Passes, createFunctionResolvingPass());
- if (Internalize) {
- // Now that composite has been compiled, scan through the module, looking
- // for a main function. If main is defined, mark all other functions
- // internal.
- addPass(Passes, createInternalizePass());
- }
-
if (!DisableOptimizations) {
+ if (Internalize) {
+ // Now that composite has been compiled, scan through the module, looking
+ // for a main function. If main is defined, mark all other functions
+ // internal.
+ addPass(Passes, createInternalizePass());
+ }
+
// Now that we internalized some globals, see if we can hack on them!
addPass(Passes, createGlobalOptimizerPass());
std::string ModuleID("gccld-output");
std::auto_ptr<Module> Composite(new Module(ModuleID));
- // We always look first in the current directory when searching for libraries.
+ // We always look first in the current directory when searching for
+ // libraries.
LibPaths.insert(LibPaths.begin(), ".");
// If the user specified an extra search path in their environment, respect