mirror of https://github.com/microsoft/clang.git
Disable pubnames in NVPTX debug info using metadata
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@339968 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1d9326169c
commit
18639d8d29
|
@ -579,8 +579,11 @@ void CGDebugInfo::CreateCompileUnit() {
|
|||
CGOpts.DwarfDebugFlags, RuntimeVers,
|
||||
CGOpts.EnableSplitDwarf ? "" : CGOpts.SplitDwarfFile, EmissionKind,
|
||||
0 /* DWOid */, CGOpts.SplitDwarfInlining, CGOpts.DebugInfoForProfiling,
|
||||
CGOpts.GnuPubnames ? llvm::DICompileUnit::DebugNameTableKind::GNU
|
||||
: llvm::DICompileUnit::DebugNameTableKind::Default);
|
||||
CGM.getTarget().getTriple().isNVPTX()
|
||||
? llvm::DICompileUnit::DebugNameTableKind::None
|
||||
: CGOpts.GnuPubnames
|
||||
? llvm::DICompileUnit::DebugNameTableKind::GNU
|
||||
: llvm::DICompileUnit::DebugNameTableKind::Default);
|
||||
}
|
||||
|
||||
llvm::DIType *CGDebugInfo::CreateType(const BuiltinType *BT) {
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
// RUN: %clang_cc1 -triple nvptx-unknown-unknown -S -o - -debug-info-kind=limited %s -emit-llvm | FileCheck %s
|
||||
|
||||
// CHECK: DICompileUnit({{.*}}, nameTableKind: None)
|
||||
|
||||
void f1(void) {
|
||||
}
|
Loading…
Reference in New Issue