mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-14 07:31:39 +00:00
Allow printing partially constructed bitsets
llvm-svn: 4941
This commit is contained in:
parent
80ba7cbffc
commit
3e112b9973
@ -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…
x
Reference in New Issue
Block a user