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:
parent
d8415b8fbd
commit
34059f45b6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user