From 514487e80609921f8451a80965f65c3defbce725 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Tue, 15 Feb 2011 21:59:32 +0000 Subject: Made lldb_private::ArchSpec contain much more than just an architecture. It now, in addition to cpu type/subtype and architecture flavor, contains: - byte order (big endian, little endian) - address size in bytes - llvm::Triple for true target triple support and for more powerful plug-in selection. llvm-svn: 125602 --- lldb/source/Expression/ClangUtilityFunction.cpp | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) (limited to 'lldb/source/Expression/ClangUtilityFunction.cpp') diff --git a/lldb/source/Expression/ClangUtilityFunction.cpp b/lldb/source/Expression/ClangUtilityFunction.cpp index 03b15d1413c..9d9b3d1d849 100644 --- a/lldb/source/Expression/ClangUtilityFunction.cpp +++ b/lldb/source/Expression/ClangUtilityFunction.cpp @@ -81,20 +81,7 @@ ClangUtilityFunction::Install (Stream &error_stream, error_stream.PutCString ("error: invalid target\n"); return false; } - - ConstString target_triple; - - target->GetTargetTriple (target_triple); - - if (!target_triple) - target_triple = Host::GetTargetTriple (); - - if (!target_triple) - { - error_stream.PutCString ("error: invalid target triple\n"); - return false; - } - + ////////////////////////// // Parse the expression // @@ -105,7 +92,7 @@ ClangUtilityFunction::Install (Stream &error_stream, m_expr_decl_map->WillParse(exe_ctx); - ClangExpressionParser parser(target_triple.GetCString(), exe_ctx.process, *this); + ClangExpressionParser parser(exe_ctx.GetBestExecutionContextScope(), *this); unsigned num_errors = parser.Parse (error_stream); -- cgit v1.2.3