Modified the ASTDumper to return a "const char *" instead of a copy of the
std::string and modified all places that used the std::string it returned
to use the "const char *".

Also modified the expression parser to not crash when a function type fails
to copy into the expression AST context.



git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@142561 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Expression/ASTDumper.cpp b/source/Expression/ASTDumper.cpp
index eafd69f..1c819b1 100644
--- a/source/Expression/ASTDumper.cpp
+++ b/source/Expression/ASTDumper.cpp
@@ -78,9 +78,10 @@
     m_dump = clang::QualType::getFromOpaquePtr(type).getAsString();
 }
     
-std::string ASTDumper::AsString()
+const char *
+ASTDumper::GetCString()
 {
-    return m_dump;
+    return m_dump.c_str();
 }
 
 void ASTDumper::ToSTDERR()