diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2013-08-19 19:00:35 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2013-08-19 19:00:35 +0000 |
commit | 2b762cc75df2cbab21b5a1945fdf913a66de0f81 (patch) | |
tree | 9a6605a83e45cad30e8784a99bf684df46b89e1c /include | |
parent | 756e89c8c2a3c30ce3a73ed13724aad1b41a5608 (diff) | |
download | external_llvm-2b762cc75df2cbab21b5a1945fdf913a66de0f81.zip external_llvm-2b762cc75df2cbab21b5a1945fdf913a66de0f81.tar.gz external_llvm-2b762cc75df2cbab21b5a1945fdf913a66de0f81.tar.bz2 |
Introduce SpecialCaseList::isIn overload for GlobalAliases.
Differential Revision: http://llvm-reviews.chandlerc.com/D1437
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188688 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Transforms/Utils/SpecialCaseList.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/llvm/Transforms/Utils/SpecialCaseList.h b/include/llvm/Transforms/Utils/SpecialCaseList.h index 90eace1..34c28fc 100644 --- a/include/llvm/Transforms/Utils/SpecialCaseList.h +++ b/include/llvm/Transforms/Utils/SpecialCaseList.h @@ -49,6 +49,7 @@ namespace llvm { class Function; +class GlobalAlias; class GlobalVariable; class MemoryBuffer; class Module; @@ -79,6 +80,14 @@ class SpecialCaseList { bool isIn(const GlobalVariable &G, const StringRef Category = StringRef()) const; + /// Returns whether this global alias is listed in the given category, which + /// may be omitted to search the empty category. + /// + /// If GA aliases a function, the alias's name is matched as a function name + /// would be. Similarly, aliases of globals are matched like globals. + bool isIn(const GlobalAlias &GA, + const StringRef Category = StringRef()) const; + /// Returns whether this module is listed in the given category, which may be /// omitted to search the empty category. bool isIn(const Module &M, const StringRef Category = StringRef()) const; |