diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2003-11-20 06:26:15 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2003-11-20 06:26:15 +0000 |
commit | 438e364692130e10e8c4946a656c01883554c47c (patch) | |
tree | d9022b37c57654bc0418bb8a9fe0e6e9e3c64477 /tools/gccld | |
parent | 983996911081dc1f8aca11c8fcb168a7afaf85bd (diff) | |
download | external_llvm-438e364692130e10e8c4946a656c01883554c47c.zip external_llvm-438e364692130e10e8c4946a656c01883554c47c.tar.gz external_llvm-438e364692130e10e8c4946a656c01883554c47c.tar.bz2 |
For consistency, removed space between function name and left paren in function
call, i.e. [ addPass (...) ] => [ addPass(...) ]
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10105 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/gccld')
-rw-r--r-- | tools/gccld/GenerateCode.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/tools/gccld/GenerateCode.cpp b/tools/gccld/GenerateCode.cpp index 22db5af..2de81bc 100644 --- a/tools/gccld/GenerateCode.cpp +++ b/tools/gccld/GenerateCode.cpp @@ -72,61 +72,61 @@ GenerateBytecode (Module *M, bool Strip, bool Internalize, std::ostream *Out) { if (Verify) Passes.add(createVerifierPass()); // Add an appropriate TargetData instance for this module... - addPass (Passes, new TargetData("gccld", M)); + addPass(Passes, new TargetData("gccld", M)); if (!DisableOptimizations) { // Linking modules together can lead to duplicated global constants, only // keep one copy of each constant... - addPass (Passes, createConstantMergePass()); + addPass(Passes, createConstantMergePass()); // 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. if (Strip) - addPass (Passes, createSymbolStrippingPass()); + 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()); + 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()); + addPass(Passes, createInternalizePass()); } // Propagate constants at call sites into the functions they call. - addPass (Passes, createIPConstantPropagationPass()); + addPass(Passes, createIPConstantPropagationPass()); // Remove unused arguments from functions... - addPass (Passes, createDeadArgEliminationPass()); + addPass(Passes, createDeadArgEliminationPass()); if (!DisableInline) - addPass (Passes, createFunctionInliningPass()); // Inline small functions + addPass(Passes, createFunctionInliningPass()); // Inline small functions // Run a few AA driven optimizations here and now, to cleanup the code. // Eventually we should put an IP AA in place here. - addPass (Passes, createLICMPass()); // Hoist loop invariants - addPass (Passes, createLoadValueNumberingPass()); // GVN for load instrs - addPass (Passes, createGCSEPass()); // Remove common subexprs + addPass(Passes, createLICMPass()); // Hoist loop invariants + addPass(Passes, createLoadValueNumberingPass()); // GVN for load instrs + addPass(Passes, createGCSEPass()); // Remove common subexprs // The FuncResolve pass may leave cruft around if functions were prototyped // differently than they were defined. Remove this cruft. - addPass (Passes, createInstructionCombiningPass()); + addPass(Passes, createInstructionCombiningPass()); // Delete basic blocks, which optimization passes may have killed... - addPass (Passes, createCFGSimplificationPass()); + addPass(Passes, createCFGSimplificationPass()); // Now that we have optimized the program, discard unreachable functions... - addPass (Passes, createGlobalDCEPass()); + addPass(Passes, createGlobalDCEPass()); } // Add the pass that writes bytecode to the output file... - addPass (Passes, new WriteBytecodePass(Out)); + addPass(Passes, new WriteBytecodePass(Out)); // Run our queue of passes all at once now, efficiently. Passes.run(*M); |