summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2019-10-30 14:54:54 -0700
committerLang Hames <lhames@gmail.com>2019-10-30 17:57:03 -0700
commit58e66f2f6375dd3c63f5854abd908298a73851d9 (patch)
tree200ecfa1471d875cab718d0a68753af1dc6ac392 /llvm/lib/ExecutionEngine
parent004ed2b0d1b86d424643ffc88fce20ad8bab6804 (diff)
downloadbcm5719-llvm-58e66f2f6375dd3c63f5854abd908298a73851d9.tar.gz
bcm5719-llvm-58e66f2f6375dd3c63f5854abd908298a73851d9.zip
[JITLink] Move block ownership from LinkGraph to Section.
This enables easy iteration over blocks in a specific section.
Diffstat (limited to 'llvm/lib/ExecutionEngine')
-rw-r--r--llvm/lib/ExecutionEngine/JITLink/JITLink.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/ExecutionEngine/JITLink/JITLink.cpp b/llvm/lib/ExecutionEngine/JITLink/JITLink.cpp
index ab45d33fe29..9df79670d9f 100644
--- a/llvm/lib/ExecutionEngine/JITLink/JITLink.cpp
+++ b/llvm/lib/ExecutionEngine/JITLink/JITLink.cpp
@@ -145,10 +145,6 @@ void printEdge(raw_ostream &OS, const Block &B, const Edge &E,
Section::~Section() {
for (auto *Sym : Symbols)
Sym->~Symbol();
-}
-
-LinkGraph::~LinkGraph() {
- // Destroy blocks.
for (auto *B : Blocks)
B->~Block();
}
OpenPOWER on IntegriCloud