blob: ca6da404660524aefe5cc88c7421345aee107e89 [file] [log] [blame]
Marek Sokolowski96bd9232017-09-20 18:33:35 +00001//===- WindowsResourceDumper.h - Windows Resource printer -------*- 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#ifndef LLVM_TOOLS_LLVM_READOBJ_WINDOWSRESOURCEDUMPER_H
11#define LLVM_TOOLS_LLVM_READOBJ_WINDOWSRESOURCEDUMPER_H
12
13#include "llvm/Object/WindowsResource.h"
14#include "llvm/Support/ScopedPrinter.h"
15
16namespace llvm {
17namespace object {
18namespace WindowsRes {
19
20class Dumper {
21public:
22 Dumper(WindowsResource *Res, ScopedPrinter &SW) : SW(SW), WinRes(Res) {}
23
24 Error printData();
25
26private:
27 ScopedPrinter &SW;
28 WindowsResource *WinRes;
29
30 void printEntry(const ResourceEntryRef &Ref);
31};
32
33} // namespace WindowsRes
34} // namespace object
35} // namespace llvm
36
37#endif