File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -72,6 +72,11 @@ static cl::opt<bool>
7272 cl::desc (" Strip debugger symbol info from executable" ),
7373 cl::init(false ), cl::cat(klee::ModuleCat));
7474
75+ static cl::opt<bool >
76+ StripDebugDeclare (" strip-debug-declare" ,
77+ cl::desc (" Strip all llvm.dbg.declare intrinsics" ),
78+ cl::init(true ), cl::cat(klee::ModuleCat));
79+
7580static cl::alias A1 (" S" , cl::desc(" Alias for --strip-debug" ),
7681 cl::aliasopt(StripDebug));
7782
@@ -98,6 +103,8 @@ static void AddStandardCompilePasses(legacy::PassManager &PM) {
98103 // If the -strip-debug command line option was specified, do it.
99104 if (StripDebug)
100105 addPass (PM, createStripSymbolsPass (true ));
106+ if (StripDebugDeclare)
107+ addPass (PM, createStripDebugDeclarePass ());
101108
102109 addPass (PM, createCFGSimplificationPass ()); // Clean up disgusting code
103110 addPass (PM, createPromoteMemoryToRegisterPass ()); // Kill useless allocas
You can’t perform that action at this time.
0 commit comments