Skip to content

Commit 77b31bd

Browse files
committed
Copy subprogram from original function
This allows DWARF debug info to be emitted for functions.
1 parent 652c3f0 commit 77b31bd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Transforms/Instrumentation/FilPizlonator.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10056,6 +10056,7 @@ class Pizlonator {
1005610056
GlobalValue::InternalLinkage, F->getAddressSpace(),
1005710057
"pizlonatedFI_" + F->getName(), &M);
1005810058
FunctionToHiddenFunction[F] = NewF;
10059+
NewF->setSubprogram(F->getSubprogram());
1005910060

1006010061
PutImplIntoComdat(F, NewF);
1006110062

0 commit comments

Comments
 (0)