Add a pointer to the owning LLVMContext to Module. This requires threading LLVMConte...
[oota-llvm.git] / include / llvm / Debugger / Debugger.h
index 394592f3170f82caa0e291aa28a42abaf9efda59..ed04ed533adba87517976869bfb0944276c6fcd2 100644 (file)
@@ -20,6 +20,7 @@
 namespace llvm {
   class Module;
   class InferiorProcess;
+  class LLVMContext;
 
   /// Debugger class - This class implements the LLVM source-level debugger.
   /// This allows clients to handle the user IO processing without having to
@@ -67,7 +68,9 @@ namespace llvm {
     void setProgramArguments(It I, It E) {
       ProgramArguments.assign(I, E);
     }
-    unsigned getNumProgramArguments() const { return ProgramArguments.size(); }
+    unsigned getNumProgramArguments() const {
+      return static_cast<unsigned>(ProgramArguments.size());
+    }
     const std::string &getProgramArgument(unsigned i) const {
       return ProgramArguments[i];
     }
@@ -93,7 +96,7 @@ namespace llvm {
     /// the PATH for the specified program, loading it when found.  If the
     /// specified program cannot be found, an exception is thrown to indicate
     /// the error.
-    void loadProgram(const std::string &Path);
+    void loadProgram(const std::string &Path, LLVMContext* Context);
 
     /// unloadProgram - If a program is running, kill it, then unload all traces
     /// of the current program.  If no program is loaded, this method silently