[obj2yaml] Recognize input file format using llvm::object::ObjectFile

interface methods isCOFF().

The '-coff' command line option has been removed. It was not used in any
test cases.

The patch reviewed by Michael Spencer.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208157 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Simon Atanasyan
2014-05-07 05:18:51 +00:00
parent 3fe09b705c
commit 111454f4e9
6 changed files with 126 additions and 25 deletions
+1 -4
View File
@@ -210,10 +210,7 @@ COFFYAML::Object &COFFDumper::getYAMLObj() {
return YAMLObj;
}
error_code coff2yaml(raw_ostream &Out, MemoryBuffer *Buff) {
error_code ec;
object::COFFObjectFile Obj(Buff, ec);
check(ec);
error_code coff2yaml(raw_ostream &Out, const object::COFFObjectFile &Obj) {
COFFDumper Dumper(Obj);
yaml::Output Yout(Out);