Added a ClangUtilityFunction class that allows the
debugger to insert self-contained functions for use by
expressions (mainly for error-checking).

In order to support detecting whether a crash occurred
in one of these helpers -- currently our preferred way
of reporting that an error-check failed -- added a bit
of support for getting the extent of a JITted function
in addition to just its base.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@112324 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Expression/ClangUserExpression.cpp b/source/Expression/ClangUserExpression.cpp
index afd94bb..d8841d3 100644
--- a/source/Expression/ClangUserExpression.cpp
+++ b/source/Expression/ClangUserExpression.cpp
@@ -45,6 +45,10 @@
     m_transformed_text = m_transformed_stream.GetData();
 }
 
+ClangUserExpression::~ClangUserExpression ()
+{
+}
+
 clang::ASTConsumer *
 ClangUserExpression::ASTTransformer (clang::ASTConsumer *passthrough)
 {
@@ -123,7 +127,9 @@
     
     m_dwarf_opcodes.reset();
     
-    Error jit_error = parser.MakeJIT (m_jit_addr, exe_ctx);
+    lldb::addr_t jit_end;
+    
+    Error jit_error = parser.MakeJIT (m_jit_addr, jit_end, exe_ctx);
     
     if (jit_error.Success())
     {