summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/MicrosoftCXXABI.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2012-10-16 22:56:05 +0000
committerDavid Blaikie <dblaikie@gmail.com>2012-10-16 22:56:05 +0000
commiteb7d598cec1564d33e47e3950d736d766eb918cf (patch)
treeefcba0d9210352d524460306e82c64dce66fbe4b /clang/lib/CodeGen/MicrosoftCXXABI.cpp
parent4df59a9ff8363e78e9cd69727fe53d0e58b78903 (diff)
downloadbcm5719-llvm-eb7d598cec1564d33e47e3950d736d766eb918cf.tar.gz
bcm5719-llvm-eb7d598cec1564d33e47e3950d736d766eb918cf.zip
PR13684: Emit vtable entries for deleted functions as __cxa_deleted_function.
This is consistent/interoperable with GCC 4.7 (& __cxa_deleted_function isn't present in 4.4 - not sure when it got added, but you'll need something with that function available for this to work). llvm-svn: 166069
Diffstat (limited to 'clang/lib/CodeGen/MicrosoftCXXABI.cpp')
-rw-r--r--clang/lib/CodeGen/MicrosoftCXXABI.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/MicrosoftCXXABI.cpp b/clang/lib/CodeGen/MicrosoftCXXABI.cpp
index 2c8173ba384..3d21787d0a8 100644
--- a/clang/lib/CodeGen/MicrosoftCXXABI.cpp
+++ b/clang/lib/CodeGen/MicrosoftCXXABI.cpp
@@ -29,6 +29,9 @@ public:
MicrosoftCXXABI(CodeGenModule &CGM) : CGCXXABI(CGM) {}
StringRef GetPureVirtualCallName() { return "_purecall"; }
+ // No known support for deleted functions in MSVC yet, so this choice is
+ // arbitrary.
+ StringRef GetDeletedVirtualCallName() { return "_purecall"; }
llvm::Value *adjustToCompleteObject(CodeGenFunction &CGF,
llvm::Value *ptr,
OpenPOWER on IntegriCloud