[llvm] [RemoveDIs] Add flag to control loading into new debug mode from bitcode (PR #85649)

Carlos Alberto Enciso via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 19 02:11:31 PDT 2024


================
@@ -100,6 +100,13 @@ static cl::opt<bool> ExpandConstantExprs(
     cl::desc(
         "Expand constant expressions to instructions for testing purposes"));
 
+/// Load bitcode directly into RemoveDIs format (use debug records instead
+/// of debug intrinsics). UNSET is treated as FALSE, so the default action
+/// is to do nothing. Individual tools can override this to incrementally add
+/// support for the RemoveDIs format.
+cl::opt<cl::boolOrDefault> LoadBitcodeIntoNewDbgInforFormat(
+    "load-bitcode-into-experimental-debuginfo-iterators", cl::Hidden);
+
----------------
CarlosAlbertoEnciso wrote:

May be to keep consistency with the previous options, include `cl::desc`.

https://github.com/llvm/llvm-project/pull/85649


More information about the llvm-commits mailing list