From 86b784494cabd7ac8db1d02700a0d7be9ebd5351 Mon Sep 17 00:00:00 2001 From: Julian Büning Date: Sat, 5 Sep 2020 19:59:17 +0200 Subject: address MartinNowack's remaining feedback --- lib/Core/ExecutionState.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'lib/Core/ExecutionState.h') diff --git a/lib/Core/ExecutionState.h b/lib/Core/ExecutionState.h index b3560caf..f91790d5 100644 --- a/lib/Core/ExecutionState.h +++ b/lib/Core/ExecutionState.h @@ -65,7 +65,8 @@ struct StackFrame { }; /// Contains information related to unwinding (Itanium ABI/2-Phase unwinding) -struct UnwindingInformation { +class UnwindingInformation { +public: enum class Kind { SearchPhase, // first phase CleanupPhase // second phase @@ -84,7 +85,7 @@ public: : kind(k), exceptionObject(exceptionObject) {} virtual ~UnwindingInformation() = default; - virtual std::unique_ptr cloned() const = 0; + virtual std::unique_ptr clone() const = 0; }; struct SearchPhaseUnwindingInformation : public UnwindingInformation { @@ -101,7 +102,7 @@ struct SearchPhaseUnwindingInformation : public UnwindingInformation { UnwindingInformation::Kind::SearchPhase), unwindingProgress(unwindingProgress) {} - std::unique_ptr cloned() const { + std::unique_ptr clone() const { return std::make_unique(*this); } @@ -132,7 +133,7 @@ struct CleanupPhaseUnwindingInformation : public UnwindingInformation { selectorValue(selectorValue), catchingStackIndex(catchingStackIndex) {} - std::unique_ptr cloned() const { + std::unique_ptr clone() const { return std::make_unique(*this); } -- cgit 1.4.1