mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
Remove an unnecessary duplicate initialization of TLOF from the Mips
AsmPrinter. This was reinitializing the Mangler after we moved the Mangler down to TLOF and causing us to have two different unnamed global values accessed with the same name. This should fix the problems on the ubsan tests here: http://lab.llvm.org:8011/builders/clang-cmake-mips/builds/15307 llvm-svn: 282675
This commit is contained in:
parent
8e278c36c0
commit
221e7ee5fe
@ -60,10 +60,6 @@ MipsTargetStreamer &MipsAsmPrinter::getTargetStreamer() const {
|
||||
bool MipsAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
||||
Subtarget = &MF.getSubtarget<MipsSubtarget>();
|
||||
|
||||
// Initialize TargetLoweringObjectFile.
|
||||
const_cast<TargetLoweringObjectFile &>(getObjFileLowering())
|
||||
.Initialize(OutContext, TM);
|
||||
|
||||
MipsFI = MF.getInfo<MipsFunctionInfo>();
|
||||
if (Subtarget->inMips16Mode())
|
||||
for (std::map<
|
||||
|
Loading…
x
Reference in New Issue
Block a user