May 2015
Intermediate to advanced
296 pages
5h 10m
English
In this recipe, we will look at some more transformational passes, which are more like of utility passes. We will look at the strip-debug-symbols pass and the prune-eh pass.
The opt tool must be installed.
$ cat teststripdebug.ll @x = common global i32 0 ; <i32*> [#uses=0] define void @foo() nounwind readnone optsize ssp { entry: tail call void @llvm.dbg.value(metadata i32 0, i64 0, metadata !5, metadata !{}), !dbg !10 ret void, !dbg !11 } declare void @llvm.dbg.value(metadata, i64, metadata, metadata) nounwind readnone !llvm.dbg.cu = !{!2} !llvm.module.flags = !{!13} !llvm.dbg.sp = !{!0} ...
Read now
Unlock full access