projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[yaml2obj] Add new command line option `-docnum`.
[oota-llvm.git]
/
tools
/
yaml2obj
/
yaml2elf.cpp
diff --git
a/tools/yaml2obj/yaml2elf.cpp
b/tools/yaml2obj/yaml2elf.cpp
index bb52cda7c1e9b3eec98f9f13699203f21e6eb43f..11a56469b0d30d61f76dba9f6567648483467c1c 100644
(file)
--- a/
tools/yaml2obj/yaml2elf.cpp
+++ b/
tools/yaml2obj/yaml2elf.cpp
@@
-467,8
+467,7
@@
static bool isLittleEndian(const ELFYAML::Object &Doc) {
return Doc.Header.Data == ELFYAML::ELF_ELFDATA(ELF::ELFDATA2LSB);
}
return Doc.Header.Data == ELFYAML::ELF_ELFDATA(ELF::ELFDATA2LSB);
}
-int yaml2elf(llvm::raw_ostream &Out, llvm::MemoryBuffer *Buf) {
- yaml::Input YIn(Buf->getBuffer());
+int yaml2elf(yaml::Input &YIn, raw_ostream &Out) {
ELFYAML::Object Doc;
YIn >> Doc;
if (YIn.error()) {
ELFYAML::Object Doc;
YIn >> Doc;
if (YIn.error()) {