break;
}
case OperatorTy::Vcall: {
- // [thunk]: __cdecl Base::`vcall'{8, {flat}}' }'
const VirtualMemberPtrThunk &Thunk =
static_cast<const VirtualMemberPtrThunk &>(Oper);
OS << "[thunk]: ";
if (FunctionClass & NoPrototype)
return;
- if (FunctionClass & VirtualThisAdjust) {
- OS << "`vtordisp{" << ThisAdjust->VtordispOffset << ", "
- << ThisAdjust->StaticOffset << "}'";
+ if (FunctionClass & StaticThisAdjust) {
+ OS << "`adjustor{" << ThisAdjust->StaticOffset << "}'";
+ } else if (FunctionClass & VirtualThisAdjust) {
+ if (FunctionClass & VirtualThisAdjustEx) {
+ OS << "`vtordispex{" << ThisAdjust->VBPtrOffset << ", "
+ << ThisAdjust->VBOffsetOffset << ", " << ThisAdjust->VtordispOffset
+ << ", " << ThisAdjust->StaticOffset << "}'";
+ } else {
+ OS << "`vtordisp{" << ThisAdjust->VtordispOffset << ", "
+ << ThisAdjust->StaticOffset << "}'";
+ }
}
OS << "(";
??_EBase@@UEAAPEAXI@Z
; CHECK: virtual void * __cdecl Base::`vector deleting dtor'(unsigned int)
-??_EDerived@@$4PPPPPPPM@A@EAAPEAXI@Z
-; CHECK: [thunk]: virtual void * __cdecl Derived::`vector deleting dtor'`vtordisp{-4, 0}'(unsigned int)
-
??_F?$SomeTemplate@H@@QAEXXZ
; CHECK: void __thiscall SomeTemplate<int>::`default ctor closure'(void)
--- /dev/null
+; RUN: llvm-undname < %s | FileCheck %s
+
+; CHECK-NOT: Invalid mangled name
+
+?f@C@@WBA@EAAHXZ
+; CHECK: [thunk]: virtual int __cdecl C::f`adjustor{16}'(void)
+
+??_EDerived@@$4PPPPPPPM@A@EAAPEAXI@Z
+; CHECK: [thunk]: virtual void * __cdecl Derived::`vector deleting dtor'`vtordisp{-4, 0}'(unsigned int)
+
+?f@A@simple@@$R477PPPPPPPM@7AEXXZ
+; CHECK: [thunk]: virtual void __thiscall simple::A::f`vtordispex{8, 8, -4, 8}'(void)
+
+??_9Base@@$B7AA
+; CHECK: [thunk]: __cdecl Base::`vcall'{8, {flat}}