diff options
author | Simon Atanasyan <simon@atanasyan.com> | 2014-05-07 05:18:51 +0000 |
---|---|---|
committer | Simon Atanasyan <simon@atanasyan.com> | 2014-05-07 05:18:51 +0000 |
commit | 111454f4e95a1d228ff200194dd047178538e12a (patch) | |
tree | bdcbb127f569da077ab271be072caa5cbd53d502 /tools/obj2yaml/obj2yaml.h | |
parent | 3fe09b705c1604d2f90311d73d9e7f9562cbf9d8 (diff) | |
download | llvm-111454f4e95a1d228ff200194dd047178538e12a.tar.gz llvm-111454f4e95a1d228ff200194dd047178538e12a.tar.bz2 llvm-111454f4e95a1d228ff200194dd047178538e12a.tar.xz |
[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
Diffstat (limited to 'tools/obj2yaml/obj2yaml.h')
-rw-r--r-- | tools/obj2yaml/obj2yaml.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/obj2yaml/obj2yaml.h b/tools/obj2yaml/obj2yaml.h index bde82e618e..80b30f2640 100644 --- a/tools/obj2yaml/obj2yaml.h +++ b/tools/obj2yaml/obj2yaml.h @@ -13,10 +13,11 @@ #ifndef LLVM_TOOLS_OBJ2YAML_H #define LLVM_TOOLS_OBJ2YAML_H -#include "llvm/Support/MemoryBuffer.h" +#include "llvm/Object/COFF.h" #include "llvm/Support/raw_ostream.h" #include "llvm/Support/system_error.h" -llvm::error_code coff2yaml(llvm::raw_ostream &Out, llvm::MemoryBuffer *TheObj); +llvm::error_code coff2yaml(llvm::raw_ostream &Out, + const llvm::object::COFFObjectFile &Obj); #endif |