summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression/ClangExpressionParser.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2010-09-30 21:18:25 +0000
committerSean Callanan <scallanan@apple.com>2010-09-30 21:18:25 +0000
commit038df5031535ce23897d383755906401e1554554 (patch)
tree829d3eec11d9c070cf002cdd2497b5043b1ded90 /lldb/source/Expression/ClangExpressionParser.cpp
parent748a5279b1a1d33bd77b9d57079e1f4823499905 (diff)
downloadbcm5719-llvm-038df5031535ce23897d383755906401e1554554.tar.gz
bcm5719-llvm-038df5031535ce23897d383755906401e1554554.zip
Switched the expression parser from using TargetData
to using Clang to get type sizes. This fixes a bug where the type size for a double[2] was being wrongly reported as 8 instead of 16 bytes, causing problems for IRForTarget. Also improved logging so that the next bug in this area will be easier to find. llvm-svn: 115208
Diffstat (limited to 'lldb/source/Expression/ClangExpressionParser.cpp')
-rw-r--r--lldb/source/Expression/ClangExpressionParser.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/lldb/source/Expression/ClangExpressionParser.cpp b/lldb/source/Expression/ClangExpressionParser.cpp
index ec385a4cd04..194a90d22bd 100644
--- a/lldb/source/Expression/ClangExpressionParser.cpp
+++ b/lldb/source/Expression/ClangExpressionParser.cpp
@@ -436,21 +436,7 @@ ClangExpressionParser::MakeJIT (lldb::addr_t &func_addr,
if (decl_map)
{
- std::string target_error;
-
- const llvm::Target *target = llvm::TargetRegistry::lookupTarget(m_target_triple, target_error);
-
- if (!target)
- {
- err.SetErrorToGenericError();
- err.SetErrorStringWithFormat("Couldn't find a target for %s", m_target_triple.c_str());
- return err;
- }
-
- std::auto_ptr<llvm::TargetMachine> target_machine(target->createTargetMachine(m_target_triple, ""));
-
IRForTarget ir_for_target(decl_map,
- target_machine->getTargetData(),
m_expr.NeedsVariableResolution(),
function_name.c_str());
OpenPOWER on IntegriCloud