[PATCH] D50490: Pass code model parameter to MC from CodeGen

Lei Liu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 8 22:15:28 PDT 2018


lliu0 created this revision.
lliu0 added reviewers: davide, javed.absar, JDevlieghere, espindola.
Herald added a subscriber: llvm-commits.

Fixes PR37524.

This partially reverts r309884 which causes regression in x86_64 kernel code model code generation.

When generating x86_64 ELF exception table, CodeGen consults with MC to set proper EH table encodings based on different code models.  The changes in r309884 only took large code model into account but ignored that kernel code model should have similar behavior as large code model in some way because it is assumed to use negative addressing space in x86_64.


Repository:
  rL LLVM

https://reviews.llvm.org/D50490

Files:
  include/llvm/MC/MCObjectFileInfo.h
  lib/MC/MCObjectFileInfo.cpp
  lib/Target/TargetLoweringObjectFile.cpp
  test/MC/X86/code-model-kernel.ll
  tools/llvm-mc/llvm-mc.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50490.159854.patch
Type: text/x-patch
Size: 7762 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180809/60b936bd/attachment.bin>


More information about the llvm-commits mailing list