[PATCH] D19728: [mips] Fix inconsistent .cprestore behaviour between direct object emission and assembling.

Daniel Sanders via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 29 09:21:45 PDT 2016


dsanders created this revision.
dsanders added a reviewer: sdardis.
dsanders added a subscriber: llvm-commits.
Herald added subscribers: sdardis, dsanders.

Direct object emission has an initialization order problem where an
InitMCObjectFile is called after MipsTargetELFStreamer determines whether
PIC is enabled by default or not. There doesn't seem to be point that
initializes all cases so split the responsibility between
MipsTargetELFStreamer and MipsAsmPrinter.

http://reviews.llvm.org/D19728

Files:
  lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp
  lib/Target/Mips/MipsAsmPrinter.cpp
  lib/Target/Mips/MipsTargetStreamer.h
  test/MC/Mips/init-order-bug.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19728.55612.patch
Type: text/x-patch
Size: 5348 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160429/9dfed762/attachment.bin>


More information about the llvm-commits mailing list