search for: f_clone

Displaying 1 result from an estimated 1 matches for "f_clone".

Did you mean: __clone
2017 May 03
3
Should it be legal for two functions to have the same !dbg attachment?
...we will need to re-parent all of the function's DILocations into the cloned DISubprogram) I wanted to get everyone's opinion on whether this is the right approach. tl;dr: Basically, when invoking CloneFunctionInto on: define void @f() !dbg !3 { ret void, !dbg !4 } define void @f_clone() !llvm.dbg.cu = !{!1} !1 = distinct !DICompileUnit(language: DW_LANG_C99, file: !2) !2 = !DIFile(filename: "t.c", directory: "/path/to/dir") !3 = distinct !DISubprogram(name: "foo", scope: !1, file: !2, unit: !1) !4 = !DILocation(line: 1, scope: !3) I woul...