summaryrefslogtreecommitdiff
path: root/Userland/DevTools/UserspaceEmulator/ValueWithShadow.h
diff options
context:
space:
mode:
authorAli Mohammad Pur <ali.mpfard@gmail.com>2022-02-27 23:58:53 +0330
committerAndreas Kling <kling@serenityos.org>2022-03-04 20:07:05 +0100
commit70b53b44b2b0723a8a328aa04438faa5eab4a836 (patch)
treeb3688bcb71f913a07d85ce59c683262c75691d47 /Userland/DevTools/UserspaceEmulator/ValueWithShadow.h
parentf6e82a8e0a19b9d575f462bd5d34d831dd268bb3 (diff)
downloadserenity-70b53b44b2b0723a8a328aa04438faa5eab4a836.zip
UserspaceEmulator: Wrap the GPRs in ValueWithShadow
...instead of manually tracking their shadow data.
Diffstat (limited to 'Userland/DevTools/UserspaceEmulator/ValueWithShadow.h')
-rw-r--r--Userland/DevTools/UserspaceEmulator/ValueWithShadow.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/Userland/DevTools/UserspaceEmulator/ValueWithShadow.h b/Userland/DevTools/UserspaceEmulator/ValueWithShadow.h
index 7c64d3d6a1..e7ad1988a0 100644
--- a/Userland/DevTools/UserspaceEmulator/ValueWithShadow.h
+++ b/Userland/DevTools/UserspaceEmulator/ValueWithShadow.h
@@ -107,12 +107,6 @@ public:
{
}
- ValueAndShadowReference(T& value, T& shadow)
- : m_value(value)
- , m_shadow(*bit_cast<ShadowType*>(&shadow))
- {
- }
-
bool is_uninitialized() const
{
for (size_t i = 0; i < sizeof(ShadowType); ++i) {