diff options
| author | Eric Christopher <echristo@gmail.com> | 2016-09-29 02:03:52 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@gmail.com> | 2016-09-29 02:03:52 +0000 |
| commit | 20ac943748aec8f98694b7b024b206e8bd86b932 (patch) | |
| tree | c32a5257de58c6016b27cff0b31a3b24c48db83f /llvm/lib/Target | |
| parent | 1c3bb79864f45bd3c6dfc1563d72a2eb89f03a3a (diff) | |
| download | bcm5719-llvm-20ac943748aec8f98694b7b024b206e8bd86b932.tar.gz bcm5719-llvm-20ac943748aec8f98694b7b024b206e8bd86b932.zip | |
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
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/Mips/MipsAsmPrinter.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/Target/Mips/MipsAsmPrinter.cpp b/llvm/lib/Target/Mips/MipsAsmPrinter.cpp index 7519c309e44..8dab262ac25 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<MipsSubtarget>(); - // Initialize TargetLoweringObjectFile. - const_cast<TargetLoweringObjectFile &>(getObjFileLowering()) - .Initialize(OutContext, TM); - MipsFI = MF.getInfo<MipsFunctionInfo>(); if (Subtarget->inMips16Mode()) for (std::map< |

