Added function printIndent.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@317 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Vikram S. Adve 2001-07-28 04:41:27 +00:00
parent bf2b7e8beb
commit 7d2a2518e8

View File

@ -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