summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression/ClangUserExpression.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2011-02-15 21:59:32 +0000
committerGreg Clayton <gclayton@apple.com>2011-02-15 21:59:32 +0000
commit514487e80609921f8451a80965f65c3defbce725 (patch)
tree424c18a67cc664a7d276846b6d84a575f23c99f2 /lldb/source/Expression/ClangUserExpression.cpp
parent41febc658b62f15983301ebff759c99909f2ecbf (diff)
downloadbcm5719-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/ClangUserExpression.cpp')
-rw-r--r--lldb/source/Expression/ClangUserExpression.cpp15
1 files changed, 1 insertions, 14 deletions
diff --git a/lldb/source/Expression/ClangUserExpression.cpp b/lldb/source/Expression/ClangUserExpression.cpp
index f64448a4bd2..5f9784e7e86 100644
--- a/lldb/source/Expression/ClangUserExpression.cpp
+++ b/lldb/source/Expression/ClangUserExpression.cpp
@@ -234,19 +234,6 @@ ClangUserExpression::Parse (Stream &error_stream,
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
//
@@ -257,7 +244,7 @@ ClangUserExpression::Parse (Stream &error_stream,
m_expr_decl_map->WillParse(exe_ctx);
- ClangExpressionParser parser(target_triple.GetCString(), exe_ctx.process, *this);
+ ClangExpressionParser parser(exe_ctx.process, *this);
unsigned num_errors = parser.Parse (error_stream);
OpenPOWER on IntegriCloud