[Lldb-commits] [PATCH] D72624: [WIP] TargetMachine Hook for Module Metadata

Kuan Hsu Chen (Zakk) via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Jan 13 19:27:42 PST 2020


khchen added a comment.

I think putting the resetTargetDefaultOptions after instance of TargetMachine is too late.
for example: 
ppc <https://github.com/llvm/llvm-project/blob/master/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp#L293-L304> and mips <https://github.com/llvm/llvm-project/blob/master/llvm/lib/Target/Mips/MipsTargetMachine.cpp#L111-L122> compute the TargetABI in XXXXTargetMachine constructor. In addition , mips <https://github.com/llvm/llvm-project/blob/master/llvm/lib/Target/Mips/MipsTargetMachine.cpp#L67> compute the DataLayout with target ABI in TargetMachine constructor.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D72624/new/

https://reviews.llvm.org/D72624





More information about the lldb-commits mailing list