class WindowsResourceParser
Declaration
class WindowsResourceParser { /* full declaration omitted */ };
Declared at: llvm/include/llvm/Object/WindowsResource.h:153
Member Variables
- private llvm::object::WindowsResourceParser::TreeNode Root
- private std::vector<std::vector<uint8_t>> Data
- private std::vector<std::vector<UTF16>> StringTable
- private std::vector<std::string> InputFilenames
- private bool MinGW
Method Overview
- public WindowsResourceParser(bool MinGW = false)
- private llvm::Error addChildren(llvm::object::WindowsResourceParser::TreeNode & Node, llvm::object::ResourceSectionRef & RSR, const llvm::object::coff_resource_dir_table & Table, uint32_t Origin, std::vector<StringOrID> & Context, std::vector<std::string> & Duplicates)
- public void cleanUpManifests(std::vector<std::string> & Duplicates)
- public ArrayRef<std::vector<uint8_t>> getData() const
- public ArrayRef<std::vector<UTF16>> getStringTable() const
- public const llvm::object::WindowsResourceParser::TreeNode & getTree() const
- public llvm::Error parse(llvm::object::WindowsResource * WR, std::vector<std::string> & Duplicates)
- public llvm::Error parse(llvm::object::ResourceSectionRef & RSR, llvm::StringRef Filename, std::vector<std::string> & Duplicates)
- public void printTree(llvm::raw_ostream & OS) const
- private bool shouldIgnoreDuplicate(const llvm::object::ResourceEntryRef & Entry) const
- private bool shouldIgnoreDuplicate(const std::vector<StringOrID> & Context) const
Methods
¶WindowsResourceParser(bool MinGW = false)
WindowsResourceParser(bool MinGW = false)
Declared at: llvm/include/llvm/Object/WindowsResource.h:156
Parameters
- bool MinGW = false
¶llvm::Error addChildren(
llvm::object::WindowsResourceParser::TreeNode&
Node,
llvm::object::ResourceSectionRef& RSR,
const llvm::object::coff_resource_dir_table&
Table,
uint32_t Origin,
std::vector<StringOrID>& Context,
std::vector<std::string>& Duplicates)
llvm::Error addChildren(
llvm::object::WindowsResourceParser::TreeNode&
Node,
llvm::object::ResourceSectionRef& RSR,
const llvm::object::coff_resource_dir_table&
Table,
uint32_t Origin,
std::vector<StringOrID>& Context,
std::vector<std::string>& Duplicates)
Declared at: llvm/include/llvm/Object/WindowsResource.h:244
Parameters
- llvm::object::WindowsResourceParser::TreeNode& Node
- llvm::object::ResourceSectionRef& RSR
- const llvm::object::coff_resource_dir_table& Table
- uint32_t Origin
- std::vector<StringOrID>& Context
- std::vector<std::string>& Duplicates
¶void cleanUpManifests(
std::vector<std::string>& Duplicates)
void cleanUpManifests(
std::vector<std::string>& Duplicates)
Declared at: llvm/include/llvm/Object/WindowsResource.h:160
Parameters
- std::vector<std::string>& Duplicates
¶ArrayRef<std::vector<uint8_t>> getData() const
ArrayRef<std::vector<uint8_t>> getData() const
Declared at: llvm/include/llvm/Object/WindowsResource.h:163
¶ArrayRef<std::vector<UTF16>> getStringTable()
const
ArrayRef<std::vector<UTF16>> getStringTable()
const
Declared at: llvm/include/llvm/Object/WindowsResource.h:164
¶const llvm::object::WindowsResourceParser::
TreeNode&
getTree() const
const llvm::object::WindowsResourceParser::
TreeNode&
getTree() const
Declared at: llvm/include/llvm/Object/WindowsResource.h:162
¶llvm::Error parse(
llvm::object::WindowsResource* WR,
std::vector<std::string>& Duplicates)
llvm::Error parse(
llvm::object::WindowsResource* WR,
std::vector<std::string>& Duplicates)
Declared at: llvm/include/llvm/Object/WindowsResource.h:157
Parameters
- llvm::object::WindowsResource* WR
- std::vector<std::string>& Duplicates
¶llvm::Error parse(
llvm::object::ResourceSectionRef& RSR,
llvm::StringRef Filename,
std::vector<std::string>& Duplicates)
llvm::Error parse(
llvm::object::ResourceSectionRef& RSR,
llvm::StringRef Filename,
std::vector<std::string>& Duplicates)
Declared at: llvm/include/llvm/Object/WindowsResource.h:158
Parameters
- llvm::object::ResourceSectionRef& RSR
- llvm::StringRef Filename
- std::vector<std::string>& Duplicates
¶void printTree(llvm::raw_ostream& OS) const
void printTree(llvm::raw_ostream& OS) const
Declared at: llvm/include/llvm/Object/WindowsResource.h:161
Parameters
¶bool shouldIgnoreDuplicate(
const llvm::object::ResourceEntryRef& Entry)
const
bool shouldIgnoreDuplicate(
const llvm::object::ResourceEntryRef& Entry)
const
Declared at: llvm/include/llvm/Object/WindowsResource.h:248
Parameters
- const llvm::object::ResourceEntryRef& Entry
¶bool shouldIgnoreDuplicate(
const std::vector<StringOrID>& Context) const
bool shouldIgnoreDuplicate(
const std::vector<StringOrID>& Context) const
Declared at: llvm/include/llvm/Object/WindowsResource.h:249
Parameters
- const std::vector<StringOrID>& Context