From 95769bf4899712e641fb52ac6965e520623009a7 Mon Sep 17 00:00:00 2001 From: Sean Callanan Date: Thu, 11 Oct 2012 22:00:52 +0000 Subject: Fixed the IR interaction layer to deal with a change in the LLDB target data API. llvm-svn: 165754 --- lldb/source/Expression/IRInterpreter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lldb/source/Expression/IRInterpreter.cpp') diff --git a/lldb/source/Expression/IRInterpreter.cpp b/lldb/source/Expression/IRInterpreter.cpp index 314f0b88c9c..421b4f9921a 100644 --- a/lldb/source/Expression/IRInterpreter.cpp +++ b/lldb/source/Expression/IRInterpreter.cpp @@ -425,7 +425,7 @@ public: m_decl_map (decl_map) { m_byte_order = (target_data.isLittleEndian() ? lldb::eByteOrderLittle : lldb::eByteOrderBig); - m_addr_byte_size = (target_data.getPointerSize()); + m_addr_byte_size = (target_data.getPointerSize(0)); } void Jump (const BasicBlock *bb) @@ -1042,7 +1042,7 @@ IRInterpreter::runOnFunction (lldb::ClangExpressionVariableSP &result, } DataLayout target_data(&llvm_module); - if (target_data.getPointerSize() != target_info.address_byte_size) + if (target_data.getPointerSize(0) != target_info.address_byte_size) { err.SetErrorToGenericError(); err.SetErrorString(interpreter_initialization_error); -- cgit v1.2.3