diff options
| author | Julian Büning <julian.buening@rwth-aachen.de> | 2020-09-05 19:59:17 +0200 |
|---|---|---|
| committer | MartinNowack <2443641+MartinNowack@users.noreply.github.com> | 2020-10-12 11:19:24 +0100 |
| commit | 86b784494cabd7ac8db1d02700a0d7be9ebd5351 (patch) | |
| tree | 7e96641ba23bf98e1d609bfeaaed6fa0798c59cb /lib/Core/ExecutionState.h | |
| parent | b157b068e27b5cdb389a63230c4d2be20f94e3f7 (diff) | |
| download | klee-86b784494cabd7ac8db1d02700a0d7be9ebd5351.tar.gz | |
address MartinNowack's remaining feedback
Diffstat (limited to 'lib/Core/ExecutionState.h')
| -rw-r--r-- | lib/Core/ExecutionState.h | 9 |
1 files changed, 5 insertions, 4 deletions
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<UnwindingInformation> cloned() const = 0; + virtual std::unique_ptr<UnwindingInformation> clone() const = 0; }; struct SearchPhaseUnwindingInformation : public UnwindingInformation { @@ -101,7 +102,7 @@ struct SearchPhaseUnwindingInformation : public UnwindingInformation { UnwindingInformation::Kind::SearchPhase), unwindingProgress(unwindingProgress) {} - std::unique_ptr<UnwindingInformation> cloned() const { + std::unique_ptr<UnwindingInformation> clone() const { return std::make_unique<SearchPhaseUnwindingInformation>(*this); } @@ -132,7 +133,7 @@ struct CleanupPhaseUnwindingInformation : public UnwindingInformation { selectorValue(selectorValue), catchingStackIndex(catchingStackIndex) {} - std::unique_ptr<UnwindingInformation> cloned() const { + std::unique_ptr<UnwindingInformation> clone() const { return std::make_unique<CleanupPhaseUnwindingInformation>(*this); } |
