X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FDebugger%2FDebugger.h;h=ed04ed533adba87517976869bfb0944276c6fcd2;hb=8b477ed579794ba6d76915d56b3f448a7dd20120;hp=394592f3170f82caa0e291aa28a42abaf9efda59;hpb=7ed47a13356daed2a34cd2209a31f92552e3bdd8;p=oota-llvm.git diff --git a/include/llvm/Debugger/Debugger.h b/include/llvm/Debugger/Debugger.h index 394592f3170..ed04ed533ad 100644 --- a/include/llvm/Debugger/Debugger.h +++ b/include/llvm/Debugger/Debugger.h @@ -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(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