Hold the LLVMContext by reference rather than by pointer.
[oota-llvm.git] / tools / llvm-db / CLIDebugger.h
index b1a31a4d91dcc900c6bd204ddae8451cafa42383..a5c73bd86a0a0c618995eb86d5f558fbecacc4d6 100644 (file)
@@ -29,7 +29,7 @@ namespace llvm {
   /// CLIDebugger - This class implements the command line interface for the
   /// LLVM debugger.
   class CLIDebugger {
-    LLVMContext* Context;
+    const 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(LLVMContext* ctxt);
+    CLIDebugger(const LLVMContext& ctxt);
 
     /// getDebugger - Return the current LLVM debugger implementation being
     /// used.