Hi cdavis5x,

Add "__ptr64" qualifier under X64 mode as VC++ does.


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

Files:
  lib/AST/MicrosoftMangle.cpp

Index: lib/AST/MicrosoftMangle.cpp
===================================================================
--- lib/AST/MicrosoftMangle.cpp
+++ lib/AST/MicrosoftMangle.cpp
@@ -1218,6 +1218,10 @@
           Out << 'U';
         else
           Out << 'Q';
+
+        // mangle __ptr64
+        if (getASTContext().getTargetInfo().getPointerWidth(0) == 64)
+          Out << 'E';
     }
   } else
     Out << 'Y';
Index: lib/AST/MicrosoftMangle.cpp
===================================================================
--- lib/AST/MicrosoftMangle.cpp
+++ lib/AST/MicrosoftMangle.cpp
@@ -1218,6 +1218,10 @@
           Out << 'U';
         else
           Out << 'Q';
+
+        // mangle __ptr64
+        if (getASTContext().getTargetInfo().getPointerWidth(0) == 64)
+          Out << 'E';
     }
   } else
     Out << 'Y';
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to