summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
diff options
context:
space:
mode:
authorMichael Kruse <llvm@meinersbur.de>2017-06-23 17:55:36 +0000
committerMichael Kruse <llvm@meinersbur.de>2017-06-23 17:55:36 +0000
commit7604d9add54f8de969d25336943713061bee12a2 (patch)
tree28a6fe9cdc60d18da9bcd55766e9b6334ff594e6 /lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
parentdfa436079f3120da27efef27ef4ff5a9f16f220e (diff)
downloadbcm5719-llvm-7604d9add54f8de969d25336943713061bee12a2.tar.gz
bcm5719-llvm-7604d9add54f8de969d25336943713061bee12a2.zip
[ScopBuilder] Pass ScopStmts around instead of BasicBlocks. NFC.
During the construction of MemoryAccesses in ScopBuilder, BasicBlocks were used in function parameters, assuming that the ScopStmt an be directly derived from it. This won't be true anymore once we split BasicBlocks into multiple ScopStmt. As a preparation for such a change in the future, we instead pass the ScopStmt and avoid the use of getStmtFor(). There are two occasions where a kind of mapping from BasicBlock to ScopStmt is still required. 1. Get the statement representing the incoming block of a `PHINode` using `getLastStmtOf`. 2. One statement is required to write a scalar to be readable by those which need it. This is most often the statement which contains its definition, which we get using `getStmtFor(Instruction*)`. Differential Revision: https://reviews.llvm.org/D34369 llvm-svn: 306132
Diffstat (limited to 'lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud