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/link | |
parent | 50e3f88d38d93edcec9047322da8ed43aefc9e3d (diff) | |
download | external_llvm-5ff62e90d0bc321206023897edc1e2691cb0fbb6.zip external_llvm-5ff62e90d0bc321206023897edc1e2691cb0fbb6.tar.gz external_llvm-5ff62e90d0bc321206023897edc1e2691cb0fbb6.tar.bz2 |
*** empty log message ***
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2985 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/link')
-rw-r--r-- | tools/link/link.cpp | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/tools/link/link.cpp b/tools/link/link.cpp index 28499f1..e2ab02e 100644 --- a/tools/link/link.cpp +++ b/tools/link/link.cpp @@ -22,13 +22,25 @@ using std::cerr; -cl::StringList InputFilenames("", "Load <arg> files, linking them together", - cl::OneOrMore); -cl::String OutputFilename("o", "Override output filename", cl::NoFlags, "-"); -cl::Flag Force ("f", "Overwrite output files", cl::NoFlags, false); -cl::Flag Verbose ("v", "Print information about actions taken"); -cl::Flag DumpAsm ("d", "Print assembly as linked", cl::Hidden, false); -cl::StringList LibPaths ("L", "Specify a library search path", cl::ZeroOrMore); +static cl::list<std::string> +InputFilenames(cl::Positional, cl::OneOrMore, + cl::desc("Load <arg> files, linking them together")); + +static cl::opt<std::string> +OutputFilename("o", cl::desc("Override output filename"), cl::init("-"), + cl::value_desc("filename")); + +static cl::opt<bool> Force("f", cl::desc("Overwrite output files")); + +static cl::opt<bool> +Verbose("v", cl::desc("Print information about actions taken")); + +static cl::opt<bool> +DumpAsm("d", cl::desc("Print assembly as linked"), cl::Hidden); + +static cl::list<std::string> +LibPaths("L", cl::desc("Specify a library search path"), cl::ZeroOrMore, + cl::value_desc("directory"), cl::Prefix); // FileExists - Return true if the specified string is an openable file... static inline bool FileExists(const std::string &FN) { @@ -74,9 +86,7 @@ static inline std::auto_ptr<Module> LoadFile(const std::string &FN) { int main(int argc, char **argv) { - cl::ParseCommandLineOptions(argc, argv, " llvm linker\n", - cl::EnableSingleLetterArgValue | - cl::DisableSingleLetterArgGrouping); + cl::ParseCommandLineOptions(argc, argv, " llvm linker\n"); assert(InputFilenames.size() > 0 && "OneOrMore is not working"); unsigned BaseArg = 0; |