Fix silly bug.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 10 Aug 2010 16:32:15 +0000 (16:32 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 10 Aug 2010 16:32:15 +0000 (16:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110684 91177308-0d34-0410-b5e6-96231b3b80d8

tools/gold/gold-plugin.cpp

index e7161a64a8e48feb0f7744e568ba5dff46de51ad..207c0d8b46abf6deab6d1f862638563eda5f5d9e 100644 (file)
@@ -96,7 +96,7 @@ namespace options {
     } else if (opt.startswith("pass-through=")) {
       llvm::StringRef item = opt.substr(strlen("pass-through="));
       pass_through.push_back(item.str());
-    } else if (opt == "mtriple=") {
+    } else if (opt.startswith("mtriple=")) {
       triple = opt.substr(strlen("mtriple="));
     } else if (opt == "emit-llvm") {
       generate_bc_file = BC_ONLY;