summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression/ClangExpression.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2010-08-12 21:29:03 +0000
committerSean Callanan <scallanan@apple.com>2010-08-12 21:29:03 +0000
commit35053747ccd308fd363ca6e6374af482ae561c8d (patch)
tree8c4ee3f18fb1154ced49f97d5b6e6581fca61af1 /lldb/source/Expression/ClangExpression.cpp
parent0af2b7c93e5f6addc0c9a5278e9be8fa1ab2bf78 (diff)
downloadbcm5719-llvm-35053747ccd308fd363ca6e6374af482ae561c8d.tar.gz
bcm5719-llvm-35053747ccd308fd363ca6e6374af482ae561c8d.zip
Removed the ClangStmtVisitor, which is old code
that translates Clang ASTs straight to DWARF. We are now using IR instead. llvm-svn: 110957
Diffstat (limited to 'lldb/source/Expression/ClangExpression.cpp')
-rw-r--r--lldb/source/Expression/ClangExpression.cpp25
1 files changed, 1 insertions, 24 deletions
diff --git a/lldb/source/Expression/ClangExpression.cpp b/lldb/source/Expression/ClangExpression.cpp
index 467acbd3f8d..0bb3c6e22ef 100644
--- a/lldb/source/Expression/ClangExpression.cpp
+++ b/lldb/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 @@ ClangExpression::ParseBareExpression (llvm::StringRef expr_text,
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)
OpenPOWER on IntegriCloud