From f97af8a084e0685a3473e919f6b3db95c3f40197 Mon Sep 17 00:00:00 2001 From: Simon Atanasyan Date: Sat, 31 May 2014 04:51:07 +0000 Subject: [yaml2obj] Add new command line option `-docnum`. Input YAML file might contain multiple object file definitions. New option `-docnum` allows to specify an ordinal number (starting from 1) of definition used for an object file generation. Patch reviewed by Sean Silva. llvm-svn: 209967 --- llvm/lib/Support/YAMLTraits.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/Support/YAMLTraits.cpp') diff --git a/llvm/lib/Support/YAMLTraits.cpp b/llvm/lib/Support/YAMLTraits.cpp index e5f94947ff8..20f8b245c94 100644 --- a/llvm/lib/Support/YAMLTraits.cpp +++ b/llvm/lib/Support/YAMLTraits.cpp @@ -90,8 +90,8 @@ bool Input::setCurrentDocument() { return false; } -void Input::nextDocument() { - ++DocIterator; +bool Input::nextDocument() { + return ++DocIterator != Strm->end(); } bool Input::mapTag(StringRef Tag, bool Default) { -- cgit v1.2.3