diff options
author | Chris Lattner <sabre@nondot.org> | 2002-07-25 06:17:51 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-07-25 06:17:51 +0000 |
commit | 0c0edf8afc35a42b15a24ebb5fa5f3fc674290ae (patch) | |
tree | ed8c32c0631b43d63d36b406b9c02baffd63f2b9 /lib/Support | |
parent | bcafccebdbe59cdb888d5a6dc844dea998e02f5b (diff) | |
download | external_llvm-0c0edf8afc35a42b15a24ebb5fa5f3fc674290ae.zip external_llvm-0c0edf8afc35a42b15a24ebb5fa5f3fc674290ae.tar.gz external_llvm-0c0edf8afc35a42b15a24ebb5fa5f3fc674290ae.tar.bz2 |
*** empty log message ***
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3075 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r-- | lib/Support/CommandLine.cpp | 4 | ||||
-rw-r--r-- | lib/Support/PluginLoader.cpp | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/lib/Support/CommandLine.cpp b/lib/Support/CommandLine.cpp index 433cefd..e125ebe 100644 --- a/lib/Support/CommandLine.cpp +++ b/lib/Support/CommandLine.cpp @@ -138,7 +138,7 @@ static bool EatsUnboundedNumberOfValues(const Option *O) { } void cl::ParseCommandLineOptions(int &argc, char **argv, - const char *Overview = 0) { + const char *Overview) { assert((!getOpts().empty() || !getPositionalOpts().empty()) && "No options specified, or ParseCommandLineOptions called more" " than once!"); @@ -396,7 +396,7 @@ void cl::ParseCommandLineOptions(int &argc, char **argv, // Option Base class implementation // -bool Option::error(string Message, const char *ArgName = 0) { +bool Option::error(string Message, const char *ArgName) { if (ArgName == 0) ArgName = ArgStr; if (ArgName[0] == 0) cerr << HelpStr; // Be nice for positional arguments diff --git a/lib/Support/PluginLoader.cpp b/lib/Support/PluginLoader.cpp index c2e4e89..dce923a 100644 --- a/lib/Support/PluginLoader.cpp +++ b/lib/Support/PluginLoader.cpp @@ -13,6 +13,7 @@ #include "Support/CommandLine.h" #include <dlfcn.h> #include <link.h> +#include <iostream> namespace { struct PluginLoader { @@ -25,6 +26,6 @@ namespace { } // This causes operator= above to be invoked for every -load option. -static cl::opt<PluginLoader, false, cl::parser<string> > +static cl::opt<PluginLoader, false, cl::parser<std::string> > LoadOpt("load", cl::ZeroOrMore, cl::value_desc("plugin.so"), cl::desc("Load the specified plugin")); |