blob: 362f765ae6ecdc683ac15e88e539472cc059985c [file] [log] [blame]
Marek Sokolowski5cd3d5c2017-08-18 18:24:17 +00001//===-- ResourceScriptStmt.h ------------------------------------*- 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// This lists all the resource and statement types occurring in RC scripts.
11//
12//===---------------------------------------------------------------------===//
13
14#ifndef LLVM_TOOLS_LLVMRC_RESOURCESCRIPTSTMT_H
15#define LLVM_TOOLS_LLVMRC_RESOURCESCRIPTSTMT_H
16
17#include "ResourceScriptToken.h"
Marek Sokolowski8f193432017-09-29 17:14:09 +000018#include "ResourceVisitor.h"
Marek Sokolowski5cd3d5c2017-08-18 18:24:17 +000019
Marek Sokolowski4ac54d92017-08-29 16:49:59 +000020#include "llvm/ADT/StringSet.h"
21
Marek Sokolowski5cd3d5c2017-08-18 18:24:17 +000022namespace llvm {
23namespace rc {
24
25// A class holding a name - either an integer or a reference to the string.
26class IntOrString {
27private:
28 union Data {
29 uint32_t Int;
30 StringRef String;
31 Data(uint32_t Value) : Int(Value) {}
32 Data(const StringRef Value) : String(Value) {}
Marek Sokolowski7f110522017-08-28 22:58:31 +000033 Data(const RCToken &Token) {
34 if (Token.kind() == RCToken::Kind::Int)
35 Int = Token.intValue();
36 else
37 String = Token.value();
38 }
Marek Sokolowski5cd3d5c2017-08-18 18:24:17 +000039 } Data;
40 bool IsInt;
41
42public:
43 IntOrString() : IntOrString(0) {}
44 IntOrString(uint32_t Value) : Data(Value), IsInt(1) {}
45 IntOrString(StringRef Value) : Data(Value), IsInt(0) {}
46 IntOrString(const RCToken &Token)
47 : Data(Token), IsInt(Token.kind() == RCToken::Kind::Int) {}
48
49 bool equalsLower(const char *Str) {
50 return !IsInt && Data.String.equals_lower(Str);
51 }
52
Marek Sokolowski8f193432017-09-29 17:14:09 +000053 bool isInt() const { return IsInt; }
54
55 uint32_t getInt() const {
56 assert(IsInt);
57 return Data.Int;
58 }
59
60 const StringRef &getString() const {
61 assert(!IsInt);
62 return Data.String;
63 }
64
65 operator Twine() const {
66 return isInt() ? Twine(getInt()) : Twine(getString());
67 }
68
Marek Sokolowski5cd3d5c2017-08-18 18:24:17 +000069 friend raw_ostream &operator<<(raw_ostream &, const IntOrString &);
70};
71
Marek Sokolowski8f193432017-09-29 17:14:09 +000072enum ResourceKind {
73 // These resource kinds have corresponding .res resource type IDs
74 // (TYPE in RESOURCEHEADER structure). The numeric value assigned to each
75 // kind is equal to this type ID.
76 RkNull = 0,
77 RkMenu = 4,
78 RkDialog = 5,
79 RkAccelerators = 9,
80 RkVersionInfo = 16,
81 RkHTML = 23,
82
83 // These kinds don't have assigned type IDs (they might be the resources
84 // of invalid kind, expand to many resource structures in .res files,
85 // or have variable type ID). In order to avoid ID clashes with IDs above,
86 // we assign the kinds the values 256 and larger.
87 RkInvalid = 256,
88 RkBase,
89 RkCursor,
90 RkIcon,
91 RkUser
92};
93
94// Non-zero memory flags.
95// Ref: msdn.microsoft.com/en-us/library/windows/desktop/ms648027(v=vs.85).aspx
96enum MemoryFlags {
97 MfMoveable = 0x10,
98 MfPure = 0x20,
99 MfPreload = 0x40,
100 MfDiscardable = 0x1000
101};
102
Marek Sokolowski5cd3d5c2017-08-18 18:24:17 +0000103// Base resource. All the resources should derive from this base.
104class RCResource {
Marek Sokolowski8f193432017-09-29 17:14:09 +0000105public:
Marek Sokolowski5cd3d5c2017-08-18 18:24:17 +0000106 IntOrString ResName;
107
Marek Sokolowski5cd3d5c2017-08-18 18:24:17 +0000108 RCResource() = default;
109 RCResource(RCResource &&) = default;
110 void setName(const IntOrString &Name) { ResName = Name; }
111 virtual raw_ostream &log(raw_ostream &OS) const {
112 return OS << "Base statement\n";
113 };
114 virtual ~RCResource() {}
Marek Sokolowski8f193432017-09-29 17:14:09 +0000115
116 virtual Error visit(Visitor *) const {
117 llvm_unreachable("This is unable to call methods from Visitor base");
118 }
119
120 // By default, memory flags are DISCARDABLE | PURE | MOVEABLE.
121 virtual uint16_t getMemoryFlags() const {
122 return MfDiscardable | MfPure | MfMoveable;
123 }
124 virtual ResourceKind getKind() const { return RkBase; }
125 static bool classof(const RCResource *Res) { return true; }
126
127 virtual IntOrString getResourceType() const {
128 llvm_unreachable("This cannot be called on objects without types.");
129 }
130 virtual Twine getResourceTypeName() const {
131 llvm_unreachable("This cannot be called on objects without types.");
132 };
133};
134
135// An empty resource. It has no content, type 0, ID 0 and all of its
136// characteristics are equal to 0.
137class NullResource : public RCResource {
138public:
139 raw_ostream &log(raw_ostream &OS) const override {
140 return OS << "Null resource\n";
141 }
142 Error visit(Visitor *V) const override { return V->visitNullResource(this); }
143 IntOrString getResourceType() const override { return 0; }
144 Twine getResourceTypeName() const override { return "(NULL)"; }
145 uint16_t getMemoryFlags() const override { return 0; }
Marek Sokolowski5cd3d5c2017-08-18 18:24:17 +0000146};
147
148// Optional statement base. All such statements should derive from this base.
149class OptionalStmt : public RCResource {};
150
151class OptionalStmtList : public OptionalStmt {
152 std::vector<std::unique_ptr<OptionalStmt>> Statements;
153
154public:
155 OptionalStmtList() {}
156 virtual raw_ostream &log(raw_ostream &OS) const;
157
158 void addStmt(std::unique_ptr<OptionalStmt> Stmt) {
159 Statements.push_back(std::move(Stmt));
160 }
161};
162
163// LANGUAGE statement. It can occur both as a top-level statement (in such
164// a situation, it changes the default language until the end of the file)
165// and as an optional resource statement (then it changes the language
166// of a single resource).
167//
168// Ref: msdn.microsoft.com/en-us/library/windows/desktop/aa381019(v=vs.85).aspx
169class LanguageResource : public OptionalStmt {
Marek Sokolowski8f193432017-09-29 17:14:09 +0000170public:
Marek Sokolowski5cd3d5c2017-08-18 18:24:17 +0000171 uint32_t Lang, SubLang;
172
Marek Sokolowski5cd3d5c2017-08-18 18:24:17 +0000173 LanguageResource(uint32_t LangId, uint32_t SubLangId)
174 : Lang(LangId), SubLang(SubLangId) {}
175 raw_ostream &log(raw_ostream &) const override;
Marek Sokolowski8f193432017-09-29 17:14:09 +0000176
177 // This is not a regular top-level statement; when it occurs, it just
178 // modifies the language context.
179 Error visit(Visitor *V) const override { return V->visitLanguageStmt(this); }
180 Twine getResourceTypeName() const override { return "LANGUAGE"; }
Marek Sokolowski5cd3d5c2017-08-18 18:24:17 +0000181};
182
Marek Sokolowski7f110522017-08-28 22:58:31 +0000183// ACCELERATORS resource. Defines a named table of accelerators for the app.
184//
185// Ref: msdn.microsoft.com/en-us/library/windows/desktop/aa380610(v=vs.85).aspx
186class AcceleratorsResource : public RCResource {
187public:
188 class Accelerator {
189 public:
190 IntOrString Event;
191 uint32_t Id;
192 uint8_t Flags;
193
194 enum Options {
195 ASCII = (1 << 0),
196 VIRTKEY = (1 << 1),
197 NOINVERT = (1 << 2),
198 ALT = (1 << 3),
199 SHIFT = (1 << 4),
200 CONTROL = (1 << 5)
201 };
202
203 static constexpr size_t NumFlags = 6;
204 static StringRef OptionsStr[NumFlags];
205 };
206
207 AcceleratorsResource(OptionalStmtList &&OptStmts)
208 : OptStatements(std::move(OptStmts)) {}
209 void addAccelerator(IntOrString Event, uint32_t Id, uint8_t Flags) {
210 Accelerators.push_back(Accelerator{Event, Id, Flags});
211 }
212 raw_ostream &log(raw_ostream &) const override;
213
214private:
215 std::vector<Accelerator> Accelerators;
216 OptionalStmtList OptStatements;
217};
218
Marek Sokolowski72aa9372017-08-28 21:59:54 +0000219// CURSOR resource. Represents a single cursor (".cur") file.
220//
221// Ref: msdn.microsoft.com/en-us/library/windows/desktop/aa380920(v=vs.85).aspx
222class CursorResource : public RCResource {
223 StringRef CursorLoc;
224
225public:
226 CursorResource(StringRef Location) : CursorLoc(Location) {}
227 raw_ostream &log(raw_ostream &) const override;
228};
229
Marek Sokolowski5cd3d5c2017-08-18 18:24:17 +0000230// ICON resource. Represents a single ".ico" file containing a group of icons.
231//
232// Ref: msdn.microsoft.com/en-us/library/windows/desktop/aa381018(v=vs.85).aspx
233class IconResource : public RCResource {
234 StringRef IconLoc;
235
236public:
237 IconResource(StringRef Location) : IconLoc(Location) {}
238 raw_ostream &log(raw_ostream &) const override;
239};
240
Marek Sokolowski72aa9372017-08-28 21:59:54 +0000241// HTML resource. Represents a local webpage that is to be embedded into the
242// resulting resource file. It embeds a file only - no additional resources
243// (images etc.) are included with this resource.
244//
245// Ref: msdn.microsoft.com/en-us/library/windows/desktop/aa966018(v=vs.85).aspx
246class HTMLResource : public RCResource {
Marek Sokolowski8f193432017-09-29 17:14:09 +0000247public:
Marek Sokolowski72aa9372017-08-28 21:59:54 +0000248 StringRef HTMLLoc;
249
Marek Sokolowski72aa9372017-08-28 21:59:54 +0000250 HTMLResource(StringRef Location) : HTMLLoc(Location) {}
251 raw_ostream &log(raw_ostream &) const override;
Marek Sokolowski8f193432017-09-29 17:14:09 +0000252
253 Error visit(Visitor *V) const override { return V->visitHTMLResource(this); }
254
255 // Curiously, file resources don't have DISCARDABLE flag set.
256 uint16_t getMemoryFlags() const override { return MfPure | MfMoveable; }
257 IntOrString getResourceType() const override { return RkHTML; }
258 Twine getResourceTypeName() const override { return "HTML"; }
259 ResourceKind getKind() const override { return RkHTML; }
260 static bool classof(const RCResource *Res) {
261 return Res->getKind() == RkHTML;
262 }
Marek Sokolowski72aa9372017-08-28 21:59:54 +0000263};
264
Marek Sokolowski99ecb0e2017-08-28 23:46:30 +0000265// -- MENU resource and its helper classes --
266// This resource describes the contents of an application menu
267// (usually located in the upper part of the dialog.)
268//
269// Ref: msdn.microsoft.com/en-us/library/windows/desktop/aa381025(v=vs.85).aspx
270
271// Description of a single submenu item.
272class MenuDefinition {
273public:
274 enum Options {
275 CHECKED = (1 << 0),
276 GRAYED = (1 << 1),
277 HELP = (1 << 2),
278 INACTIVE = (1 << 3),
279 MENUBARBREAK = (1 << 4),
280 MENUBREAK = (1 << 5)
281 };
282
283 static constexpr size_t NumFlags = 6;
284 static StringRef OptionsStr[NumFlags];
285 static raw_ostream &logFlags(raw_ostream &, uint8_t Flags);
286 virtual raw_ostream &log(raw_ostream &OS) const {
287 return OS << "Base menu definition\n";
288 }
289 virtual ~MenuDefinition() {}
290};
291
292// Recursive description of a whole submenu.
293class MenuDefinitionList : public MenuDefinition {
294 std::vector<std::unique_ptr<MenuDefinition>> Definitions;
295
296public:
297 void addDefinition(std::unique_ptr<MenuDefinition> Def) {
298 Definitions.push_back(std::move(Def));
299 }
300 raw_ostream &log(raw_ostream &) const override;
301};
302
303// Separator in MENU definition (MENUITEM SEPARATOR).
304//
305// Ref: msdn.microsoft.com/en-us/library/windows/desktop/aa381024(v=vs.85).aspx
306class MenuSeparator : public MenuDefinition {
307public:
308 raw_ostream &log(raw_ostream &) const override;
309};
310
311// MENUITEM statement definition.
312//
313// Ref: msdn.microsoft.com/en-us/library/windows/desktop/aa381024(v=vs.85).aspx
314class MenuItem : public MenuDefinition {
315 StringRef Name;
316 uint32_t Id;
317 uint8_t Flags;
318
319public:
320 MenuItem(StringRef Caption, uint32_t ItemId, uint8_t ItemFlags)
321 : Name(Caption), Id(ItemId), Flags(ItemFlags) {}
322 raw_ostream &log(raw_ostream &) const override;
323};
324
325// POPUP statement definition.
326//
327// Ref: msdn.microsoft.com/en-us/library/windows/desktop/aa381030(v=vs.85).aspx
328class PopupItem : public MenuDefinition {
329 StringRef Name;
330 uint8_t Flags;
331 MenuDefinitionList SubItems;
332
333public:
334 PopupItem(StringRef Caption, uint8_t ItemFlags,
335 MenuDefinitionList &&SubItemsList)
336 : Name(Caption), Flags(ItemFlags), SubItems(std::move(SubItemsList)) {}
337 raw_ostream &log(raw_ostream &) const override;
338};
339
340// Menu resource definition.
341class MenuResource : public RCResource {
342 OptionalStmtList OptStatements;
343 MenuDefinitionList Elements;
344
345public:
346 MenuResource(OptionalStmtList &&OptStmts, MenuDefinitionList &&Items)
347 : OptStatements(std::move(OptStmts)), Elements(std::move(Items)) {}
348 raw_ostream &log(raw_ostream &) const override;
349};
350
Marek Sokolowski5cd3d5c2017-08-18 18:24:17 +0000351// STRINGTABLE resource. Contains a list of strings, each having its unique ID.
352//
353// Ref: msdn.microsoft.com/en-us/library/windows/desktop/aa381050(v=vs.85).aspx
354class StringTableResource : public RCResource {
355 OptionalStmtList OptStatements;
356 std::vector<std::pair<uint32_t, StringRef>> Table;
357
358public:
359 StringTableResource(OptionalStmtList &&OptStmts)
360 : OptStatements(std::move(OptStmts)) {}
361 void addString(uint32_t ID, StringRef String) {
362 Table.emplace_back(ID, String);
363 }
364 raw_ostream &log(raw_ostream &) const override;
365};
366
Marek Sokolowski4ac54d92017-08-29 16:49:59 +0000367// -- DIALOG(EX) resource and its helper classes --
368//
369// This resource describes dialog boxes and controls residing inside them.
370//
371// Ref: msdn.microsoft.com/en-us/library/windows/desktop/aa381003(v=vs.85).aspx
372// Ref: msdn.microsoft.com/en-us/library/windows/desktop/aa381002(v=vs.85).aspx
373
374// Single control definition.
375class Control {
376 StringRef Type, Title;
377 uint32_t ID, X, Y, Width, Height;
378 Optional<uint32_t> Style, ExtStyle, HelpID;
379
380public:
381 Control(StringRef CtlType, StringRef CtlTitle, uint32_t CtlID, uint32_t PosX,
382 uint32_t PosY, uint32_t ItemWidth, uint32_t ItemHeight,
383 Optional<uint32_t> ItemStyle, Optional<uint32_t> ExtItemStyle,
384 Optional<uint32_t> CtlHelpID)
385 : Type(CtlType), Title(CtlTitle), ID(CtlID), X(PosX), Y(PosY),
386 Width(ItemWidth), Height(ItemHeight), Style(ItemStyle),
387 ExtStyle(ExtItemStyle), HelpID(CtlHelpID) {}
388
389 static const StringSet<> SupportedCtls;
390 static const StringSet<> CtlsWithTitle;
391
392 raw_ostream &log(raw_ostream &) const;
393};
394
395// Single dialog definition. We don't create distinct classes for DIALOG and
396// DIALOGEX because of their being too similar to each other. We only have a
397// flag determining the type of the dialog box.
398class DialogResource : public RCResource {
399 uint32_t X, Y, Width, Height, HelpID;
400 OptionalStmtList OptStatements;
401 std::vector<Control> Controls;
402 bool IsExtended;
403
404public:
405 DialogResource(uint32_t PosX, uint32_t PosY, uint32_t DlgWidth,
406 uint32_t DlgHeight, uint32_t DlgHelpID,
407 OptionalStmtList &&OptStmts, bool IsDialogEx)
408 : X(PosX), Y(PosY), Width(DlgWidth), Height(DlgHeight), HelpID(DlgHelpID),
409 OptStatements(std::move(OptStmts)), IsExtended(IsDialogEx) {}
410
411 void addControl(Control &&Ctl) { Controls.push_back(std::move(Ctl)); }
412
413 raw_ostream &log(raw_ostream &) const override;
414};
415
Marek Sokolowskib5f39a02017-09-29 00:14:18 +0000416// User-defined resource. It is either:
417// * a link to the file, e.g. NAME TYPE "filename",
418// * or contains a list of integers and strings, e.g. NAME TYPE {1, "a", 2}.
419class UserDefinedResource : public RCResource {
420 IntOrString Type;
421 StringRef FileLoc;
422 std::vector<IntOrString> Contents;
423 bool IsFileResource;
424
425public:
426 UserDefinedResource(IntOrString ResourceType, StringRef FileLocation)
427 : Type(ResourceType), FileLoc(FileLocation), IsFileResource(true) {}
428 UserDefinedResource(IntOrString ResourceType, std::vector<IntOrString> &&Data)
429 : Type(ResourceType), Contents(std::move(Data)), IsFileResource(false) {}
430
431 raw_ostream &log(raw_ostream &) const override;
432};
433
Marek Sokolowskifb74cb12017-09-28 22:41:38 +0000434// -- VERSIONINFO resource and its helper classes --
435//
436// This resource lists the version information on the executable/library.
437// The declaration consists of the following items:
438// * A number of fixed optional version statements (e.g. FILEVERSION, FILEOS)
439// * BEGIN
440// * A number of BLOCK and/or VALUE statements. BLOCK recursively defines
441// another block of version information, whereas VALUE defines a
442// key -> value correspondence. There might be more than one value
443// corresponding to the single key.
444// * END
445//
446// Ref: msdn.microsoft.com/en-us/library/windows/desktop/aa381058(v=vs.85).aspx
447
448// A single VERSIONINFO statement;
449class VersionInfoStmt {
450public:
451 virtual raw_ostream &log(raw_ostream &OS) const { return OS << "VI stmt\n"; }
452 virtual ~VersionInfoStmt() {}
453};
454
455// BLOCK definition; also the main VERSIONINFO declaration is considered a
456// BLOCK, although it has no name.
457// The correct top-level blocks are "VarFileInfo" and "StringFileInfo". We don't
458// care about them at the parsing phase.
459class VersionInfoBlock : public VersionInfoStmt {
460 std::vector<std::unique_ptr<VersionInfoStmt>> Stmts;
461 StringRef Name;
462
463public:
464 VersionInfoBlock(StringRef BlockName) : Name(BlockName) {}
465 void addStmt(std::unique_ptr<VersionInfoStmt> Stmt) {
466 Stmts.push_back(std::move(Stmt));
467 }
468 raw_ostream &log(raw_ostream &) const override;
469};
470
471class VersionInfoValue : public VersionInfoStmt {
472 StringRef Key;
473 std::vector<IntOrString> Values;
474
475public:
476 VersionInfoValue(StringRef InfoKey, std::vector<IntOrString> &&Vals)
477 : Key(InfoKey), Values(std::move(Vals)) {}
478 raw_ostream &log(raw_ostream &) const override;
479};
480
481class VersionInfoResource : public RCResource {
482public:
483 // A class listing fixed VERSIONINFO statements (occuring before main BEGIN).
484 // If any of these is not specified, it is assumed by the original tool to
485 // be equal to 0.
486 class VersionInfoFixed {
487 public:
488 enum VersionInfoFixedType {
489 FtUnknown,
490 FtFileVersion,
491 FtProductVersion,
492 FtFileFlagsMask,
493 FtFileFlags,
494 FtFileOS,
495 FtFileType,
496 FtFileSubtype,
497 FtNumTypes
498 };
499
500 private:
501 static const StringMap<VersionInfoFixedType> FixedFieldsInfoMap;
502 static const StringRef FixedFieldsNames[FtNumTypes];
503
504 public:
505 SmallVector<uint32_t, 4> FixedInfo[FtNumTypes];
506 SmallVector<bool, FtNumTypes> IsTypePresent;
507
508 static VersionInfoFixedType getFixedType(StringRef Type);
509 static bool isTypeSupported(VersionInfoFixedType Type);
510 static bool isVersionType(VersionInfoFixedType Type);
511
512 VersionInfoFixed() : IsTypePresent(FtNumTypes, false) {}
513
514 void setValue(VersionInfoFixedType Type, ArrayRef<uint32_t> Value) {
515 FixedInfo[Type] = SmallVector<uint32_t, 4>(Value.begin(), Value.end());
516 IsTypePresent[Type] = true;
517 }
518
519 raw_ostream &log(raw_ostream &) const;
520 };
521
522private:
523 VersionInfoBlock MainBlock;
524 VersionInfoFixed FixedData;
525
526public:
527 VersionInfoResource(VersionInfoBlock &&TopLevelBlock,
528 VersionInfoFixed &&FixedInfo)
529 : MainBlock(std::move(TopLevelBlock)), FixedData(std::move(FixedInfo)) {}
530
531 raw_ostream &log(raw_ostream &) const override;
532};
533
Marek Sokolowski5cd3d5c2017-08-18 18:24:17 +0000534// CHARACTERISTICS optional statement.
535//
536// Ref: msdn.microsoft.com/en-us/library/windows/desktop/aa380872(v=vs.85).aspx
537class CharacteristicsStmt : public OptionalStmt {
538 uint32_t Value;
539
540public:
541 CharacteristicsStmt(uint32_t Characteristic) : Value(Characteristic) {}
542 raw_ostream &log(raw_ostream &) const override;
543};
544
545// VERSION optional statement.
546//
547// Ref: msdn.microsoft.com/en-us/library/windows/desktop/aa381059(v=vs.85).aspx
548class VersionStmt : public OptionalStmt {
549 uint32_t Value;
550
551public:
552 VersionStmt(uint32_t Version) : Value(Version) {}
553 raw_ostream &log(raw_ostream &) const override;
554};
555
Marek Sokolowski4ac54d92017-08-29 16:49:59 +0000556// CAPTION optional statement.
557//
558// Ref: msdn.microsoft.com/en-us/library/windows/desktop/aa380778(v=vs.85).aspx
559class CaptionStmt : public OptionalStmt {
560 StringRef Value;
561
562public:
563 CaptionStmt(StringRef Caption) : Value(Caption) {}
564 raw_ostream &log(raw_ostream &) const override;
565};
566
567// FONT optional statement.
568// Note that the documentation is inaccurate: it expects five arguments to be
569// given, however the example provides only two. In fact, the original tool
570// expects two arguments - point size and name of the typeface.
571//
572// Ref: msdn.microsoft.com/en-us/library/windows/desktop/aa381013(v=vs.85).aspx
573class FontStmt : public OptionalStmt {
574 uint32_t Size;
575 StringRef Typeface;
576
577public:
578 FontStmt(uint32_t FontSize, StringRef FontName)
579 : Size(FontSize), Typeface(FontName) {}
580 raw_ostream &log(raw_ostream &) const override;
581};
582
583// STYLE optional statement.
584//
585// Ref: msdn.microsoft.com/en-us/library/windows/desktop/aa381051(v=vs.85).aspx
586class StyleStmt : public OptionalStmt {
587 uint32_t Value;
588
589public:
590 StyleStmt(uint32_t Style) : Value(Style) {}
591 raw_ostream &log(raw_ostream &) const override;
592};
593
Marek Sokolowski5cd3d5c2017-08-18 18:24:17 +0000594} // namespace rc
595} // namespace llvm
596
597#endif