From a57596658a57ff03fad94e3dcf260ecb3c99c289 Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Fri, 27 Jun 2014 23:19:42 +0000 Subject: [PATCH] Don't truncate the target triple when initializing clang. Reviewed by: Sean Callanan Differential Revision: http://reviews.llvm.org/D4282 llvm-svn: 211968 --- lldb/source/Expression/ClangExpressionParser.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/lldb/source/Expression/ClangExpressionParser.cpp b/lldb/source/Expression/ClangExpressionParser.cpp index bac72c3..e5046a7 100644 --- a/lldb/source/Expression/ClangExpressionParser.cpp +++ b/lldb/source/Expression/ClangExpressionParser.cpp @@ -129,19 +129,6 @@ ClangExpressionParser::ClangExpressionParser (ExecutionContextScope *exe_scope, if (target_sp && target_sp->GetArchitecture().IsValid()) { std::string triple = target_sp->GetArchitecture().GetTriple().str(); - - int dash_count = 0; - for (size_t i = 0; i < triple.size(); ++i) - { - if (triple[i] == '-') - dash_count++; - if (dash_count == 3) - { - triple.resize(i); - break; - } - } - m_compiler->getTargetOpts().Triple = triple; } else -- 2.7.4