summaryrefslogtreecommitdiffstats
path: root/llvm/tools/obj2yaml/obj2yaml.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/obj2yaml/obj2yaml.cpp')
-rw-r--r--llvm/tools/obj2yaml/obj2yaml.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/tools/obj2yaml/obj2yaml.cpp b/llvm/tools/obj2yaml/obj2yaml.cpp
index 493a0ce3010..7fe034d5b49 100644
--- a/llvm/tools/obj2yaml/obj2yaml.cpp
+++ b/llvm/tools/obj2yaml/obj2yaml.cpp
@@ -22,6 +22,8 @@ using namespace llvm::object;
static error_code dumpObject(const ObjectFile &Obj) {
if (Obj.isCOFF())
return coff2yaml(outs(), cast<COFFObjectFile>(Obj));
+ if (Obj.isELF())
+ return elf2yaml(outs(), Obj);
return obj2yaml_error::unsupported_obj_file_format;
}
OpenPOWER on IntegriCloud