summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/YAMLTraits.cpp
diff options
context:
space:
mode:
authorSimon Atanasyan <simon@atanasyan.com>2014-05-31 04:51:07 +0000
committerSimon Atanasyan <simon@atanasyan.com>2014-05-31 04:51:07 +0000
commitf97af8a084e0685a3473e919f6b3db95c3f40197 (patch)
tree9f3a098f39b9c511e73cb97dc93e71fcf6e72f28 /llvm/lib/Support/YAMLTraits.cpp
parentbc53ed1ee6241b58c52768546d39897e62e7a7b7 (diff)
downloadbcm5719-llvm-f97af8a084e0685a3473e919f6b3db95c3f40197.tar.gz
bcm5719-llvm-f97af8a084e0685a3473e919f6b3db95c3f40197.zip
[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
Diffstat (limited to 'llvm/lib/Support/YAMLTraits.cpp')
-rw-r--r--llvm/lib/Support/YAMLTraits.cpp4
1 files changed, 2 insertions, 2 deletions
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) {
OpenPOWER on IntegriCloud