mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 12:43:36 +01:00
2b8a5c6709
This enables readobj to output Windows resource files (.res). This way, we'll be able to test .res outputs without comparing them byte-by-byte with "magic binary files" generated by MS toolchain. Differential Revision: https://reviews.llvm.org/D38058 llvm-svn: 313790
38 lines
904 B
C++
38 lines
904 B
C++
//===- WindowsResourceDumper.h - Windows Resource printer -------*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLVM_TOOLS_LLVM_READOBJ_WINDOWSRESOURCEDUMPER_H
|
|
#define LLVM_TOOLS_LLVM_READOBJ_WINDOWSRESOURCEDUMPER_H
|
|
|
|
#include "llvm/Object/WindowsResource.h"
|
|
#include "llvm/Support/ScopedPrinter.h"
|
|
|
|
namespace llvm {
|
|
namespace object {
|
|
namespace WindowsRes {
|
|
|
|
class Dumper {
|
|
public:
|
|
Dumper(WindowsResource *Res, ScopedPrinter &SW) : SW(SW), WinRes(Res) {}
|
|
|
|
Error printData();
|
|
|
|
private:
|
|
ScopedPrinter &SW;
|
|
WindowsResource *WinRes;
|
|
|
|
void printEntry(const ResourceEntryRef &Ref);
|
|
};
|
|
|
|
} // namespace WindowsRes
|
|
} // namespace object
|
|
} // namespace llvm
|
|
|
|
#endif
|