diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2013-08-19 00:24:20 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2013-08-19 00:24:20 +0000 |
commit | 03c3324ccdedca412a9daaf8c0bfd8167a801990 (patch) | |
tree | 015f76dffd88402ea89a3c3d4bcb0aaca965e50a /llvm/lib/Transforms/Utils | |
parent | 048b8834162fda436cdf092b3a7643c3d342e90c (diff) | |
download | bcm5719-llvm-03c3324ccdedca412a9daaf8c0bfd8167a801990.tar.gz bcm5719-llvm-03c3324ccdedca412a9daaf8c0bfd8167a801990.zip |
Remove SpecialCaseList::findCategory.
It turned out that I didn't need this for DFSan.
llvm-svn: 188646
Diffstat (limited to 'llvm/lib/Transforms/Utils')
-rw-r--r-- | llvm/lib/Transforms/Utils/SpecialCaseList.cpp | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/llvm/lib/Transforms/Utils/SpecialCaseList.cpp b/llvm/lib/Transforms/Utils/SpecialCaseList.cpp index 5400bcd60bf..cf12bbfe3d7 100644 --- a/llvm/lib/Transforms/Utils/SpecialCaseList.cpp +++ b/llvm/lib/Transforms/Utils/SpecialCaseList.cpp @@ -169,12 +169,6 @@ SpecialCaseList::~SpecialCaseList() { } } -bool SpecialCaseList::findCategory(const Function &F, - StringRef &Category) const { - return findCategory(*F.getParent(), Category) || - findCategory("fun", F.getName(), Category); -} - bool SpecialCaseList::isIn(const Function& F, const StringRef Category) const { return isIn(*F.getParent(), Category) || inSectionCategory("fun", F.getName(), Category); @@ -191,13 +185,6 @@ static StringRef GetGVTypeString(const GlobalVariable &G) { return "<unknown type>"; } -bool SpecialCaseList::findCategory(const GlobalVariable &G, - StringRef &Category) const { - return findCategory(*G.getParent(), Category) || - findCategory("global", G.getName(), Category) || - findCategory("type", GetGVTypeString(G), Category); -} - bool SpecialCaseList::isIn(const GlobalVariable &G, const StringRef Category) const { return isIn(*G.getParent(), Category) || @@ -205,32 +192,10 @@ bool SpecialCaseList::isIn(const GlobalVariable &G, inSectionCategory("type", GetGVTypeString(G), Category); } -bool SpecialCaseList::findCategory(const Module &M, StringRef &Category) const { - return findCategory("src", M.getModuleIdentifier(), Category); -} - bool SpecialCaseList::isIn(const Module &M, const StringRef Category) const { return inSectionCategory("src", M.getModuleIdentifier(), Category); } -bool SpecialCaseList::findCategory(const StringRef Section, - const StringRef Query, - StringRef &Category) const { - StringMap<StringMap<Entry> >::const_iterator I = Entries.find(Section); - if (I == Entries.end()) return false; - - for (StringMap<Entry>::const_iterator II = I->second.begin(), - IE = I->second.end(); - II != IE; ++II) { - if (II->getValue().match(Query)) { - Category = II->first(); - return true; - } - } - - return false; -} - bool SpecialCaseList::inSectionCategory(const StringRef Section, const StringRef Query, const StringRef Category) const { |