Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / debug-info-oslog.c
blob49c361ae9d5aa49e220b092e4c987fc166906561
1 // RUN: %clang_cc1 -triple x86_64-darwin-apple -debug-info-kind=limited \
2 // RUN: %s -emit-llvm -o - | FileCheck %s
3 void test_builtin_os_log(void *buf, int i, const char *data) {
4 __builtin_os_log_format(buf, "%d", i);
7 // CHECK: define linkonce_odr {{.*}}@__os_log_helper_1_0_1_4_0(
8 // CHECK-SAME: !dbg ![[OS_LOG_HELPER:[0-9]+]]
10 // This helper is going to be uniqued, so it should not have a line
11 // number between file and type.
13 // CHECK: distinct !DISubprogram(linkageName: "__os_log_helper_1_0_1_4_0",
14 // CHECK-SAME: file: !{{.*}}, type
15 // CHECK-SAME: flags: DIFlagArtificial