diff options
author | David Majnemer <david.majnemer@gmail.com> | 2013-12-12 23:12:01 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2013-12-12 23:12:01 +0000 |
commit | 0834f13c95b536d63acb7d154d1860a32dc4fef5 (patch) | |
tree | 885185dd06deb89c95da251f5cae7823cb7ac1fd /clang/lib/AST/MicrosoftMangle.cpp | |
parent | 4431fe6becb0f87723cb7c008b6909355e414d80 (diff) | |
download | bcm5719-llvm-0834f13c95b536d63acb7d154d1860a32dc4fef5.tar.gz bcm5719-llvm-0834f13c95b536d63acb7d154d1860a32dc4fef5.zip |
[-cxx-abi microsoft] Mangle reference temporaries
They are mangled the same as normal references, nothing special is going
on here.
llvm-svn: 197184
Diffstat (limited to 'clang/lib/AST/MicrosoftMangle.cpp')
-rw-r--r-- | clang/lib/AST/MicrosoftMangle.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/clang/lib/AST/MicrosoftMangle.cpp b/clang/lib/AST/MicrosoftMangle.cpp index 24eac84cdd2..a02571e8a0a 100644 --- a/clang/lib/AST/MicrosoftMangle.cpp +++ b/clang/lib/AST/MicrosoftMangle.cpp @@ -2040,10 +2040,9 @@ void MicrosoftMangleContextImpl::mangleCXXDtor(const CXXDestructorDecl *D, } void MicrosoftMangleContextImpl::mangleReferenceTemporary(const VarDecl *VD, - raw_ostream &) { - unsigned DiagID = getDiags().getCustomDiagID(DiagnosticsEngine::Error, - "cannot mangle this reference temporary yet"); - getDiags().Report(VD->getLocation(), DiagID); + raw_ostream &Out) { + MicrosoftCXXNameMangler mangler(*this, Out); + mangler.mangle(VD); } void MicrosoftMangleContextImpl::mangleStaticGuardVariable(const VarDecl *VD, |