1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

Added function printIndent.

llvm-svn: 317
This commit is contained in:
Vikram S. Adve 2001-07-28 04:41:27 +00:00
parent d8415b8fbd
commit 34059f45b6

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