Fix setjmp on models with non-Small code model nor non-Static relocation model
authorMichael Liao <michael.liao@intel.com>
Wed, 17 Oct 2012 02:22:27 +0000 (02:22 +0000)
committerMichael Liao <michael.liao@intel.com>
Wed, 17 Oct 2012 02:22:27 +0000 (02:22 +0000)
commit281ae5abf57a4d318d308c0dd1326ff65d540b78
treee645a02ea0188674fb3dafaacd12786847f877db
parentd7ea7d5cd7518788dea698d38023959480c8263a
Fix setjmp on models with non-Small code model nor non-Static relocation model

- MBB address is only valid as an immediate value in Small & Static
  code/relocation models. On other models, LEA is needed to load IP address of
  the restore MBB.
- A minor fix of MBB in MC lowering is added as well to enable target
  relocation flag being propagated into MC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166084 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86MCInstLower.cpp
test/CodeGen/X86/sjlj.ll