1 //===- MicrosoftDemangle.cpp ----------------------------------------------===//
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
7 //===----------------------------------------------------------------------===//
9 // This file defines a demangler for MSVC-style mangled symbols.
11 //===----------------------------------------------------------------------===//
13 #include "llvm/Demangle/MicrosoftDemangleNodes.h"
14 #include "llvm/Demangle/DemangleConfig.h"
15 #include "llvm/Demangle/Utility.h"
20 using namespace ms_demangle
;
22 #define OUTPUT_ENUM_CLASS_VALUE(Enum, Value, Desc) \
27 // Writes a space if the last token does not end with a punctuation.
28 static void outputSpaceIfNecessary(OutputStream
&OS
) {
33 if (std::isalnum(C
) || C
== '>')
37 static void outputSingleQualifier(OutputStream
&OS
, Qualifiers Q
) {
53 static bool outputQualifierIfPresent(OutputStream
&OS
, Qualifiers Q
,
54 Qualifiers Mask
, bool NeedSpace
) {
61 outputSingleQualifier(OS
, Mask
);
65 static void outputQualifiers(OutputStream
&OS
, Qualifiers Q
, bool SpaceBefore
,
70 size_t Pos1
= OS
.getCurrentPosition();
71 SpaceBefore
= outputQualifierIfPresent(OS
, Q
, Q_Const
, SpaceBefore
);
72 SpaceBefore
= outputQualifierIfPresent(OS
, Q
, Q_Volatile
, SpaceBefore
);
73 SpaceBefore
= outputQualifierIfPresent(OS
, Q
, Q_Restrict
, SpaceBefore
);
74 size_t Pos2
= OS
.getCurrentPosition();
75 if (SpaceAfter
&& Pos2
> Pos1
)
79 static void outputCallingConvention(OutputStream
&OS
, CallingConv CC
) {
80 outputSpaceIfNecessary(OS
);
83 case CallingConv::Cdecl
:
86 case CallingConv::Fastcall
:
89 case CallingConv::Pascal
:
92 case CallingConv::Regcall
:
95 case CallingConv::Stdcall
:
98 case CallingConv::Thiscall
:
101 case CallingConv::Eabi
:
104 case CallingConv::Vectorcall
:
105 OS
<< "__vectorcall";
107 case CallingConv::Clrcall
:
115 std::string
Node::toString(OutputFlags Flags
) const {
117 initializeOutputStream(nullptr, nullptr, OS
, 1024);
118 this->output(OS
, Flags
);
120 return {OS
.getBuffer()};
123 void PrimitiveTypeNode::outputPre(OutputStream
&OS
, OutputFlags Flags
) const {
125 OUTPUT_ENUM_CLASS_VALUE(PrimitiveKind
, Void
, "void");
126 OUTPUT_ENUM_CLASS_VALUE(PrimitiveKind
, Bool
, "bool");
127 OUTPUT_ENUM_CLASS_VALUE(PrimitiveKind
, Char
, "char");
128 OUTPUT_ENUM_CLASS_VALUE(PrimitiveKind
, Schar
, "signed char");
129 OUTPUT_ENUM_CLASS_VALUE(PrimitiveKind
, Uchar
, "unsigned char");
130 OUTPUT_ENUM_CLASS_VALUE(PrimitiveKind
, Char8
, "char8_t");
131 OUTPUT_ENUM_CLASS_VALUE(PrimitiveKind
, Char16
, "char16_t");
132 OUTPUT_ENUM_CLASS_VALUE(PrimitiveKind
, Char32
, "char32_t");
133 OUTPUT_ENUM_CLASS_VALUE(PrimitiveKind
, Short
, "short");
134 OUTPUT_ENUM_CLASS_VALUE(PrimitiveKind
, Ushort
, "unsigned short");
135 OUTPUT_ENUM_CLASS_VALUE(PrimitiveKind
, Int
, "int");
136 OUTPUT_ENUM_CLASS_VALUE(PrimitiveKind
, Uint
, "unsigned int");
137 OUTPUT_ENUM_CLASS_VALUE(PrimitiveKind
, Long
, "long");
138 OUTPUT_ENUM_CLASS_VALUE(PrimitiveKind
, Ulong
, "unsigned long");
139 OUTPUT_ENUM_CLASS_VALUE(PrimitiveKind
, Int64
, "__int64");
140 OUTPUT_ENUM_CLASS_VALUE(PrimitiveKind
, Uint64
, "unsigned __int64");
141 OUTPUT_ENUM_CLASS_VALUE(PrimitiveKind
, Wchar
, "wchar_t");
142 OUTPUT_ENUM_CLASS_VALUE(PrimitiveKind
, Float
, "float");
143 OUTPUT_ENUM_CLASS_VALUE(PrimitiveKind
, Double
, "double");
144 OUTPUT_ENUM_CLASS_VALUE(PrimitiveKind
, Ldouble
, "long double");
145 OUTPUT_ENUM_CLASS_VALUE(PrimitiveKind
, Nullptr
, "std::nullptr_t");
147 outputQualifiers(OS
, Quals
, true, false);
150 void NodeArrayNode::output(OutputStream
&OS
, OutputFlags Flags
) const {
151 output(OS
, Flags
, ", ");
154 void NodeArrayNode::output(OutputStream
&OS
, OutputFlags Flags
,
155 StringView Separator
) const {
159 Nodes
[0]->output(OS
, Flags
);
160 for (size_t I
= 1; I
< Count
; ++I
) {
162 Nodes
[I
]->output(OS
, Flags
);
166 void EncodedStringLiteralNode::output(OutputStream
&OS
,
167 OutputFlags Flags
) const {
169 case CharKind::Wchar
:
175 case CharKind::Char16
:
178 case CharKind::Char32
:
182 OS
<< DecodedString
<< "\"";
187 void IntegerLiteralNode::output(OutputStream
&OS
, OutputFlags Flags
) const {
193 void TemplateParameterReferenceNode::output(OutputStream
&OS
,
194 OutputFlags Flags
) const {
195 if (ThunkOffsetCount
> 0)
197 else if (Affinity
== PointerAffinity::Pointer
)
201 Symbol
->output(OS
, Flags
);
202 if (ThunkOffsetCount
> 0)
206 if (ThunkOffsetCount
> 0)
207 OS
<< ThunkOffsets
[0];
208 for (int I
= 1; I
< ThunkOffsetCount
; ++I
) {
209 OS
<< ", " << ThunkOffsets
[I
];
211 if (ThunkOffsetCount
> 0)
215 void IdentifierNode::outputTemplateParameters(OutputStream
&OS
,
216 OutputFlags Flags
) const {
220 TemplateParams
->output(OS
, Flags
);
224 void DynamicStructorIdentifierNode::output(OutputStream
&OS
,
225 OutputFlags Flags
) const {
227 OS
<< "`dynamic atexit destructor for ";
229 OS
<< "`dynamic initializer for ";
233 Variable
->output(OS
, Flags
);
237 Name
->output(OS
, Flags
);
242 void NamedIdentifierNode::output(OutputStream
&OS
, OutputFlags Flags
) const {
244 outputTemplateParameters(OS
, Flags
);
247 void IntrinsicFunctionIdentifierNode::output(OutputStream
&OS
,
248 OutputFlags Flags
) const {
250 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, New
, "operator new");
251 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, Delete
, "operator delete");
252 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, Assign
, "operator=");
253 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, RightShift
, "operator>>");
254 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, LeftShift
, "operator<<");
255 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, LogicalNot
, "operator!");
256 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, Equals
, "operator==");
257 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, NotEquals
, "operator!=");
258 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, ArraySubscript
,
260 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, Pointer
, "operator->");
261 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, Increment
, "operator++");
262 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, Decrement
, "operator--");
263 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, Minus
, "operator-");
264 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, Plus
, "operator+");
265 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, Dereference
, "operator*");
266 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, BitwiseAnd
, "operator&");
267 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, MemberPointer
,
269 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, Divide
, "operator/");
270 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, Modulus
, "operator%");
271 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, LessThan
, "operator<");
272 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, LessThanEqual
, "operator<=");
273 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, GreaterThan
, "operator>");
274 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, GreaterThanEqual
,
276 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, Comma
, "operator,");
277 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, Parens
, "operator()");
278 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, BitwiseNot
, "operator~");
279 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, BitwiseXor
, "operator^");
280 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, BitwiseOr
, "operator|");
281 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, LogicalAnd
, "operator&&");
282 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, LogicalOr
, "operator||");
283 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, TimesEqual
, "operator*=");
284 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, PlusEqual
, "operator+=");
285 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, MinusEqual
, "operator-=");
286 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, DivEqual
, "operator/=");
287 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, ModEqual
, "operator%=");
288 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, RshEqual
, "operator>>=");
289 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, LshEqual
, "operator<<=");
290 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, BitwiseAndEqual
,
292 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, BitwiseOrEqual
,
294 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, BitwiseXorEqual
,
296 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, VbaseDtor
, "`vbase dtor'");
297 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, VecDelDtor
,
298 "`vector deleting dtor'");
299 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, DefaultCtorClosure
,
300 "`default ctor closure'");
301 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, ScalarDelDtor
,
302 "`scalar deleting dtor'");
303 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, VecCtorIter
,
304 "`vector ctor iterator'");
305 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, VecDtorIter
,
306 "`vector dtor iterator'");
307 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, VecVbaseCtorIter
,
308 "`vector vbase ctor iterator'");
309 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, VdispMap
,
310 "`virtual displacement map'");
311 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, EHVecCtorIter
,
312 "`eh vector ctor iterator'");
313 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, EHVecDtorIter
,
314 "`eh vector dtor iterator'");
315 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, EHVecVbaseCtorIter
,
316 "`eh vector vbase ctor iterator'");
317 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, CopyCtorClosure
,
318 "`copy ctor closure'");
319 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, LocalVftableCtorClosure
,
320 "`local vftable ctor closure'");
321 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, ArrayNew
, "operator new[]");
322 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, ArrayDelete
,
323 "operator delete[]");
324 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, ManVectorCtorIter
,
325 "`managed vector ctor iterator'");
326 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, ManVectorDtorIter
,
327 "`managed vector dtor iterator'");
328 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, EHVectorCopyCtorIter
,
329 "`EH vector copy ctor iterator'");
330 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, EHVectorVbaseCopyCtorIter
,
331 "`EH vector vbase copy ctor iterator'");
332 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, VectorCopyCtorIter
,
333 "`vector copy ctor iterator'");
334 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, VectorVbaseCopyCtorIter
,
335 "`vector vbase copy constructor iterator'");
336 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, ManVectorVbaseCopyCtorIter
,
337 "`managed vector vbase copy constructor iterator'");
338 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, CoAwait
,
339 "operator co_await");
340 OUTPUT_ENUM_CLASS_VALUE(IntrinsicFunctionKind
, Spaceship
, "operator<=>");
341 case IntrinsicFunctionKind::MaxIntrinsic
:
342 case IntrinsicFunctionKind::None
:
345 outputTemplateParameters(OS
, Flags
);
348 void LocalStaticGuardIdentifierNode::output(OutputStream
&OS
,
349 OutputFlags Flags
) const {
351 OS
<< "`local static thread guard'";
353 OS
<< "`local static guard'";
355 OS
<< "{" << ScopeIndex
<< "}";
358 void ConversionOperatorIdentifierNode::output(OutputStream
&OS
,
359 OutputFlags Flags
) const {
361 outputTemplateParameters(OS
, Flags
);
363 TargetType
->output(OS
, Flags
);
366 void StructorIdentifierNode::output(OutputStream
&OS
, OutputFlags Flags
) const {
369 Class
->output(OS
, Flags
);
370 outputTemplateParameters(OS
, Flags
);
373 void LiteralOperatorIdentifierNode::output(OutputStream
&OS
,
374 OutputFlags Flags
) const {
375 OS
<< "operator \"\"" << Name
;
376 outputTemplateParameters(OS
, Flags
);
379 void FunctionSignatureNode::outputPre(OutputStream
&OS
,
380 OutputFlags Flags
) const {
381 if (!(Flags
& OF_NoAccessSpecifier
)) {
382 if (FunctionClass
& FC_Public
)
384 if (FunctionClass
& FC_Protected
)
386 if (FunctionClass
& FC_Private
)
390 if (!(Flags
& OF_NoMemberType
)) {
391 if (!(FunctionClass
& FC_Global
)) {
392 if (FunctionClass
& FC_Static
)
395 if (FunctionClass
& FC_Virtual
)
398 if (FunctionClass
& FC_ExternC
)
399 OS
<< "extern \"C\" ";
402 if (!(Flags
& OF_NoReturnType
) && ReturnType
) {
403 ReturnType
->outputPre(OS
, Flags
);
407 if (!(Flags
& OF_NoCallingConvention
))
408 outputCallingConvention(OS
, CallConvention
);
411 void FunctionSignatureNode::outputPost(OutputStream
&OS
,
412 OutputFlags Flags
) const {
413 if (!(FunctionClass
& FC_NoParameterList
)) {
416 Params
->output(OS
, Flags
);
421 if (OS
.back() != '(')
430 if (Quals
& Q_Volatile
)
432 if (Quals
& Q_Restrict
)
434 if (Quals
& Q_Unaligned
)
435 OS
<< " __unaligned";
440 if (RefQualifier
== FunctionRefQualifier::Reference
)
442 else if (RefQualifier
== FunctionRefQualifier::RValueReference
)
445 if (!(Flags
& OF_NoReturnType
) && ReturnType
)
446 ReturnType
->outputPost(OS
, Flags
);
449 void ThunkSignatureNode::outputPre(OutputStream
&OS
, OutputFlags Flags
) const {
452 FunctionSignatureNode::outputPre(OS
, Flags
);
455 void ThunkSignatureNode::outputPost(OutputStream
&OS
, OutputFlags Flags
) const {
456 if (FunctionClass
& FC_StaticThisAdjust
) {
457 OS
<< "`adjustor{" << ThisAdjust
.StaticOffset
<< "}'";
458 } else if (FunctionClass
& FC_VirtualThisAdjust
) {
459 if (FunctionClass
& FC_VirtualThisAdjustEx
) {
460 OS
<< "`vtordispex{" << ThisAdjust
.VBPtrOffset
<< ", "
461 << ThisAdjust
.VBOffsetOffset
<< ", " << ThisAdjust
.VtordispOffset
462 << ", " << ThisAdjust
.StaticOffset
<< "}'";
464 OS
<< "`vtordisp{" << ThisAdjust
.VtordispOffset
<< ", "
465 << ThisAdjust
.StaticOffset
<< "}'";
469 FunctionSignatureNode::outputPost(OS
, Flags
);
472 void PointerTypeNode::outputPre(OutputStream
&OS
, OutputFlags Flags
) const {
473 if (Pointee
->kind() == NodeKind::FunctionSignature
) {
474 // If this is a pointer to a function, don't output the calling convention.
475 // It needs to go inside the parentheses.
476 const FunctionSignatureNode
*Sig
=
477 static_cast<const FunctionSignatureNode
*>(Pointee
);
478 Sig
->outputPre(OS
, OF_NoCallingConvention
);
480 Pointee
->outputPre(OS
, Flags
);
482 outputSpaceIfNecessary(OS
);
484 if (Quals
& Q_Unaligned
)
485 OS
<< "__unaligned ";
487 if (Pointee
->kind() == NodeKind::ArrayType
) {
489 } else if (Pointee
->kind() == NodeKind::FunctionSignature
) {
491 const FunctionSignatureNode
*Sig
=
492 static_cast<const FunctionSignatureNode
*>(Pointee
);
493 outputCallingConvention(OS
, Sig
->CallConvention
);
498 ClassParent
->output(OS
, Flags
);
503 case PointerAffinity::Pointer
:
506 case PointerAffinity::Reference
:
509 case PointerAffinity::RValueReference
:
515 outputQualifiers(OS
, Quals
, false, false);
518 void PointerTypeNode::outputPost(OutputStream
&OS
, OutputFlags Flags
) const {
519 if (Pointee
->kind() == NodeKind::ArrayType
||
520 Pointee
->kind() == NodeKind::FunctionSignature
)
523 Pointee
->outputPost(OS
, Flags
);
526 void TagTypeNode::outputPre(OutputStream
&OS
, OutputFlags Flags
) const {
527 if (!(Flags
& OF_NoTagSpecifier
)) {
529 OUTPUT_ENUM_CLASS_VALUE(TagKind
, Class
, "class");
530 OUTPUT_ENUM_CLASS_VALUE(TagKind
, Struct
, "struct");
531 OUTPUT_ENUM_CLASS_VALUE(TagKind
, Union
, "union");
532 OUTPUT_ENUM_CLASS_VALUE(TagKind
, Enum
, "enum");
536 QualifiedName
->output(OS
, Flags
);
537 outputQualifiers(OS
, Quals
, true, false);
540 void TagTypeNode::outputPost(OutputStream
&OS
, OutputFlags Flags
) const {}
542 void ArrayTypeNode::outputPre(OutputStream
&OS
, OutputFlags Flags
) const {
543 ElementType
->outputPre(OS
, Flags
);
544 outputQualifiers(OS
, Quals
, true, false);
547 void ArrayTypeNode::outputOneDimension(OutputStream
&OS
, OutputFlags Flags
,
549 assert(N
->kind() == NodeKind::IntegerLiteral
);
550 IntegerLiteralNode
*ILN
= static_cast<IntegerLiteralNode
*>(N
);
552 ILN
->output(OS
, Flags
);
555 void ArrayTypeNode::outputDimensionsImpl(OutputStream
&OS
,
556 OutputFlags Flags
) const {
557 if (Dimensions
->Count
== 0)
560 outputOneDimension(OS
, Flags
, Dimensions
->Nodes
[0]);
561 for (size_t I
= 1; I
< Dimensions
->Count
; ++I
) {
563 outputOneDimension(OS
, Flags
, Dimensions
->Nodes
[I
]);
567 void ArrayTypeNode::outputPost(OutputStream
&OS
, OutputFlags Flags
) const {
569 outputDimensionsImpl(OS
, Flags
);
572 ElementType
->outputPost(OS
, Flags
);
575 void SymbolNode::output(OutputStream
&OS
, OutputFlags Flags
) const {
576 Name
->output(OS
, Flags
);
579 void FunctionSymbolNode::output(OutputStream
&OS
, OutputFlags Flags
) const {
580 Signature
->outputPre(OS
, Flags
);
581 outputSpaceIfNecessary(OS
);
582 Name
->output(OS
, Flags
);
583 Signature
->outputPost(OS
, Flags
);
586 void VariableSymbolNode::output(OutputStream
&OS
, OutputFlags Flags
) const {
587 const char *AccessSpec
= nullptr;
588 bool IsStatic
= true;
590 case StorageClass::PrivateStatic
:
591 AccessSpec
= "private";
593 case StorageClass::PublicStatic
:
594 AccessSpec
= "public";
596 case StorageClass::ProtectedStatic
:
597 AccessSpec
= "protected";
603 if (!(Flags
& OF_NoAccessSpecifier
) && AccessSpec
)
604 OS
<< AccessSpec
<< ": ";
605 if (!(Flags
& OF_NoMemberType
) && IsStatic
)
609 Type
->outputPre(OS
, Flags
);
610 outputSpaceIfNecessary(OS
);
612 Name
->output(OS
, Flags
);
614 Type
->outputPost(OS
, Flags
);
617 void CustomTypeNode::outputPre(OutputStream
&OS
, OutputFlags Flags
) const {
618 Identifier
->output(OS
, Flags
);
620 void CustomTypeNode::outputPost(OutputStream
&OS
, OutputFlags Flags
) const {}
622 void QualifiedNameNode::output(OutputStream
&OS
, OutputFlags Flags
) const {
623 Components
->output(OS
, Flags
, "::");
626 void RttiBaseClassDescriptorNode::output(OutputStream
&OS
,
627 OutputFlags Flags
) const {
628 OS
<< "`RTTI Base Class Descriptor at (";
629 OS
<< NVOffset
<< ", " << VBPtrOffset
<< ", " << VBTableOffset
<< ", "
634 void LocalStaticGuardVariableNode::output(OutputStream
&OS
,
635 OutputFlags Flags
) const {
636 Name
->output(OS
, Flags
);
639 void VcallThunkIdentifierNode::output(OutputStream
&OS
,
640 OutputFlags Flags
) const {
641 OS
<< "`vcall'{" << OffsetInVTable
<< ", {flat}}";
644 void SpecialTableSymbolNode::output(OutputStream
&OS
, OutputFlags Flags
) const {
645 outputQualifiers(OS
, Quals
, false, true);
646 Name
->output(OS
, Flags
);
649 TargetName
->output(OS
, Flags
);