Make ISelPosition a local variable.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Fri, 20 Apr 2012 22:08:50 +0000 (22:08 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Fri, 20 Apr 2012 22:08:50 +0000 (22:08 +0000)
commit8c48e4ff899303eb9a4ea8ed1c43d175f0cf48ff
tree1d7abb045603aadda7bb4e411bf834dd3fc9f12c
parentbc7d448f242b1bbc1031fb87cd69c285ff9aaffa
Make ISelPosition a local variable.

Now that multiple DAGUpdateListeners can be active at the same time,
ISelPosition can become a local variable in DoInstructionSelection.

We simply register an ISelUpdater with CurDAG while ISelPosition exists.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155249 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/SelectionDAGISel.h
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp