[clang] 7d64493 - [DebugInfo][test] Check specific func name to ignore codegen differences
Jinsong Ji via cfe-commits
cfe-commits at lists.llvm.org
Tue May 18 07:03:56 PDT 2021
Author: Jinsong Ji
Date: 2021-05-18T14:03:27Z
New Revision: 7d6449322ecba2fa34090ca8ed610328febee108
URL: https://github.com/llvm/llvm-project/commit/7d6449322ecba2fa34090ca8ed610328febee108
DIFF: https://github.com/llvm/llvm-project/commit/7d6449322ecba2fa34090ca8ed610328febee108.diff
LOG: [DebugInfo][test] Check specific func name to ignore codegen differences
We use `CHECK-LABEL: define` to divide input stream into functions,
this works well on most platforms.
But there are cases that some platforms (eg: AIX) may have different
codegen , especially for global constructor and descructors.
On AIX, the codegen will have two more functions: __dtor_b,
__finalize_b, which will fail the test.
The fix is to use specific function name so that we can safely ignore
those unrelated codegen differences.
Reviewed By: dblaikie
Differential Revision: https://reviews.llvm.org/D102654
Added:
Modified:
clang/test/CodeGenCXX/debug-info-line.cpp
Removed:
################################################################################
diff --git a/clang/test/CodeGenCXX/debug-info-line.cpp b/clang/test/CodeGenCXX/debug-info-line.cpp
index 3c09b94b0f8e8..2581ea0712af3 100644
--- a/clang/test/CodeGenCXX/debug-info-line.cpp
+++ b/clang/test/CodeGenCXX/debug-info-line.cpp
@@ -146,7 +146,7 @@ bar b[1] = { //
(fn(), //
bar())};
-// CHECK-LABEL: define
+// CHECK-LABEL: define{{.*}}f11
__complex double f11() {
__complex double f;
// CHECK: store {{.*}} !dbg [[DBG_F11:!.*]]
More information about the cfe-commits
mailing list