Hold the LLVMContext by reference rather than by pointer.
[oota-llvm.git] / tools / llvm-db / CLIDebugger.cpp
index c7aedd1006e00f4b1bb286a0819505fcb4de19ba..3caa2e6bd53e58770e288c0d132fcb8f061770eb 100644 (file)
@@ -22,7 +22,7 @@ using namespace llvm;
 /// CLIDebugger constructor - This initializes the debugger to its default
 /// state, and initializes the command table.
 ///
-CLIDebugger::CLIDebugger(LLVMContext* ctxt)
+CLIDebugger::CLIDebugger(const LLVMContext& ctxt)
   : Context(ctxt), TheProgramInfo(0), TheRuntimeInfo(0),
     Prompt("(llvm-db) "), ListSize(10) {
   // Initialize instance variables