diff options
author | Stephen Hines <srhines@google.com> | 2013-03-18 17:36:31 -0700 |
---|---|---|
committer | Stephen Hines <srhines@google.com> | 2013-03-18 17:36:31 -0700 |
commit | 2d4629c5d7dcc6582fa7b85a517744f1a3654eba (patch) | |
tree | 90c0395880593bf195fb818c2af1139cb7e846df /lib/Support/CommandLine.cpp | |
parent | cd4c0bff77a9b5617896982e99dc80f469e26e4f (diff) | |
parent | 242cec5be3b3a715de0535d1a074bb4dff94772f (diff) | |
download | external_llvm-2d4629c5d7dcc6582fa7b85a517744f1a3654eba.zip external_llvm-2d4629c5d7dcc6582fa7b85a517744f1a3654eba.tar.gz external_llvm-2d4629c5d7dcc6582fa7b85a517744f1a3654eba.tar.bz2 |
Merge branch 'upstream' into merge_2013_03_18
Diffstat (limited to 'lib/Support/CommandLine.cpp')
-rw-r--r-- | lib/Support/CommandLine.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/Support/CommandLine.cpp b/lib/Support/CommandLine.cpp index 53fcf06..560d7eb 100644 --- a/lib/Support/CommandLine.cpp +++ b/lib/Support/CommandLine.cpp @@ -1222,14 +1222,10 @@ sortOpts(StringMap<Option*> &OptMap, namespace { class HelpPrinter { - size_t MaxArgLen; - const Option *EmptyArg; const bool ShowHidden; public: - explicit HelpPrinter(bool showHidden) : ShowHidden(showHidden) { - EmptyArg = 0; - } + explicit HelpPrinter(bool showHidden) : ShowHidden(showHidden) {} void operator=(bool Value) { if (Value == false) return; @@ -1266,7 +1262,7 @@ public: outs() << "\n\n"; // Compute the maximum argument length... - MaxArgLen = 0; + size_t MaxArgLen = 0; for (size_t i = 0, e = Opts.size(); i != e; ++i) MaxArgLen = std::max(MaxArgLen, Opts[i].second->getOptionWidth()); |