[cfe-commits] [PATCH] [VCPP] Add __ptr64 qualifier
pravic
ehysta at gmail.com
Mon Nov 5 13:51:41 PST 2012
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';
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101.1.patch
Type: text/x-patch
Size: 407 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20121105/49470dc8/attachment.bin>
More information about the cfe-commits
mailing list