aboutsummaryrefslogtreecommitdiff
path: root/contrib/llvm-project/lldb/docs/_lldb/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm-project/lldb/docs/_lldb/__init__.py')
-rw-r--r--contrib/llvm-project/lldb/docs/_lldb/__init__.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/llvm-project/lldb/docs/_lldb/__init__.py b/contrib/llvm-project/lldb/docs/_lldb/__init__.py
new file mode 100644
index 000000000000..0c3cfe89a8a4
--- /dev/null
+++ b/contrib/llvm-project/lldb/docs/_lldb/__init__.py
@@ -0,0 +1,9 @@
+from unittest.mock import Mock
+import sys
+import types
+
+# This package acts as a mock implementation of the native _lldb module so
+# that generating the LLDB documentation doesn't actually require building all
+# of LLDB.
+module_name = "_lldb"
+sys.modules[module_name] = Mock()