[SelectionDAGBuilder] Adds support for landingpads of token type
authorChen Li <meloli87@gmail.com>
Wed, 16 Dec 2015 04:48:42 +0000 (04:48 +0000)
committerChen Li <meloli87@gmail.com>
Wed, 16 Dec 2015 04:48:42 +0000 (04:48 +0000)
commit299345489e26c1bb0834b83569d11f72bb68b180
treeee7da3b80eea4250b34a283fc00706630bcc74a6
parent5b00f3232ba003e4dd899e3301499749c57992a2
[SelectionDAGBuilder] Adds support for landingpads of token type

Summary: This patch adds a check in visitLandingPad to see if landingpad's result type is token type. If so, do not create DAG nodes for its exception pointer and selector value. This patch enables the back end to handle landingpads of token type.

Reviewers: JosephTremoulet, majnemer, rnk

Subscribers: sanjoy, llvm-commits

Differential Revision: http://reviews.llvm.org/D15405

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255749 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
test/CodeGen/X86/inconsistent_landingpad.ll [new file with mode: 0644]
test/CodeGen/X86/token_landingpad.ll [new file with mode: 0644]