summaryrefslogtreecommitdiffstats
path: root/llvm/utils
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-02-15 19:26:16 +0000
committerChris Lattner <sabre@nondot.org>2007-02-15 19:26:16 +0000
commit49e58cfe428c880b6a5ae49443a811de0cc6cd0b (patch)
treeb924b6b493dfa69a8c5d6fb589932955463e0d5c /llvm/utils
parent4d1fd55a9f97b185f9552bfedcaf0cf8c4c97acb (diff)
downloadbcm5719-llvm-49e58cfe428c880b6a5ae49443a811de0cc6cd0b.tar.gz
bcm5719-llvm-49e58cfe428c880b6a5ae49443a811de0cc6cd0b.zip
the lengths of the strings are known, just use memcmp
llvm-svn: 34321
Diffstat (limited to 'llvm/utils')
-rw-r--r--llvm/utils/TableGen/IntrinsicEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/IntrinsicEmitter.cpp b/llvm/utils/TableGen/IntrinsicEmitter.cpp
index c44ae5e4caa..6247da2af5e 100644
--- a/llvm/utils/TableGen/IntrinsicEmitter.cpp
+++ b/llvm/utils/TableGen/IntrinsicEmitter.cpp
@@ -93,7 +93,7 @@ EmitFnNameRecognizer(const std::vector<CodeGenIntrinsic> &Ints,
}
OS << " if (Len == " << I->first.size()
- << " && !strcmp(Name, \"" << I->first << "\")) return Intrinsic::"
+ << " && !memcmp(Name, \"" << I->first << "\", Len)) return Intrinsic::"
<< I->second << ";\n";
}
OS << " }\n";
OpenPOWER on IntegriCloud