summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver
diff options
context:
space:
mode:
authorPaul Robinson <paul.robinson@sony.com>2017-09-28 18:37:02 +0000
committerPaul Robinson <paul.robinson@sony.com>2017-09-28 18:37:02 +0000
commit1787f8122125762fb4e492f72e7c886e6e80d019 (patch)
treefb7a77dfefd9aa3ba2ad247ebb36360ca94fe760 /clang/lib/Driver
parent2095e6085124aeedf3de1511ec16e2a29845500d (diff)
downloadbcm5719-llvm-1787f8122125762fb4e492f72e7c886e6e80d019.tar.gz
bcm5719-llvm-1787f8122125762fb4e492f72e7c886e6e80d019.zip
[DWARF] Allow forward declarations of a class template instantiation
to have child entries describing the template parameters. This will be on by default for SCE tuning. Differential Revision: https://reviews.llvm.org/D14358 llvm-svn: 314444
Diffstat (limited to 'clang/lib/Driver')
-rw-r--r--clang/lib/Driver/ToolChains/Clang.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/Driver/ToolChains/Clang.cpp b/clang/lib/Driver/ToolChains/Clang.cpp
index 8cb598ad0bd..90d912511e9 100644
--- a/clang/lib/Driver/ToolChains/Clang.cpp
+++ b/clang/lib/Driver/ToolChains/Clang.cpp
@@ -2969,6 +2969,11 @@ static void RenderDebugOptions(const ToolChain &TC, const Driver &D,
CmdArgs.push_back("-generate-type-units");
}
+ // Decide how to render forward declarations of template instantiations.
+ // SCE wants full descriptions, others just get them in the name.
+ if (DebuggerTuning == llvm::DebuggerKind::SCE)
+ CmdArgs.push_back("-debug-forward-template-params");
+
RenderDebugInfoCompressionArgs(Args, CmdArgs, D);
}
OpenPOWER on IntegriCloud