diff options
author | Adrian Prantl <aprantl@apple.com> | 2016-04-28 17:21:56 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2016-04-28 17:21:56 +0000 |
commit | 06f445d65b44e30be072d757edb8299d239eca31 (patch) | |
tree | 6a1556a9a4b03742038b32441fa9f89c41c2a04f /clang/test/CodeGen/instrument-functions.c | |
parent | 3afb26688656fbdc37d43fc938d89fe936bb579c (diff) | |
download | bcm5719-llvm-06f445d65b44e30be072d757edb8299d239eca31.tar.gz bcm5719-llvm-06f445d65b44e30be072d757edb8299d239eca31.zip |
Debug info: Apply an artificial debug location to __cyg_profile_func.* calls.
The LLVM Verifier expects all inlinable calls in debuggable functions to
have a location.
rdar://problem/25818489
llvm-svn: 267904
Diffstat (limited to 'clang/test/CodeGen/instrument-functions.c')
-rw-r--r-- | clang/test/CodeGen/instrument-functions.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/CodeGen/instrument-functions.c b/clang/test/CodeGen/instrument-functions.c index d80385e2239..454dc4de522 100644 --- a/clang/test/CodeGen/instrument-functions.c +++ b/clang/test/CodeGen/instrument-functions.c @@ -1,9 +1,9 @@ -// RUN: %clang_cc1 -S -emit-llvm -o - %s -finstrument-functions | FileCheck %s +// RUN: %clang_cc1 -S -debug-info-kind=standalone -emit-llvm -o - %s -finstrument-functions | FileCheck %s // CHECK: @test1 int test1(int x) { -// CHECK: __cyg_profile_func_enter -// CHECK: __cyg_profile_func_exit +// CHECK: call void @__cyg_profile_func_enter({{.*}}, !dbg +// CHECK: call void @__cyg_profile_func_exit({{.*}}, !dbg // CHECK: ret return x; } |