Fix the build bot break introduced by r320791.
[llvm-core.git] / tools / llvm-readobj / WindowsResourceDumper.h
blobca6da404660524aefe5cc88c7421345aee107e89
1 //===- 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 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_TOOLS_LLVM_READOBJ_WINDOWSRESOURCEDUMPER_H
11 #define LLVM_TOOLS_LLVM_READOBJ_WINDOWSRESOURCEDUMPER_H
13 #include "llvm/Object/WindowsResource.h"
14 #include "llvm/Support/ScopedPrinter.h"
16 namespace llvm {
17 namespace object {
18 namespace WindowsRes {
20 class Dumper {
21 public:
22 Dumper(WindowsResource *Res, ScopedPrinter &SW) : SW(SW), WinRes(Res) {}
24 Error printData();
26 private:
27 ScopedPrinter &SW;
28 WindowsResource *WinRes;
30 void printEntry(const ResourceEntryRef &Ref);
33 } // namespace WindowsRes
34 } // namespace object
35 } // namespace llvm
37 #endif