X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=tools%2Fllvmc%2Fllvmc.cpp;h=75ea338d5c2304e02f28861ba0a732230f5fabeb;hb=c30088f9612c949b047884deab045e2421690691;hp=40a91017f194d1f24ad6c6ebbf0d27a598b339fb;hpb=65bc4e0bc4a7985e53311e367f5265b955774ab1;p=oota-llvm.git diff --git a/tools/llvmc/llvmc.cpp b/tools/llvmc/llvmc.cpp index 40a91017f19..75ea338d5c2 100644 --- a/tools/llvmc/llvmc.cpp +++ b/tools/llvmc/llvmc.cpp @@ -101,50 +101,50 @@ cl::alias LinkerToolOptsAlias("Wl,", cl::ZeroOrMore, cl::list fOpts("f", cl::ZeroOrMore, cl::Prefix, cl::desc("Pass through -f options to compiler tools"), - cl::value_desc("optimization option")); + cl::value_desc("option")); cl::list MOpts("M", cl::ZeroOrMore, cl::Prefix, cl::desc("Pass through -M options to compiler tools"), - cl::value_desc("dependency option")); + cl::value_desc("option")); cl::list WOpts("W", cl::ZeroOrMore, cl::Prefix, cl::desc("Pass through -W options to compiler tools"), - cl::value_desc("warnings category")); + cl::value_desc("option")); cl::list BOpt("B", cl::ZeroOrMore, cl::Prefix, - cl::desc("Indicate where llvmc sub-tools are installed"), - cl::value_desc("directory path containing bin and lib directories")); + cl::desc("Specify path to find llvmc sub-tools"), + cl::value_desc("dir")); //===------------------------------------------------------------------------=== //=== INPUT OPTIONS //===------------------------------------------------------------------------=== cl::list LibPaths("L", cl::Prefix, - cl::desc("Specify a library search path"), cl::value_desc("directory")); + cl::desc("Specify a library search path"), cl::value_desc("dir")); cl::list Libraries("l", cl::Prefix, - cl::desc("Specify libraries to link to"), cl::value_desc("library prefix")); + cl::desc("Specify base name of libraries to link to"), cl::value_desc("lib")); cl::list Includes("I", cl::Prefix, cl::desc("Specify location to search for included source"), - cl::value_desc("include directory")); + cl::value_desc("dir")); cl::list Defines("D", cl::Prefix, - cl::desc("Specify a symbol to define for source configuration"), - cl::value_desc("symbol definition")); + cl::desc("Specify a pre-processor symbol to define"), + cl::value_desc("symbol")); //===------------------------------------------------------------------------=== //=== OUTPUT OPTIONS //===------------------------------------------------------------------------=== cl::opt OutputFilename("o", - cl::desc("Override output filename"), cl::value_desc("filename")); + cl::desc("Override output filename"), cl::value_desc("file")); cl::opt OutputMachine("m", cl::Prefix, cl::desc("Specify a target machine"), cl::value_desc("machine")); cl::opt Native("native", cl::init(false), - cl::desc("Generative native object and executables instead of bytecode")); + cl::desc("Generative native code instead of bytecode")); cl::opt DebugOutput("g", cl::init(false), cl::desc("Generate objects that include debug symbols")); @@ -152,8 +152,8 @@ cl::opt DebugOutput("g", cl::init(false), cl::opt StripOutput("strip", cl::init(false), cl::desc("Strip all symbols from linked output file")); -cl::opt PrintFileName("print-file-name", cl::Optional, - cl::value_desc("filename"), +cl::opt PrintFileName("print-fname", cl::Optional, + cl::value_desc("file"), cl::desc("Print the full path for the option's value")); //===------------------------------------------------------------------------=== @@ -189,8 +189,8 @@ cl::opt ShowStats("stats", cl::Optional, cl::init(false), //===------------------------------------------------------------------------=== static cl::opt ConfigDir("config-dir", cl::Optional, - cl::desc("Specify a configuration directory to override defaults"), - cl::value_desc("directory")); + cl::desc("Specify configuration directory to override defaults"), + cl::value_desc("dir")); static cl::opt EmitRawCode("emit-raw-code", cl::Hidden, cl::Optional, cl::desc("Emit raw, unoptimized code")); @@ -199,7 +199,7 @@ static cl::opt PipeCommands("pipe", cl::Optional, cl::desc("Invoke sub-commands by linking input/output with pipes")); static cl::opt KeepTemps("keep-temps", cl::Optional, - cl::desc("Don't delete the temporary files created during compilation")); + cl::desc("Don't delete temporary files created by llvmc")); //===------------------------------------------------------------------------=== //=== POSITIONAL OPTIONS @@ -241,7 +241,7 @@ const std::string GetFileType(const std::string& fname, unsigned pos ) { void handleTerminatingOptions(CompilerDriver* CD) { if (!PrintFileName.empty()) { sys::Path path = CD->GetPathForLinkageItem(PrintFileName,false); - std::string p = path.get(); + std::string p = path.toString(); if (p.empty()) std::cout << "Can't locate '" << PrintFileName << "'.\n"; else @@ -368,4 +368,5 @@ int main(int argc, char **argv) { } catch (...) { std::cerr << argv[0] << ": Unexpected unknown exception occurred.\n"; } + return 1; }