diff options
author | Chris Lattner <sabre@nondot.org> | 2002-07-22 02:10:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-07-22 02:10:13 +0000 |
commit | 5ff62e90d0bc321206023897edc1e2691cb0fbb6 (patch) | |
tree | f9dd91f41ef5858a217a9b871d0e3d8fe089da99 /tools/gccld/gccld.cpp | |
parent | 50e3f88d38d93edcec9047322da8ed43aefc9e3d (diff) |
*** empty log message ***
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2985 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/gccld/gccld.cpp')
-rw-r--r-- | tools/gccld/gccld.cpp | 34 |
1 files changed, 23 insertions, 11 deletions
diff --git a/tools/gccld/gccld.cpp b/tools/gccld/gccld.cpp index 919884419d..e5db8849dd 100644 --- a/tools/gccld/gccld.cpp +++ b/tools/gccld/gccld.cpp @@ -33,13 +33,28 @@ #include <sys/stat.h> using std::cerr; -cl::StringList InputFilenames("", "Load <arg> files, linking them together", - cl::OneOrMore); -cl::String OutputFilename("o", "Override output filename", cl::NoFlags,"a.out"); -cl::Flag Verbose ("v", "Print information about actions taken"); -cl::StringList LibPaths ("L", "Specify a library search path", cl::ZeroOrMore); -cl::StringList Libraries ("l", "Specify libraries to link to", cl::ZeroOrMore); -cl::Flag Strip ("s", "Strip symbol info from executable"); +static cl::list<string> +InputFilenames(cl::Positional, cl::desc("<input bytecode files>"), + cl::OneOrMore); + +static cl::opt<string> +OutputFilename("o", cl::desc("Override output filename"), cl::init("a.out"), + cl::value_desc("filename")); + +static cl::opt<bool> +Verbose("v", cl::desc("Print information about actions taken")); + +static cl::list<string> +LibPaths("L", cl::desc("Specify a library search path"), cl::Prefix, + cl::value_desc("directory")); + +static cl::list<string> +Libraries("l", cl::desc("Specify libraries to link to"), cl::Prefix, + cl::value_desc("library prefix")); + +static cl::opt<bool> +Strip("s", cl::desc("Strip symbol info from executable")); + // FileExists - Return true if the specified string is an openable file... static inline bool FileExists(const std::string &FN) { @@ -83,10 +98,7 @@ static inline std::auto_ptr<Module> LoadFile(const std::string &FN) { int main(int argc, char **argv) { - cl::ParseCommandLineOptions(argc, argv, " llvm linker for GCC\n", - cl::EnableSingleLetterArgValue | - cl::DisableSingleLetterArgGrouping); - assert(InputFilenames.size() > 0 && "OneOrMore is not working"); + cl::ParseCommandLineOptions(argc, argv, " llvm linker for GCC\n"); unsigned BaseArg = 0; std::string ErrorMessage; |