From b504c8771f238883ef6c7234d741c2dc1d885ae3 Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Fri, 6 Dec 2024 16:26:55 -0800 Subject: Revert "[lldb] Add a compiler/interpreter of LLDB data formatter bytecode to examples" This reverts commit 60380cd27c6fa5ed6e39866c51b18a64bc4d566a. --- .../Python/Inputs/FormatterBytecode/MyOptional.cpp | 23 ---------------------- 1 file changed, 23 deletions(-) delete mode 100644 lldb/test/Shell/ScriptInterpreter/Python/Inputs/FormatterBytecode/MyOptional.cpp (limited to 'lldb/test/Shell/ScriptInterpreter/Python/Inputs/FormatterBytecode/MyOptional.cpp') diff --git a/lldb/test/Shell/ScriptInterpreter/Python/Inputs/FormatterBytecode/MyOptional.cpp b/lldb/test/Shell/ScriptInterpreter/Python/Inputs/FormatterBytecode/MyOptional.cpp deleted file mode 100644 index abba34439d88..000000000000 --- a/lldb/test/Shell/ScriptInterpreter/Python/Inputs/FormatterBytecode/MyOptional.cpp +++ /dev/null @@ -1,23 +0,0 @@ -// A bare-bones llvm::Optional reimplementation. - -template struct MyOptionalStorage { - MyOptionalStorage(T val) : value(val), hasVal(true) {} - MyOptionalStorage() {} - T value; - bool hasVal = false; -}; - -template struct MyOptional { - MyOptionalStorage Storage; - MyOptional(T val) : Storage(val) {} - MyOptional() {} - T &operator*() { return Storage.value; } -}; - -void stop() {} - -int main(int argc, char **argv) { - MyOptional x, y = 42; - stop(); // break here - return *y; -} -- cgit v1.2.3