diff options
author | Jonathan Roelofs <jonathan@codesourcery.com> | 2017-05-05 21:30:13 +0000 |
---|---|---|
committer | Jonathan Roelofs <jonathan@codesourcery.com> | 2017-05-05 21:30:13 +0000 |
commit | 7eaea28742ad4cb69d69e28d017bcb66005ba421 (patch) | |
tree | 4df4afdf5365a0ad69ab7eb5f2f3d83512aacd87 /lib/Driver/Multilib.cpp | |
parent | b64b36bd35a2ead9464dfa8fea2655eaa62b2709 (diff) |
Multilib: add dump methods
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@302296 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Multilib.cpp')
-rw-r--r-- | lib/Driver/Multilib.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Driver/Multilib.cpp b/lib/Driver/Multilib.cpp index 43b62f7b36..16a81603b3 100644 --- a/lib/Driver/Multilib.cpp +++ b/lib/Driver/Multilib.cpp @@ -80,6 +80,10 @@ Multilib &Multilib::includeSuffix(StringRef S) { return *this; } +LLVM_DUMP_METHOD void Multilib::dump() const { + print(llvm::errs()); +} + void Multilib::print(raw_ostream &OS) const { assert(GCCSuffix.empty() || (StringRef(GCCSuffix).front() == '/')); if (GCCSuffix.empty()) @@ -270,6 +274,10 @@ bool MultilibSet::select(const Multilib::flags_list &Flags, Multilib &M) const { return false; } +LLVM_DUMP_METHOD void MultilibSet::dump() const { + print(llvm::errs()); +} + void MultilibSet::print(raw_ostream &OS) const { for (const Multilib &M : *this) OS << M << "\n"; |