summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/MicrosoftMangle.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2013-12-13 00:39:38 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2013-12-13 00:39:38 +0000
commit210e6bfa19ab68b75992ba5d6ebfb9d377237de3 (patch)
tree36cc841167dbd29248c5de09cac02fa934fe0fc7 /clang/lib/AST/MicrosoftMangle.cpp
parent25eec2cc75ca6ce139e138550bd11f64bf5966a7 (diff)
downloadbcm5719-llvm-210e6bfa19ab68b75992ba5d6ebfb9d377237de3.tar.gz
bcm5719-llvm-210e6bfa19ab68b75992ba5d6ebfb9d377237de3.zip
Revert "[-cxx-abi microsoft] Mangle reference temporaries"
This reverts commit r197184. Richard Smith brings up some good points, a proper implementation will require us to mangle unnameable entities compatibly with MSVC. llvm-svn: 197192
Diffstat (limited to 'clang/lib/AST/MicrosoftMangle.cpp')
-rw-r--r--clang/lib/AST/MicrosoftMangle.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/lib/AST/MicrosoftMangle.cpp b/clang/lib/AST/MicrosoftMangle.cpp
index a02571e8a0a..24eac84cdd2 100644
--- a/clang/lib/AST/MicrosoftMangle.cpp
+++ b/clang/lib/AST/MicrosoftMangle.cpp
@@ -2040,9 +2040,10 @@ void MicrosoftMangleContextImpl::mangleCXXDtor(const CXXDestructorDecl *D,
}
void MicrosoftMangleContextImpl::mangleReferenceTemporary(const VarDecl *VD,
- raw_ostream &Out) {
- MicrosoftCXXNameMangler mangler(*this, Out);
- mangler.mangle(VD);
+ raw_ostream &) {
+ unsigned DiagID = getDiags().getCustomDiagID(DiagnosticsEngine::Error,
+ "cannot mangle this reference temporary yet");
+ getDiags().Report(VD->getLocation(), DiagID);
}
void MicrosoftMangleContextImpl::mangleStaticGuardVariable(const VarDecl *VD,
OpenPOWER on IntegriCloud