diff options
| author | Greg Clayton <gclayton@apple.com> | 2011-02-15 21:59:32 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2011-02-15 21:59:32 +0000 |
| commit | 514487e80609921f8451a80965f65c3defbce725 (patch) | |
| tree | 424c18a67cc664a7d276846b6d84a575f23c99f2 /lldb/source/Expression/ClangUtilityFunction.cpp | |
| parent | 41febc658b62f15983301ebff759c99909f2ecbf (diff) | |
| download | bcm5719-llvm-514487e80609921f8451a80965f65c3defbce725.tar.gz bcm5719-llvm-514487e80609921f8451a80965f65c3defbce725.zip | |
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
Diffstat (limited to 'lldb/source/Expression/ClangUtilityFunction.cpp')
| -rw-r--r-- | lldb/source/Expression/ClangUtilityFunction.cpp | 17 |
1 files changed, 2 insertions, 15 deletions
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); |

