Marek Sokolowski | 96bd923 | 2017-09-20 18:33:35 +0000 | [diff] [blame] | 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 | //===----------------------------------------------------------------------===// |
| 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 | |
| 16 | namespace llvm { |
| 17 | namespace object { |
| 18 | namespace WindowsRes { |
| 19 | |
| 20 | class Dumper { |
| 21 | public: |
| 22 | Dumper(WindowsResource *Res, ScopedPrinter &SW) : SW(SW), WinRes(Res) {} |
| 23 | |
| 24 | Error printData(); |
| 25 | |
| 26 | private: |
| 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 |