aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/Support/StringExtras.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Support/StringExtras.h b/include/llvm/Support/StringExtras.h
index 585a42ca4c..a9e6bb3e83 100644
--- a/include/llvm/Support/StringExtras.h
+++ b/include/llvm/Support/StringExtras.h
@@ -67,4 +67,10 @@ static inline string ftostr(double V) {
return Buffer;
}
+static inline void
+printIndent(unsigned int indent, ostream& os=cout, const char* const istr=" ")
+{
+ for (unsigned i=0; i < indent; i++)
+ os << istr;
+}
#endif