Allow printing partially constructed bitsets

llvm-svn: 4941
This commit is contained in:
Chris Lattner 2002-12-06 04:42:10 +00:00
parent 7e73168939
commit 3e6e191e39
1 changed files with 4 additions and 1 deletions

View File

@ -153,7 +153,10 @@ void BitsInit::print(std::ostream &OS) const {
OS << "{ ";
for (unsigned i = 0, e = getNumBits(); i != e; ++i) {
if (i) OS << ", ";
getBit(e-i-1)->print(OS);
if (Init *Bit = getBit(e-i-1))
Bit->print(OS);
else
OS << "*";
}
OS << " }";
}