YAMLIO: Allow scalars to dictate quotation rules
authorDavid Majnemer <david.majnemer@gmail.com>
Thu, 10 Apr 2014 07:37:33 +0000 (07:37 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Thu, 10 Apr 2014 07:37:33 +0000 (07:37 +0000)
commit7788033be626836f2543a63ab2150e287418cba5
treed2920c0b74e8b1ec11bc3dbb41265cfc3a5e545c
parent220c0d1f5ed2abcf00b583acf5782dfcdace0812
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.

llvm-svn: 205955
llvm/docs/YamlIO.rst
llvm/include/llvm/Object/YAML.h
llvm/include/llvm/Support/YAMLTraits.h
llvm/lib/MC/MCModuleYAML.cpp
llvm/lib/Support/YAMLTraits.cpp
llvm/test/Object/X86/objdump-cfg-invalid-opcode.yaml
llvm/unittests/Support/YAMLIOTest.cpp