mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
tools: introduce StreamWriter::printBoolean
Add a helper print method to print a boolean value as "Yes" or "No". This is intended to be used by the Windows ARM EH printer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210191 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0b25d84c27
commit
b35de82adc
@ -169,6 +169,10 @@ public:
|
||||
startLine() << Label << ": " << int(Value) << "\n";
|
||||
}
|
||||
|
||||
void printBoolean(StringRef Label, bool Value) {
|
||||
startLine() << Label << ": " << (Value ? "Yes" : "No") << '\n';
|
||||
}
|
||||
|
||||
template <typename T_>
|
||||
void printList(StringRef Label, const SmallVectorImpl<T_> &List) {
|
||||
startLine() << Label << ": [";
|
||||
|
Loading…
Reference in New Issue
Block a user