OSDN Git Service

Remove \brief commands from doxygen comments.
[android-x86/external-llvm.git] / tools / llvm-objdump / WasmDump.cpp
1 //===-- WasmDump.cpp - wasm-specific dumper ---------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 ///
10 /// \file
11 /// This file implements the wasm-specific dumper for llvm-objdump.
12 ///
13 //===----------------------------------------------------------------------===//
14
15 #include "llvm-objdump.h"
16 #include "llvm/Object/Wasm.h"
17
18 using namespace llvm;
19 using namespace object;
20
21 void llvm::printWasmFileHeader(const object::ObjectFile *Obj) {
22   const WasmObjectFile *File = dyn_cast<const WasmObjectFile>(Obj);
23
24   outs() << "Program Header:\n";
25   outs() << "Version: 0x";
26   outs().write_hex(File->getHeader().Version);
27   outs() << "\n";
28 }