summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-db
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-01 23:13:44 +0000
committerOwen Anderson <resistor@mac.com>2009-07-01 23:13:44 +0000
commit2a15443aa800aeb61783809c8a686e5e35b1a4db (patch)
tree9d2e438d1ccb26eee4da98268d6e64a2e6c2bbe2 /llvm/tools/llvm-db
parent83ff184206a418387992109015ca83f220788f0d (diff)
downloadbcm5719-llvm-2a15443aa800aeb61783809c8a686e5e35b1a4db.tar.gz
bcm5719-llvm-2a15443aa800aeb61783809c8a686e5e35b1a4db.zip
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. llvm-svn: 74655
Diffstat (limited to 'llvm/tools/llvm-db')
-rw-r--r--llvm/tools/llvm-db/CLIDebugger.cpp2
-rw-r--r--llvm/tools/llvm-db/CLIDebugger.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/tools/llvm-db/CLIDebugger.cpp b/llvm/tools/llvm-db/CLIDebugger.cpp
index 3caa2e6bd53..31476f7d0b7 100644
--- a/llvm/tools/llvm-db/CLIDebugger.cpp
+++ b/llvm/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/llvm/tools/llvm-db/CLIDebugger.h b/llvm/tools/llvm-db/CLIDebugger.h
index a5c73bd86a0..99045592edf 100644
--- a/llvm/tools/llvm-db/CLIDebugger.h
+++ b/llvm/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.
OpenPOWER on IntegriCloud