diff options
Diffstat (limited to 'lib/TextAPI/MachO/Symbol.cpp')
-rw-r--r-- | lib/TextAPI/MachO/Symbol.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/TextAPI/MachO/Symbol.cpp b/lib/TextAPI/MachO/Symbol.cpp index 731b264f6082..9f2d8172beed 100644 --- a/lib/TextAPI/MachO/Symbol.cpp +++ b/lib/TextAPI/MachO/Symbol.cpp @@ -45,5 +45,14 @@ LLVM_DUMP_METHOD void Symbol::dump(raw_ostream &OS) const { } #endif +Symbol::const_filtered_target_range +Symbol::targets(ArchitectureSet Architectures) const { + std::function<bool(const Target &)> FN = + [Architectures](const Target &Target) { + return Architectures.has(Target.Arch); + }; + return make_filter_range(Targets, FN); +} + } // end namespace MachO. } // end namespace llvm. |