diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2015-01-29 11:06:59 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2015-01-29 11:06:59 +0000 |
commit | 8182818a53ff6b319621f0c0dc2ac2df4a506d25 (patch) | |
tree | 7e9cb0436710c532cf594a50fb1b2053dbabcc1f /llvm/lib/Support/CommandLine.cpp | |
parent | 47b35aeaa14567eb1b5ed82a73f575f18afe3fa5 (diff) | |
download | bcm5719-llvm-8182818a53ff6b319621f0c0dc2ac2df4a506d25.tar.gz bcm5719-llvm-8182818a53ff6b319621f0c0dc2ac2df4a506d25.zip |
CommandLineParser: Avoid non-static member nitializer(s).
llvm-svn: 227428
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
-rw-r--r-- | llvm/lib/Support/CommandLine.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp index 2ca9caa1d91..5cda94bae27 100644 --- a/llvm/lib/Support/CommandLine.cpp +++ b/llvm/lib/Support/CommandLine.cpp @@ -88,7 +88,7 @@ public: // Globals for name and overview of program. Program name is not a string to // avoid static ctor/dtor issues. std::string ProgramName; - const char *ProgramOverview = nullptr; + const char *ProgramOverview; // This collects additional help to be printed. std::vector<const char *> MoreHelp; @@ -97,7 +97,9 @@ public: SmallVector<Option *, 4> SinkOpts; StringMap<Option *> OptionsMap; - Option *ConsumeAfterOpt = nullptr; // The ConsumeAfter option if it exists. + Option *ConsumeAfterOpt; // The ConsumeAfter option if it exists. + + CommandLineParser() : ProgramOverview(nullptr), ConsumeAfterOpt(nullptr) {} void ParseCommandLineOptions(int argc, const char *const *argv, const char *Overview); |