summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/MicrosoftMangle.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2011-04-14 20:06:49 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2011-04-14 20:06:49 +0000
commit231e875b5c44db3197d548b8b7c16d1bc3d8a81e (patch)
treee3e1f7f51788639d1223864f031d251d347c038d /clang/lib/AST/MicrosoftMangle.cpp
parentfdc33cbecd636a9218c30aed114ac6cfce6464f0 (diff)
downloadbcm5719-llvm-231e875b5c44db3197d548b8b7c16d1bc3d8a81e.tar.gz
bcm5719-llvm-231e875b5c44db3197d548b8b7c16d1bc3d8a81e.zip
Implement ARM pcs attribute. Basically it's another way of calling convention selection (AAPCS or
AAPCS+VFP), similar to fastcall / stdcall / whatevercall seen on x86. In particular, all library functions should always be AAPCS regardless of floating point ABI used. llvm-svn: 129534
Diffstat (limited to 'clang/lib/AST/MicrosoftMangle.cpp')
-rw-r--r--clang/lib/AST/MicrosoftMangle.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/AST/MicrosoftMangle.cpp b/clang/lib/AST/MicrosoftMangle.cpp
index 5b4dc5a1913..445d975625b 100644
--- a/clang/lib/AST/MicrosoftMangle.cpp
+++ b/clang/lib/AST/MicrosoftMangle.cpp
@@ -874,6 +874,8 @@ void MicrosoftCXXNameMangler::mangleCallingConvention(const FunctionType *T,
if (CC == CC_Default)
CC = IsInstMethod ? getASTContext().getDefaultMethodCallConv() : CC_C;
switch (CC) {
+ default:
+ assert(0 && "Unsupported CC for mangling");
case CC_Default:
case CC_C: Out << 'A'; break;
case CC_X86Pascal: Out << 'C'; break;
OpenPOWER on IntegriCloud