aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2019-11-04 09:23:37 +0100
committerRaphael Isemann <teemperor@gmail.com>2019-11-04 09:23:37 +0100
commitdf12a75a19682cfeee12c38ae5113043dddffda8 (patch)
tree0100110f69fa7013f78f677d30b36e5f93665bee
parentae10661a8121558679463a57dd8661c81895f3ff (diff)
downloadllvm-df12a75a19682cfeee12c38ae5113043dddffda8.zip
llvm-df12a75a19682cfeee12c38ae5113043dddffda8.tar.gz
llvm-df12a75a19682cfeee12c38ae5113043dddffda8.tar.bz2
[lldb] Also disable de-registration of EHFrames in IRExecutionUnit
Summary: We disabled registration by providing an empty `registerEHFrames`, so we should also provide an empty `deregisterEHFrames` in case that function relies on `registerEHFrames` being called before. Currently `deregisterEHFrames` is a no-op anyway as it just iterates over the (empty( list of registered EHFrames and then clear the empty list. Reviewers: davide, JDevlieghere Reviewed By: JDevlieghere Subscribers: JDevlieghere, lldb-commits Tags: #upstreaming_lldb_s_downstream_patches, #lldb Differential Revision: https://reviews.llvm.org/D69713
-rw-r--r--lldb/include/lldb/Expression/IRExecutionUnit.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/include/lldb/Expression/IRExecutionUnit.h b/lldb/include/lldb/Expression/IRExecutionUnit.h
index beff44d..f3cb7e3 100644
--- a/lldb/include/lldb/Expression/IRExecutionUnit.h
+++ b/lldb/include/lldb/Expression/IRExecutionUnit.h
@@ -298,8 +298,10 @@ private:
return false;
}
+ // Ignore any EHFrame registration.
void registerEHFrames(uint8_t *Addr, uint64_t LoadAddr,
size_t Size) override {}
+ void deregisterEHFrames() override {}
uint64_t getSymbolAddress(const std::string &Name) override;