diff options
Diffstat (limited to 'include/llvm/Object/WindowsResource.h')
| -rw-r--r-- | include/llvm/Object/WindowsResource.h | 12 | 
1 files changed, 7 insertions, 5 deletions
diff --git a/include/llvm/Object/WindowsResource.h b/include/llvm/Object/WindowsResource.h index c5189329d3ec5..4839013c8228c 100644 --- a/include/llvm/Object/WindowsResource.h +++ b/include/llvm/Object/WindowsResource.h @@ -118,7 +118,7 @@ public:    class TreeNode;    WindowsResourceParser();    Error parse(WindowsResource *WR); -  void printTree() const; +  void printTree(raw_ostream &OS) const;    const TreeNode &getTree() const { return Root; }    const ArrayRef<std::vector<uint8_t>> getData() const { return Data; }    const ArrayRef<std::vector<UTF16>> getStringTable() const { @@ -159,14 +159,16 @@ public:      TreeNode(uint16_t MajorVersion, uint16_t MinorVersion,               uint32_t Characteristics); -    void addEntry(const ResourceEntryRef &Entry); -    TreeNode &addTypeNode(const ResourceEntryRef &Entry); -    TreeNode &addNameNode(const ResourceEntryRef &Entry); +    void addEntry(const ResourceEntryRef &Entry, bool &IsNewTypeString, +                  bool &IsNewNameString); +    TreeNode &addTypeNode(const ResourceEntryRef &Entry, bool &IsNewTypeString); +    TreeNode &addNameNode(const ResourceEntryRef &Entry, bool &IsNewNameString);      TreeNode &addLanguageNode(const ResourceEntryRef &Entry);      TreeNode &addChild(uint32_t ID, bool IsDataNode = false,                         uint16_t MajorVersion = 0, uint16_t MinorVersion = 0,                         uint32_t Characteristics = 0); -    TreeNode &addChild(ArrayRef<UTF16> NameRef); +    TreeNode &addChild(ArrayRef<UTF16> NameRef, bool &IsNewString); +      bool IsDataNode = false;      uint32_t StringIndex;      uint32_t DataIndex;  | 
