diff --git a/include/llvm/Support/StringExtras.h b/include/llvm/Support/StringExtras.h index 585a42ca4c8..a9e6bb3e837 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