summaryrefslogtreecommitdiff
path: root/include/llvm/Analysis/FindUsedTypes.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Analysis/FindUsedTypes.h')
-rw-r--r--include/llvm/Analysis/FindUsedTypes.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/Analysis/FindUsedTypes.h b/include/llvm/Analysis/FindUsedTypes.h
index fbf41de7cb..008e30c93e 100644
--- a/include/llvm/Analysis/FindUsedTypes.h
+++ b/include/llvm/Analysis/FindUsedTypes.h
@@ -34,6 +34,7 @@ public:
/// symbol table from the module.
///
void print(std::ostream &o, const Module *M) const;
+ void print(std::ostream *o, const Module *M) const { if (o) print(*o, M); }
private:
/// IncorporateType - Incorporate one type and all of its subtypes into the