Closed by commit rL211968 (authored by @zturner).

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D4282

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

Index: lldb/trunk/source/Expression/ClangExpressionParser.cpp
===================================================================
--- lldb/trunk/source/Expression/ClangExpressionParser.cpp
+++ lldb/trunk/source/Expression/ClangExpressionParser.cpp
@@ -129,19 +129,6 @@
     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
Index: lldb/trunk/source/Expression/ClangExpressionParser.cpp
===================================================================
--- lldb/trunk/source/Expression/ClangExpressionParser.cpp
+++ lldb/trunk/source/Expression/ClangExpressionParser.cpp
@@ -129,19 +129,6 @@
     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
_______________________________________________
lldb-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits

Reply via email to