diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-01 23:13:44 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-01 23:13:44 +0000 |
commit | 4434ed44c45c87a72b7a0bf2f91211f895022b91 (patch) | |
tree | dc0e25b2f2b2706339e64e4f654d2a442ab97018 /tools/llvm-db | |
parent | 82c32c42724f92b899287b4f34029eb1170c43f9 (diff) | |
download | external_llvm-4434ed44c45c87a72b7a0bf2f91211f895022b91.zip external_llvm-4434ed44c45c87a72b7a0bf2f91211f895022b91.tar.gz external_llvm-4434ed44c45c87a72b7a0bf2f91211f895022b91.tar.bz2 |
Make the use of const with respect to LLVMContext sane. Hopefully this is the last time, for the
moment, that I will need to make far-reaching changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74655 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-db')
-rw-r--r-- | tools/llvm-db/CLIDebugger.cpp | 2 | ||||
-rw-r--r-- | tools/llvm-db/CLIDebugger.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tools/llvm-db/CLIDebugger.cpp b/tools/llvm-db/CLIDebugger.cpp index 3caa2e6..31476f7 100644 --- a/tools/llvm-db/CLIDebugger.cpp +++ b/tools/llvm-db/CLIDebugger.cpp @@ -22,7 +22,7 @@ using namespace llvm; /// CLIDebugger constructor - This initializes the debugger to its default /// state, and initializes the command table. /// -CLIDebugger::CLIDebugger(const LLVMContext& ctxt) +CLIDebugger::CLIDebugger(LLVMContext& ctxt) : Context(ctxt), TheProgramInfo(0), TheRuntimeInfo(0), Prompt("(llvm-db) "), ListSize(10) { // Initialize instance variables diff --git a/tools/llvm-db/CLIDebugger.h b/tools/llvm-db/CLIDebugger.h index a5c73bd..9904559 100644 --- a/tools/llvm-db/CLIDebugger.h +++ b/tools/llvm-db/CLIDebugger.h @@ -29,7 +29,7 @@ namespace llvm { /// CLIDebugger - This class implements the command line interface for the /// LLVM debugger. class CLIDebugger { - const LLVMContext& Context; + LLVMContext& Context; /// Dbg - The low-level LLVM debugger object that we use to do our dirty /// work. @@ -82,7 +82,7 @@ namespace llvm { const SourceLanguage *CurrentLanguage; public: - CLIDebugger(const LLVMContext& ctxt); + CLIDebugger(LLVMContext& ctxt); /// getDebugger - Return the current LLVM debugger implementation being /// used. |