summaryrefslogtreecommitdiff
path: root/lldb/test/Shell/ScriptInterpreter/Python/Inputs/FormatterBytecode/MyOptional.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2024-12-06 15:34:03 -0800
committerAdrian Prantl <aprantl@apple.com>2024-12-06 15:34:12 -0800
commit8ab76a47b242addc82109a3b3b6de9c3d6426eca (patch)
tree1ecfe9319c53aeca54c7a638b9a2339fb0b9f46e /lldb/test/Shell/ScriptInterpreter/Python/Inputs/FormatterBytecode/MyOptional.cpp
parent9ac52ce8d6cb7adcb5f3981952e39207c5b9588a (diff)
Revert "[lldb] Add a compiler/interpreter of LLDB data formatter bytecode to examples"
This reverts commit 7e3da87ca896484a11ac09df297183147154ac91. I managed to break the bots.
Diffstat (limited to 'lldb/test/Shell/ScriptInterpreter/Python/Inputs/FormatterBytecode/MyOptional.cpp')
-rw-r--r--lldb/test/Shell/ScriptInterpreter/Python/Inputs/FormatterBytecode/MyOptional.cpp23
1 files changed, 0 insertions, 23 deletions
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 <typename T> struct MyOptionalStorage {
- MyOptionalStorage(T val) : value(val), hasVal(true) {}
- MyOptionalStorage() {}
- T value;
- bool hasVal = false;
-};
-
-template <typename T> struct MyOptional {
- MyOptionalStorage<T> Storage;
- MyOptional(T val) : Storage(val) {}
- MyOptional() {}
- T &operator*() { return Storage.value; }
-};
-
-void stop() {}
-
-int main(int argc, char **argv) {
- MyOptional<int> x, y = 42;
- stop(); // break here
- return *y;
-}