summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2013-07-16 17:56:07 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2013-07-16 17:56:07 +0000
commit8b77f18da03a843e14d1698b6489cabb57925c8f (patch)
treeaacb2a4e7b1e7e3e535130aaac02f98b3ce94e17 /llvm/lib
parent18191ceb54c4e9a6e1cfc06f442f9eac87ae9472 (diff)
downloadbcm5719-llvm-8b77f18da03a843e14d1698b6489cabb57925c8f.tar.gz
bcm5719-llvm-8b77f18da03a843e14d1698b6489cabb57925c8f.zip
Make SpecialCaseList match full strings, as documented, using anchors.
Differential Revision: http://llvm-reviews.chandlerc.com/D1149 llvm-svn: 186431
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Utils/SpecialCaseList.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/SpecialCaseList.cpp b/llvm/lib/Transforms/Utils/SpecialCaseList.cpp
index a747230def2..ef8a7ac75b6 100644
--- a/llvm/lib/Transforms/Utils/SpecialCaseList.cpp
+++ b/llvm/lib/Transforms/Utils/SpecialCaseList.cpp
@@ -99,7 +99,7 @@ void SpecialCaseList::init(const MemoryBuffer *MB) {
// Add this regexp into the proper group by its prefix.
if (!Regexps[Prefix][Category].empty())
Regexps[Prefix][Category] += "|";
- Regexps[Prefix][Category] += Regexp;
+ Regexps[Prefix][Category] += "^" + Regexp + "$";
}
// Iterate through each of the prefixes, and create Regexs for them.
OpenPOWER on IntegriCloud