From 20ac943748aec8f98694b7b024b206e8bd86b932 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Thu, 29 Sep 2016 02:03:52 +0000 Subject: [PATCH] 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 --- llvm/lib/Target/Mips/MipsAsmPrinter.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/llvm/lib/Target/Mips/MipsAsmPrinter.cpp b/llvm/lib/Target/Mips/MipsAsmPrinter.cpp index 7519c30..8dab262 100644 --- a/llvm/lib/Target/Mips/MipsAsmPrinter.cpp +++ b/llvm/lib/Target/Mips/MipsAsmPrinter.cpp @@ -60,10 +60,6 @@ MipsTargetStreamer &MipsAsmPrinter::getTargetStreamer() const { bool MipsAsmPrinter::runOnMachineFunction(MachineFunction &MF) { Subtarget = &MF.getSubtarget(); - // Initialize TargetLoweringObjectFile. - const_cast(getObjFileLowering()) - .Initialize(OutContext, TM); - MipsFI = MF.getInfo(); if (Subtarget->inMips16Mode()) for (std::map< -- 2.7.4