mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
[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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user