jsji created this revision. jsji added reviewers: PowerPC, dblaikie, shchenz. jsji requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits.
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. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D102654 Files: clang/test/CodeGenCXX/debug-info-line.cpp Index: clang/test/CodeGenCXX/debug-info-line.cpp =================================================================== --- clang/test/CodeGenCXX/debug-info-line.cpp +++ clang/test/CodeGenCXX/debug-info-line.cpp @@ -146,7 +146,7 @@ (fn(), // bar())}; -// CHECK-LABEL: define +// CHECK-LABEL: f11 __complex double f11() { __complex double f; // CHECK: store {{.*}} !dbg [[DBG_F11:!.*]]
Index: clang/test/CodeGenCXX/debug-info-line.cpp =================================================================== --- clang/test/CodeGenCXX/debug-info-line.cpp +++ clang/test/CodeGenCXX/debug-info-line.cpp @@ -146,7 +146,7 @@ (fn(), // bar())}; -// CHECK-LABEL: define +// CHECK-LABEL: f11 __complex double f11() { __complex double f; // CHECK: store {{.*}} !dbg [[DBG_F11:!.*]]
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits