This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rG64b2fb7967a7: [CSSPGO] Emit mangled dwarf names for line tables debug option under -fpseudo… (authored by hoy).
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D103909/new/ https://reviews.llvm.org/D103909 Files: clang/lib/CodeGen/CGDebugInfo.cpp clang/test/CodeGen/debug-info-pseudo-probe.cpp Index: clang/test/CodeGen/debug-info-pseudo-probe.cpp =================================================================== --- /dev/null +++ clang/test/CodeGen/debug-info-pseudo-probe.cpp @@ -0,0 +1,12 @@ +// This test checks if a symbol gets mangled dwarf names with -fpseudo-probe-for-profiling option. +// RUN: %clang_cc1 -triple x86_64 -x c++ -S -emit-llvm -debug-info-kind=line-tables-only -o - < %s | FileCheck %s --check-prefix=PLAIN +// RUN: %clang_cc1 -triple x86_64 -x c++ -S -emit-llvm -debug-info-kind=line-tables-only -fpseudo-probe-for-profiling -o - < %s | FileCheck %s --check-prefix=MANGLE + +int foo() { + return 0; +} + +// PLAIN: define dso_local i32 @_Z3foov() +// PLAIN: distinct !DISubprogram(name: "foo", scope: +// MANGLE: define dso_local i32 @_Z3foov() +// MANGLE: distinct !DISubprogram(name: "foo", linkageName: "_Z3foov" Index: clang/lib/CodeGen/CGDebugInfo.cpp =================================================================== --- clang/lib/CodeGen/CGDebugInfo.cpp +++ clang/lib/CodeGen/CGDebugInfo.cpp @@ -3551,6 +3551,7 @@ if (LinkageName == Name || (!CGM.getCodeGenOpts().EmitGcovArcs && !CGM.getCodeGenOpts().EmitGcovNotes && !CGM.getCodeGenOpts().DebugInfoForProfiling && + !CGM.getCodeGenOpts().PseudoProbeForProfiling && DebugKind <= codegenoptions::DebugLineTablesOnly)) LinkageName = StringRef();
Index: clang/test/CodeGen/debug-info-pseudo-probe.cpp =================================================================== --- /dev/null +++ clang/test/CodeGen/debug-info-pseudo-probe.cpp @@ -0,0 +1,12 @@ +// This test checks if a symbol gets mangled dwarf names with -fpseudo-probe-for-profiling option. +// RUN: %clang_cc1 -triple x86_64 -x c++ -S -emit-llvm -debug-info-kind=line-tables-only -o - < %s | FileCheck %s --check-prefix=PLAIN +// RUN: %clang_cc1 -triple x86_64 -x c++ -S -emit-llvm -debug-info-kind=line-tables-only -fpseudo-probe-for-profiling -o - < %s | FileCheck %s --check-prefix=MANGLE + +int foo() { + return 0; +} + +// PLAIN: define dso_local i32 @_Z3foov() +// PLAIN: distinct !DISubprogram(name: "foo", scope: +// MANGLE: define dso_local i32 @_Z3foov() +// MANGLE: distinct !DISubprogram(name: "foo", linkageName: "_Z3foov" Index: clang/lib/CodeGen/CGDebugInfo.cpp =================================================================== --- clang/lib/CodeGen/CGDebugInfo.cpp +++ clang/lib/CodeGen/CGDebugInfo.cpp @@ -3551,6 +3551,7 @@ if (LinkageName == Name || (!CGM.getCodeGenOpts().EmitGcovArcs && !CGM.getCodeGenOpts().EmitGcovNotes && !CGM.getCodeGenOpts().DebugInfoForProfiling && + !CGM.getCodeGenOpts().PseudoProbeForProfiling && DebugKind <= codegenoptions::DebugLineTablesOnly)) LinkageName = StringRef();
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits