summaryrefslogtreecommitdiffstats
path: root/llvm/tools/yaml2obj/yaml2coff.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/tools/yaml2obj/yaml2coff.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/tools/yaml2obj/yaml2coff.cpp')
-rw-r--r--llvm/tools/yaml2obj/yaml2coff.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/tools/yaml2obj/yaml2coff.cpp b/llvm/tools/yaml2obj/yaml2coff.cpp
index a0ede246bd6..c772db9a8e8 100644
--- a/llvm/tools/yaml2obj/yaml2coff.cpp
+++ b/llvm/tools/yaml2obj/yaml2coff.cpp
@@ -327,8 +327,7 @@ bool writeCOFF(COFFParser &CP, raw_ostream &OS) {
return true;
}
-int yaml2coff(llvm::raw_ostream &Out, llvm::MemoryBuffer *Buf) {
- yaml::Input YIn(Buf->getBuffer());
+int yaml2coff(yaml::Input &YIn, raw_ostream &Out) {
COFFYAML::Object Doc;
YIn >> Doc;
if (YIn.error()) {
OpenPOWER on IntegriCloud