Removed the ClangStmtVisitor, which is old code
that translates Clang ASTs straight to DWARF. We
are now using IR instead.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@110957 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Expression/ClangExpression.cpp b/source/Expression/ClangExpression.cpp
index 467acbd..0bb3c6e 100644
--- a/source/Expression/ClangExpression.cpp
+++ b/source/Expression/ClangExpression.cpp
@@ -46,6 +46,7 @@
#include "llvm/Module.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/LLVMContext.h"
+#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/System/DynamicLibrary.h"
#include "llvm/System/Host.h"
@@ -61,7 +62,6 @@
#include "lldb/Expression/ClangExpression.h"
#include "lldb/Expression/ClangASTSource.h"
#include "lldb/Expression/ClangResultSynthesizer.h"
-#include "lldb/Expression/ClangStmtVisitor.h"
#include "lldb/Expression/IRForTarget.h"
#include "lldb/Expression/IRToDWARF.h"
#include "lldb/Symbol/ClangASTContext.h"
@@ -440,29 +440,6 @@
return num_errors;
}
-unsigned
-ClangExpression::ConvertExpressionToDWARF (ClangExpressionVariableList& expr_local_variable_list,
- StreamString &dwarf_opcode_strm)
-{
- CompilerInstance *compiler_instance = GetCompilerInstance();
-
- DeclarationName hack_func_name(&compiler_instance->getASTContext().Idents.get("___clang_expr"));
- DeclContext::lookup_result result = compiler_instance->getASTContext().getTranslationUnitDecl()->lookup(hack_func_name);
-
- if (result.first != result.second)
- {
- Decl *decl = *result.first;
- Stmt *decl_stmt = decl->getBody();
- if (decl_stmt)
- {
- ClangStmtVisitor visitor(compiler_instance->getASTContext(), expr_local_variable_list, m_decl_map, dwarf_opcode_strm);
-
- visitor.Visit (decl_stmt);
- }
- }
- return 0;
-}
-
bool
ClangExpression::ConvertIRToDWARF (ClangExpressionVariableList &expr_local_variable_list,
StreamString &dwarf_opcode_strm)