YAMLIO: Allow scalars to dictate quotation rules

Introduce ScalarTraits::mustQuote which determines whether or not a
StringRef needs quoting before it is acceptable to output.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205955 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
David Majnemer
2014-04-10 07:37:33 +00:00
parent fb52dba011
commit 878657074a
7 changed files with 155 additions and 20 deletions

View File

@@ -38,7 +38,7 @@ Sections:
#CFG: Type: Data
## 4: 06 (bad)
#CFG: Content: 06
#CFG: Content: '06'
#CFG: - StartAddress: 0x0000000000000005
#CFG: Size: 1