diff options
| author | David Blaikie <dblaikie@gmail.com> | 2013-05-13 06:57:50 +0000 |
|---|---|---|
| committer | David Blaikie <dblaikie@gmail.com> | 2013-05-13 06:57:50 +0000 |
| commit | f8aa155e40bc98844f46ecbfdbe430696c36ce24 (patch) | |
| tree | 987c628a7f76a351ae9e45e141f6948b237b325b /lib/CodeGen/CGDebugInfo.cpp | |
| parent | 6af701f29be43e49a25ab098c79940ae4cbb69c7 (diff) | |
| download | clang-f8aa155e40bc98844f46ecbfdbe430696c36ce24.tar.gz clang-f8aa155e40bc98844f46ecbfdbe430696c36ce24.tar.bz2 clang-f8aa155e40bc98844f46ecbfdbe430696c36ce24.tar.xz | |
Debug Info: PR14992: Support values for non-type template parameters of function type
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181685 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
| -rw-r--r-- | lib/CodeGen/CGDebugInfo.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index 13b681edc9..583b23980e 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -1220,9 +1220,11 @@ CollectTemplateParams(const TemplateParameterList *TPList, V = CGM.GetAddrOfGlobalVar(VD); // Member function pointers have special support for building them, though // this is currently unsupported in LLVM CodeGen. - if (InstanceMember) + if (InstanceMember) { if (const CXXMethodDecl *method = dyn_cast<CXXMethodDecl>(D)) V = CGM.getCXXABI().EmitMemberPointer(method); + } else if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) + V = CGM.GetAddrOfFunction(FD); // Member data pointers have special handling too to compute the fixed // offset within the object. if (isa<FieldDecl>(D)) { |
