summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/MicrosoftMangle.cpp
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-05-11 22:10:52 +0000
committerAlp Toker <alp@nuanti.com>2014-05-11 22:10:52 +0000
commitc7dc0621a7cafc2f1391863cf0d2daa9d925f55e (patch)
tree9de47737904d81ed5337b9b6e3fef49874ceeeb0 /clang/lib/AST/MicrosoftMangle.cpp
parenta90ee35a8e245feea5d60639a1d4aba84fa040d7 (diff)
downloadbcm5719-llvm-c7dc0621a7cafc2f1391863cf0d2daa9d925f55e.tar.gz
bcm5719-llvm-c7dc0621a7cafc2f1391863cf0d2daa9d925f55e.zip
Make DiagnosticsEngine non-copyable
Also provide an out-of-line dtor for CompilerInvocation. Cleanup work that may help reduce header inclusion for IntrusiveRefCntPtr. llvm-svn: 208512
Diffstat (limited to 'clang/lib/AST/MicrosoftMangle.cpp')
-rw-r--r--clang/lib/AST/MicrosoftMangle.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/AST/MicrosoftMangle.cpp b/clang/lib/AST/MicrosoftMangle.cpp
index b615c6f17f4..8a857609754 100644
--- a/clang/lib/AST/MicrosoftMangle.cpp
+++ b/clang/lib/AST/MicrosoftMangle.cpp
@@ -791,7 +791,7 @@ void MicrosoftCXXNameMangler::mangleUnqualifiedName(const NamedDecl *ND,
case DeclarationName::CXXLiteralOperatorName: {
// FIXME: Was this added in VS2010? Does MS even know how to mangle this?
- DiagnosticsEngine Diags = Context.getDiags();
+ DiagnosticsEngine &Diags = Context.getDiags();
unsigned DiagID = Diags.getCustomDiagID(DiagnosticsEngine::Error,
"cannot mangle this literal operator yet");
Diags.Report(ND->getLocation(), DiagID);
@@ -822,7 +822,7 @@ void MicrosoftCXXNameMangler::mangleNestedName(const NamedDecl *ND) {
}
if (const BlockDecl *BD = dyn_cast<BlockDecl>(DC)) {
- DiagnosticsEngine Diags = Context.getDiags();
+ DiagnosticsEngine &Diags = Context.getDiags();
unsigned DiagID =
Diags.getCustomDiagID(DiagnosticsEngine::Error,
"cannot mangle a local inside this block yet");
OpenPOWER on IntegriCloud