mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-22 00:37:49 +00:00
Allow printing partially constructed bitsets
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4941 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cdbfa422cd
commit
23ffa4a488
@ -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 << " }";
|
||||
}
|
||||
|
@ -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