mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +00:00
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
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user