[Lldb-commits] [lldb] r211968 - Don't truncate the target triple when initializing clang.

Zachary Turner zturner at google.com
Fri Jun 27 16:19:43 PDT 2014


Author: zturner
Date: Fri Jun 27 18:19:42 2014
New Revision: 211968

URL: http://llvm.org/viewvc/llvm-project?rev=211968&view=rev
Log:
Don't truncate the target triple when initializing clang.

Reviewed by: Sean Callanan

Differential Revision: http://reviews.llvm.org/D4282

Modified:
    lldb/trunk/source/Expression/ClangExpressionParser.cpp

Modified: lldb/trunk/source/Expression/ClangExpressionParser.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/ClangExpressionParser.cpp?rev=211968&r1=211967&r2=211968&view=diff
==============================================================================
--- lldb/trunk/source/Expression/ClangExpressionParser.cpp (original)
+++ lldb/trunk/source/Expression/ClangExpressionParser.cpp Fri Jun 27 18:19:42 2014
@@ -129,19 +129,6 @@ ClangExpressionParser::ClangExpressionPa
     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





More information about the lldb-commits mailing list