diff options
author | Simon Atanasyan <simon@atanasyan.com> | 2014-05-31 04:51:07 +0000 |
---|---|---|
committer | Simon Atanasyan <simon@atanasyan.com> | 2014-05-31 04:51:07 +0000 |
commit | df96c562a5f9a53287689b426896080c72a85785 (patch) | |
tree | c8b2c763c1d335383d894874edfe13e27f2b34f0 /lib/Support | |
parent | 44c63540158fe25f33a14e2b4758fb4a88890fd9 (diff) | |
download | llvm-df96c562a5f9a53287689b426896080c72a85785.tar.gz llvm-df96c562a5f9a53287689b426896080c72a85785.tar.bz2 llvm-df96c562a5f9a53287689b426896080c72a85785.tar.xz |
[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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209967 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r-- | lib/Support/YAMLTraits.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Support/YAMLTraits.cpp b/lib/Support/YAMLTraits.cpp index e5f94947ff..20f8b245c9 100644 --- a/lib/Support/YAMLTraits.cpp +++ b/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) { |