summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2016-04-28 17:21:56 +0000
committerAdrian Prantl <aprantl@apple.com>2016-04-28 17:21:56 +0000
commit06f445d65b44e30be072d757edb8299d239eca31 (patch)
tree6a1556a9a4b03742038b32441fa9f89c41c2a04f /clang/lib/CodeGen/CodeGenFunction.cpp
parent3afb26688656fbdc37d43fc938d89fe936bb579c (diff)
downloadbcm5719-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/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp
index 29a513f2bdf..0ed425ba46a 100644
--- a/clang/lib/CodeGen/CodeGenFunction.cpp
+++ b/clang/lib/CodeGen/CodeGenFunction.cpp
@@ -401,6 +401,7 @@ bool CodeGenFunction::ShouldInstrumentFunction() {
/// instrumentation function with the current function and the call site, if
/// function instrumentation is enabled.
void CodeGenFunction::EmitFunctionInstrumentation(const char *Fn) {
+ auto NL = ApplyDebugLocation::CreateArtificial(*this);
// void __cyg_profile_func_{enter,exit} (void *this_fn, void *call_site);
llvm::PointerType *PointerTy = Int8PtrTy;
llvm::Type *ProfileFuncArgs[] = { PointerTy, PointerTy };
OpenPOWER on IntegriCloud