forked from OSchip/llvm-project
Allow printing partially constructed bitsets
llvm-svn: 4941
This commit is contained in:
parent
7e73168939
commit
3e6e191e39
|
@ -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 << " }";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue