diff options
| author | Owen Anderson <resistor@mac.com> | 2009-07-01 21:22:36 +0000 |
|---|---|---|
| committer | Owen Anderson <resistor@mac.com> | 2009-07-01 21:22:36 +0000 |
| commit | 1cf085d558fd73f2599fb68e600365dd20502e2b (patch) | |
| tree | 39bfcf795980a39bd173e8cbc60962da057bbd9d /llvm/tools/llvm-db/CLIDebugger.h | |
| parent | 52337414b78f00aa7ff498e5872fd428996e8fe5 (diff) | |
| download | bcm5719-llvm-1cf085d558fd73f2599fb68e600365dd20502e2b.tar.gz bcm5719-llvm-1cf085d558fd73f2599fb68e600365dd20502e2b.zip | |
Hold the LLVMContext by reference rather than by pointer.
llvm-svn: 74640
Diffstat (limited to 'llvm/tools/llvm-db/CLIDebugger.h')
| -rw-r--r-- | llvm/tools/llvm-db/CLIDebugger.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-db/CLIDebugger.h b/llvm/tools/llvm-db/CLIDebugger.h index b1a31a4d91d..a5c73bd86a0 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 { - 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. |

