[PATCH] [ms-cxxabi] Mangle function pointer arguments correctly

Richard Smith richard at metafoo.co.uk
Wed May 22 12:18:40 PDT 2013



================
Comment at: lib/AST/ASTContext.cpp:4186-4189
@@ +4185,6 @@
+  Qualifiers qs = PrettyArrayType->getIndexTypeQualifiers();
+  // MSVC seems to say that 'int x[4]' decays to 'int *const', which really only
+  // matters for C++ name mangling.
+  if (getTargetInfo().getCXXABI().isMicrosoft())
+    qs.addConst();
+  return getQualifiedType(PtrTy, qs);
----------------
Are you sure this isn't just a quirk of the way they mangle function parameter types?


http://llvm-reviews.chandlerc.com/D844



More information about the cfe-commits mailing list