hanchenye-llvm-project/llvm/tools/yaml2obj
Puyan Lotfi 6c82695753 [yaml2obj] Fixing opening empty yaml files.
Essentially echo "" | yaml2obj crashes. This patch attempts to trim whitespace
and determine if the yaml string in the file is empty or not. If the input is
empty then it will not properly print out an error message and return an error
code.

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

A    test/tools/yaml2obj/empty.yaml
M    tools/yaml2obj/yaml2obj.cpp

llvm-svn: 357219
2019-03-28 22:55:08 +00:00
..
CMakeLists.txt [ObjectYAML] Add basic minidump generation support 2019-03-22 14:47:26 +00:00
yaml2coff.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
yaml2elf.cpp [yaml2obj][obj2yaml] - Teach yaml2obj/obj2yaml tools about STB_GNU_UNIQUE symbols. 2019-03-28 10:52:14 +00:00
yaml2macho.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
yaml2minidump.cpp [ObjectYAML] Add basic minidump generation support 2019-03-22 14:47:26 +00:00
yaml2obj.cpp [yaml2obj] Fixing opening empty yaml files. 2019-03-28 22:55:08 +00:00
yaml2obj.h [ObjectYAML] Add basic minidump generation support 2019-03-22 14:47:26 +00:00
yaml2wasm.cpp [WebAssembly] Target features section 2019-03-20 20:26:45 +00:00