diff options
Diffstat (limited to 'tools/driver/Driver.h')
-rw-r--r-- | tools/driver/Driver.h | 34 |
1 files changed, 8 insertions, 26 deletions
diff --git a/tools/driver/Driver.h b/tools/driver/Driver.h index 3f2b0759255a..f442458ae401 100644 --- a/tools/driver/Driver.h +++ b/tools/driver/Driver.h @@ -1,9 +1,8 @@ //===-- Driver.h ------------------------------------------------*- C++ -*-===// // -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// @@ -27,11 +26,11 @@ class Driver : public lldb::SBBroadcaster { public: - typedef enum CommandPlacement { + enum CommandPlacement { eCommandPlacementBeforeFile, eCommandPlacementAfterFile, eCommandPlacementAfterCrash, - } CommandPlacement; + }; Driver(); @@ -39,48 +38,31 @@ public: /// Runs the main loop. /// - /// @return The exit code that the process should return. + /// \return The exit code that the process should return. int MainLoop(); lldb::SBError ProcessArgs(const llvm::opt::InputArgList &args, bool &exiting); - const char *GetFilename() const; - - const char *GetCrashLogFilename() const; - - const char *GetArchName() const; - - lldb::ScriptLanguage GetScriptLanguage() const; - void WriteCommandsForSourcing(CommandPlacement placement, lldb::SBStream &strm); - bool GetDebugMode() const; - struct OptionData { - void AddLocalLLDBInit(); void AddInitialCommand(std::string command, CommandPlacement placement, bool is_file, lldb::SBError &error); struct InitialCmdEntry { InitialCmdEntry(std::string contents, bool in_is_file, - bool is_cwd_lldbinit_file_read, bool in_quiet = false) + bool in_quiet = false) : contents(std::move(contents)), is_file(in_is_file), - source_quietly(in_quiet), - is_cwd_lldbinit_file_read(is_cwd_lldbinit_file_read) {} + source_quietly(in_quiet) {} std::string contents; bool is_file; bool source_quietly; - - /// Remember if this is reading the local lldbinit file so we can skip it - /// if not permitted. - bool is_cwd_lldbinit_file_read; }; std::vector<std::string> m_args; - lldb::ScriptLanguage m_script_lang = lldb::eScriptLanguageDefault; lldb::LanguageType m_repl_lang = lldb::eLanguageTypeUnknown; lldb::pid_t m_process_pid = LLDB_INVALID_PROCESS_ID; |