diff options
author | David Majnemer <david.majnemer@gmail.com> | 2013-08-09 05:09:04 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2013-08-09 05:09:04 +0000 |
commit | 94a76b64e066020aa819f821d972f90b8b1c4c6a (patch) | |
tree | 004b3fb4c8428ff2c2209d5829d8612f8e00d6cc /clang/lib/AST/MicrosoftMangle.cpp | |
parent | 908606d0a9194b9097a081e548ce43e12617a4db (diff) | |
download | bcm5719-llvm-94a76b64e066020aa819f821d972f90b8b1c4c6a.tar.gz bcm5719-llvm-94a76b64e066020aa819f821d972f90b8b1c4c6a.zip |
[-cxx-abi microsoft] Mangle UUIDs correctly, stick them in the proper section
We mangled them like:
L___uuid_12345678-1234-1234-1234-123456789abc
We should've mangled them like:
__GUID_12345678_1234_1234_1234_123456789abc
Furthermore, they are external symbols.
llvm-svn: 188053
Diffstat (limited to 'clang/lib/AST/MicrosoftMangle.cpp')
-rw-r--r-- | clang/lib/AST/MicrosoftMangle.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/clang/lib/AST/MicrosoftMangle.cpp b/clang/lib/AST/MicrosoftMangle.cpp index 8d7b76db5e9..45d60c620ef 100644 --- a/clang/lib/AST/MicrosoftMangle.cpp +++ b/clang/lib/AST/MicrosoftMangle.cpp @@ -317,10 +317,7 @@ void MicrosoftCXXNameMangler::mangleVariableEncoding(const VarDecl *VD) { // mangled as 'QAHA' instead of 'PAHB', for example. TypeLoc TL = VD->getTypeSourceInfo()->getTypeLoc(); QualType Ty = TL.getType(); - if (Ty->isPointerType() || Ty->isReferenceType()) { - mangleType(Ty, TL.getSourceRange(), QMM_Drop); - mangleQualifiers(Ty->getPointeeType().getQualifiers(), false); - } else if (const ArrayType *AT = getASTContext().getAsArrayType(Ty)) { + if (const ArrayType *AT = getASTContext().getAsArrayType(Ty)) { // Global arrays are funny, too. mangleDecayedArrayType(AT, true); if (AT->getElementType()->isArrayType()) |