diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2003-09-30 17:42:57 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2003-09-30 17:42:57 +0000 |
commit | 1c53405b68829dac509ce2a245fe7dd100ceb808 (patch) | |
tree | 9054ca4d20a251f7dc0bc00ef9b1d84e8e3e92e4 /tools/gccld/GenerateCode.cpp | |
parent | b6b28431d1ac47d7a2d5f7a0c1772385105531c1 (diff) |
Doxygen-ified function comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8771 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/gccld/GenerateCode.cpp')
-rw-r--r-- | tools/gccld/GenerateCode.cpp | 104 |
1 files changed, 43 insertions, 61 deletions
diff --git a/tools/gccld/GenerateCode.cpp b/tools/gccld/GenerateCode.cpp index 0b8ab9aa36..c7d23eb254 100644 --- a/tools/gccld/GenerateCode.cpp +++ b/tools/gccld/GenerateCode.cpp @@ -16,25 +16,19 @@ #include "llvm/Transforms/Utils/Linker.h" #include "Support/SystemUtils.h" -// -// Function: GenerateBytecode () -// -// Description: -// This function generates a bytecode file from the specified module. -// -// Inputs: -// M - The module for which bytecode should be generated. -// Strip - Flags whether symbols should be stripped from the output. -// Internalize - Flags whether all symbols should be marked internal. -// Out - Pointer to file stream to which to write the output. -// -// Outputs: -// None. -// -// Return value: -// 0 - No error. -// 1 - Error. -// +/// GenerateBytecode - generates a bytecode file from the specified module. +/// +/// Inputs: +/// M - The module for which bytecode should be generated. +/// Strip - Flags whether symbols should be stripped from the output. +/// Internalize - Flags whether all symbols should be marked internal. +/// Out - Pointer to file stream to which to write the output. +/// +/// Outputs: +/// None. +/// +/// Returns non-zero value on error. +/// int GenerateBytecode (Module *M, bool Strip, bool Internalize, std::ostream *Out) { // In addition to just linking the input from GCC, we also want to spiff it up @@ -89,26 +83,20 @@ GenerateBytecode (Module *M, bool Strip, bool Internalize, std::ostream *Out) { return 0; } -// -// Function: GenerateAssembly () -// -// Description: -// This function generates a native assembly language source file from the -// specified bytecode file. -// -// Inputs: -// InputFilename - The name of the output bytecode file. -// OutputFilename - The name of the file to generate. -// llc - The pathname to use for LLC. -// envp - The environment to use when running LLC. -// -// Outputs: -// None. -// -// Return value: -// 0 - Success -// 1 - Failure -// +/// GenerateAssembly - generates a native assembly language source file from the +/// specified bytecode file. +/// +/// Inputs: +/// InputFilename - The name of the output bytecode file. +/// OutputFilename - The name of the file to generate. +/// llc - The pathname to use for LLC. +/// envp - The environment to use when running LLC. +/// +/// Outputs: +/// None. +/// +/// Return non-zero value on error. +/// int GenerateAssembly(const std::string &OutputFilename, const std::string &InputFilename, @@ -128,28 +116,22 @@ GenerateAssembly(const std::string &OutputFilename, return ExecWait(cmd, envp); } -// -// Function: GenerateNative () -// -// Description: -// This function generates a native assembly language source file from the -// specified assembly source file. -// -// Inputs: -// InputFilename - The name of the output bytecode file. -// OutputFilename - The name of the file to generate. -// Libraries - The list of libraries with which to link. -// LibPaths - The list of directories in which to find libraries. -// gcc - The pathname to use for GGC. -// envp - A copy of the process's current environment. -// -// Outputs: -// None. -// -// Return value: -// 0 - Success -// 1 - Failure -// +/// GenerateNative - generates a native assembly language source file from the +/// specified assembly source file. +/// +/// Inputs: +/// InputFilename - The name of the output bytecode file. +/// OutputFilename - The name of the file to generate. +/// Libraries - The list of libraries with which to link. +/// LibPaths - The list of directories in which to find libraries. +/// gcc - The pathname to use for GGC. +/// envp - A copy of the process's current environment. +/// +/// Outputs: +/// None. +/// +/// Returns non-zero value on error. +/// int GenerateNative(const std::string &OutputFilename, const std::string &InputFilename, |