llvm-project/llvm/lib/ObjectYAML
Richard Smith d0c0c13447 Fix ODR violations due to abuse of LLVM_YAML_IS_(FLOW_)?SEQUENCE_VECTOR
This is a short-term fix for PR33650 aimed to get the modules build bots green again.

Remove all the places where we use the LLVM_YAML_IS_(FLOW_)?SEQUENCE_VECTOR
macros to try to locally specialize a global template for a global type. That's
not how C++ works.

Instead, we now centrally define how to format vectors of fundamental types and
of string (std::string and StringRef). We use flow formatting for the former
cases, since that's the obvious right thing to do; in the latter case, it's
less clear what the right choice is, but flow formatting is really bad for some
cases (due to very long strings), so we pick block formatting. (Many of the
cases that were using flow formatting for strings are improved by this change.)

Other than the flow -> block formatting change for some vectors of strings,
this should result in no functionality change.

Differential Revision: https://reviews.llvm.org/D34907

Corresponding updates to clang, clang-tools-extra, and lld to follow.

llvm-svn: 306878
2017-06-30 20:56:57 +00:00
..
CMakeLists.txt [ObjectYAML] Split CodeViewYAML into 3 pieces. 2017-05-31 04:17:13 +00:00
COFFYAML.cpp Resubmit "[codeview] Make obj2yaml/yaml2obj support .debug$S..." 2017-06-14 15:59:27 +00:00
CodeViewYAMLDebugSections.cpp Fix ODR violations due to abuse of LLVM_YAML_IS_(FLOW_)?SEQUENCE_VECTOR 2017-06-30 20:56:57 +00:00
CodeViewYAMLSymbols.cpp Fix ODR violations due to abuse of LLVM_YAML_IS_(FLOW_)?SEQUENCE_VECTOR 2017-06-30 20:56:57 +00:00
CodeViewYAMLTypes.cpp Fix ODR violations due to abuse of LLVM_YAML_IS_(FLOW_)?SEQUENCE_VECTOR 2017-06-30 20:56:57 +00:00
DWARFEmitter.cpp Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
DWARFVisitor.cpp [ObjectYAML] Fix issue with DWARF2 AddrSize 8 2017-03-07 21:34:35 +00:00
DWARFVisitor.h Move Object format code to lib/BinaryFormat. 2017-06-07 03:48:56 +00:00
DWARFYAML.cpp [ObjectYAML] Add support for DWARF5 Unit header 2017-03-07 18:50:58 +00:00
ELFYAML.cpp [YAML] - Teach yaml2obj/obj2yaml to work with numeric relocation values. 2017-06-30 10:31:03 +00:00
LLVMBuild.txt [CodeView] Move CodeView YAML code to ObjectYAML. 2017-05-30 21:53:05 +00:00
MachOYAML.cpp Move Object format code to lib/BinaryFormat. 2017-06-07 03:48:56 +00:00
ObjectYAML.cpp Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
WasmYAML.cpp [WebAssembly] Add data size and alignement to linking section 2017-06-27 20:27:59 +00:00
YAML.cpp