diff options
author | Pavel Labath <pavel@labath.sk> | 2019-02-07 13:51:38 +0000 |
---|---|---|
committer | Pavel Labath <pavel@labath.sk> | 2019-02-07 13:51:38 +0000 |
commit | 76016ba1ca86b2b25eca168aa6216ebd8e1fc3b9 (patch) | |
tree | dd8db038c427fc909d0cedc9491428c8ecd6796a /lldb/tools/driver | |
parent | 3f35ab8b30001ca8038795320c48cf640e59b36b (diff) | |
download | bcm5719-llvm-76016ba1ca86b2b25eca168aa6216ebd8e1fc3b9.tar.gz bcm5719-llvm-76016ba1ca86b2b25eca168aa6216ebd8e1fc3b9.zip |
Fix some warnings introduced in r353324 (ReproducerInstrumentation patch)
GetIndexForObjectImpl generated a bunch of "conversion casts away
constness warnings". Change the function to use "const void *" (and
static_cast, while I'm at it), to avoid this.
Driver.cpp: unused variable "replay" (this was actually caused by a
subsequent partial revert of this patch). I just finish the revert by
removing the variable completely.
llvm-svn: 353405
Diffstat (limited to 'lldb/tools/driver')
-rw-r--r-- | lldb/tools/driver/Driver.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lldb/tools/driver/Driver.cpp b/lldb/tools/driver/Driver.cpp index 59bfca6f2ff..2aaaa05d751 100644 --- a/lldb/tools/driver/Driver.cpp +++ b/lldb/tools/driver/Driver.cpp @@ -888,9 +888,6 @@ main(int argc, char const *argv[]) << '\n'; } - // Remember if we're in replay mode for later. - bool replay = false; - SBInitializerOptions options; if (auto *arg = input_args.getLastArg(OPT_capture)) { auto arg_value = arg->getValue(); @@ -902,7 +899,6 @@ main(int argc, char const *argv[]) auto arg_value = arg->getValue(); options.SetReplayReproducer(true); options.SetReproducerPath(arg_value); - replay = true; } SBError error = SBDebugger::Initialize(options); |