Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[llvm-objdump][Wasm][NFC] Create WasmDump.h
Summary: Continuing from D77285, the external interfaces implemented by `WasmDump.cpp` are now declared in `WasmDump.h` and moved into the `llvm::objdump` namespace. Reviewers: jhenderson, MaskRay, DiggerLin, jasonliu, daltenty Reviewed By: jhenderson, MaskRay Differential Revision: https://reviews.llvm.org/D77990
- Loading branch information
1 parent
fe06e23
commit 5ea2819
Showing
4 changed files
with
43 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
//===-- WasmDump.h - wasm-specific dumper -----------------------*- C++ -*-===// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef LLVM_TOOLS_LLVM_OBJDUMP_WASMDUMP_H | ||
#define LLVM_TOOLS_LLVM_OBJDUMP_WASMDUMP_H | ||
|
||
#include "llvm/ADT/SmallVector.h" | ||
|
||
namespace llvm { | ||
|
||
class Error; | ||
|
||
namespace object { | ||
class WasmObjectFile; | ||
class ObjectFile; | ||
class RelocationRef; | ||
} // namespace object | ||
|
||
namespace objdump { | ||
|
||
Error getWasmRelocationValueString(const object::WasmObjectFile *Obj, | ||
const object::RelocationRef &RelRef, | ||
llvm::SmallVectorImpl<char> &Result); | ||
|
||
void printWasmFileHeader(const object::ObjectFile *O); | ||
|
||
} // namespace objdump | ||
} // namespace llvm | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters