summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ASTContext.cpp
diff options
context:
space:
mode:
authorCharles Davis <cdavis@mines.edu>2010-11-09 18:04:24 +0000
committerCharles Davis <cdavis@mines.edu>2010-11-09 18:04:24 +0000
commit99202b358f364f8fc352152a4da609022f5f78a5 (patch)
treedf656b5e1d3b65d4394a602ee55f73bc2df8f04c /clang/lib/AST/ASTContext.cpp
parent27eb0bf2816d615b8ebeb7a57afbc16c2f007f4a (diff)
downloadbcm5719-llvm-99202b358f364f8fc352152a4da609022f5f78a5.tar.gz
bcm5719-llvm-99202b358f364f8fc352152a4da609022f5f78a5.zip
Use the right calling convention when mangling names in the Microsoft C++
mangler. Now member functions and pointers thereof have their calling convention mangled as __thiscall if they have the default CC (even though, they technically still have the __cdecl CC). llvm-svn: 118598
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
-rw-r--r--clang/lib/AST/ASTContext.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp
index b2451a2d867..0f449835412 100644
--- a/clang/lib/AST/ASTContext.cpp
+++ b/clang/lib/AST/ASTContext.cpp
@@ -5838,4 +5838,9 @@ bool ASTContext::DeclMustBeEmitted(const Decl *D) {
return true;
}
+CallingConv ASTContext::getDefaultMethodCallConv() {
+ // Pass through to the C++ ABI object
+ return ABI->getDefaultMethodCallConv();
+}
+
CXXABI::~CXXABI() {}
OpenPOWER on IntegriCloud