diff options
author | Jinsong Ji <jji@us.ibm.com> | 2021-05-18 14:03:26 +0000 |
---|---|---|
committer | Jinsong Ji <jji@us.ibm.com> | 2021-05-18 14:03:27 +0000 |
commit | 7d6449322ecba2fa34090ca8ed610328febee108 (patch) | |
tree | 85373db0fca20cedcac46e8281042f4bc7326bfd /clang/unittests/Frontend/CompilerInvocationTest.cpp | |
parent | 82f248d234a3363886600e239ff86aab4f76090d (diff) | |
download | llvm-7d6449322ecba2fa34090ca8ed610328febee108.zip llvm-7d6449322ecba2fa34090ca8ed610328febee108.tar.gz llvm-7d6449322ecba2fa34090ca8ed610328febee108.tar.bz2 |
[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
Diffstat (limited to 'clang/unittests/Frontend/CompilerInvocationTest.cpp')
0 files changed, 0 insertions, 0 deletions