llvm.org GIT mirror llvm / b35de82
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 Saleem Abdulrasool 6 years ago
1 changed file(s) with 4 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
168168 startLine() << Label << ": " << int(Value) << "\n";
169169 }
170170
171 void printBoolean(StringRef Label, bool Value) {
172 startLine() << Label << ": " << (Value ? "Yes" : "No") << '\n';
173 }
174
171175 template
172176 void printList(StringRef Label, const SmallVectorImpl &List) {
173177 startLine() << Label << ": [";