WindowsResourceDumper.h 932 B

123456789101112131415161718192021222324252627282930313233343536
  1. //===- WindowsResourceDumper.h - Windows Resource printer -------*- C++ -*-===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. #ifndef LLVM_TOOLS_LLVM_READOBJ_WINDOWSRESOURCEDUMPER_H
  9. #define LLVM_TOOLS_LLVM_READOBJ_WINDOWSRESOURCEDUMPER_H
  10. #include "llvm/Object/WindowsResource.h"
  11. #include "llvm/Support/ScopedPrinter.h"
  12. namespace llvm {
  13. namespace object {
  14. namespace WindowsRes {
  15. class Dumper {
  16. public:
  17. Dumper(WindowsResource *Res, ScopedPrinter &SW) : SW(SW), WinRes(Res) {}
  18. Error printData();
  19. private:
  20. ScopedPrinter &SW;
  21. WindowsResource *WinRes;
  22. void printEntry(const ResourceEntryRef &Ref);
  23. };
  24. } // namespace WindowsRes
  25. } // namespace object
  26. } // namespace llvm
  27. #endif