Add back r201608, r201622, r201624 and r201625

Press ? to show keyboard shortcuts.
Committed
rafaelFeb 19 2014, 9:23 AM
Parents
rL201699: Refactor TargetOptions initialization into a single place.
Branches
Unknown
Tags
Unknown
Subscribers
None
Description

Add back r201608, r201622, r201624 and r201625

r201608 made llvm corretly handle private globals with MachO. r201622 fixed
a bug in it and r201624 and r201625 were changes for using private linkage,
assuming that llvm would do the right thing.

They all got reverted because r201608 introduced a crash in LTO. This patch
includes a fix for that. The issue was that TargetLoweringObjectFile now has
to be initialized before we can mangle names of private globals. This is
trivially true during the normal codegen pipeline (the asm printer does it),
but LTO has to do it manually.

Changes (35)

HistoryBrowseChangePath
HistoryBrowseModifiedllvm/trunk/examples/ExceptionDemo/ExceptionDemo.cpp
HistoryBrowseModifiedllvm/trunk/include/llvm/CodeGen/AsmPrinter.h
HistoryBrowseModifiedllvm/trunk/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h
HistoryBrowseModifiedllvm/trunk/include/llvm/IR/Mangler.h
HistoryBrowseModifiedllvm/trunk/include/llvm/Target/TargetLowering.h
HistoryBrowseModifiedllvm/trunk/include/llvm/Target/TargetLoweringObjectFile.h
HistoryBrowseModifiedllvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
HistoryBrowseModifiedllvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
HistoryBrowseModifiedllvm/trunk/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp
HistoryBrowseModifiedllvm/trunk/lib/CodeGen/AsmPrinter/Win64Exception.cpp
HistoryBrowseModifiedllvm/trunk/lib/CodeGen/TargetLoweringBase.cpp
HistoryBrowseModifiedllvm/trunk/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
HistoryBrowseModifiedllvm/trunk/lib/ExecutionEngine/MCJIT/MCJIT.cpp
HistoryBrowseModifiedllvm/trunk/lib/IR/Mangler.cpp
HistoryBrowseModifiedllvm/trunk/lib/LTO/LTOCodeGenerator.cpp
HistoryBrowseModifiedllvm/trunk/lib/LTO/LTOModule.cpp
HistoryBrowseModifiedllvm/trunk/lib/Target/ARM/ARMTargetObjectFile.cpp
HistoryBrowseModifiedllvm/trunk/lib/Target/ARM/ARMTargetObjectFile.h
HistoryBrowseModifiedllvm/trunk/lib/Target/PowerPC/PPCMCInstLower.cpp
HistoryBrowseModifiedllvm/trunk/lib/Target/Sparc/SparcTargetObjectFile.cpp
HistoryBrowseModifiedllvm/trunk/lib/Target/Sparc/SparcTargetObjectFile.h
HistoryBrowseModifiedllvm/trunk/lib/Target/TargetLoweringObjectFile.cpp
HistoryBrowseModifiedllvm/trunk/lib/Target/X86/X86MCInstLower.cpp
HistoryBrowseModifiedllvm/trunk/lib/Target/X86/X86TargetObjectFile.cpp
HistoryBrowseModifiedllvm/trunk/lib/Target/X86/X86TargetObjectFile.h
HistoryBrowseModifiedllvm/trunk/lib/Target/XCore/XCoreTargetObjectFile.cpp
HistoryBrowseModifiedllvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp
HistoryBrowseModifiedllvm/trunk/test/CodeGen/PowerPC/private.ll
HistoryBrowseModifiedllvm/trunk/test/CodeGen/X86/2009-11-16-UnfoldMemOpBug.ll
HistoryBrowseModifiedllvm/trunk/test/CodeGen/X86/global-sections.ll
HistoryBrowseAddedllvm/trunk/test/CodeGen/X86/osx-private-labels.ll
HistoryBrowseModifiedllvm/trunk/test/CodeGen/X86/pr10420.ll
HistoryBrowseModifiedllvm/trunk/test/CodeGen/X86/private-2.ll
HistoryBrowseModifiedllvm/trunk/test/Instrumentation/AddressSanitizer/instrument_global.ll
HistoryBrowseAddedllvm/trunk/test/LTO/private-symbol.ll

rL201700

llvm/trunk/examples/ExceptionDemo/ExceptionDemo.cpp

Loading...

llvm/trunk/include/llvm/CodeGen/AsmPrinter.h

Loading...

llvm/trunk/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h

Loading...

llvm/trunk/include/llvm/IR/Mangler.h

Loading...

llvm/trunk/include/llvm/Target/TargetLowering.h

Loading...

llvm/trunk/include/llvm/Target/TargetLoweringObjectFile.h

Loading...

llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp

Loading...

llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp

Loading...

llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp

Loading...

llvm/trunk/lib/CodeGen/AsmPrinter/Win64Exception.cpp

Loading...

llvm/trunk/lib/CodeGen/TargetLoweringBase.cpp

Loading...

llvm/trunk/lib/CodeGen/TargetLoweringObjectFileImpl.cpp

Loading...

llvm/trunk/lib/ExecutionEngine/MCJIT/MCJIT.cpp

Loading...

llvm/trunk/lib/IR/Mangler.cpp

Loading...

llvm/trunk/lib/LTO/LTOCodeGenerator.cpp

Loading...

llvm/trunk/lib/LTO/LTOModule.cpp

Loading...

llvm/trunk/lib/Target/ARM/ARMTargetObjectFile.cpp

Loading...

llvm/trunk/lib/Target/ARM/ARMTargetObjectFile.h

Loading...

llvm/trunk/lib/Target/PowerPC/PPCMCInstLower.cpp

Loading...

llvm/trunk/lib/Target/Sparc/SparcTargetObjectFile.cpp

Loading...

llvm/trunk/lib/Target/Sparc/SparcTargetObjectFile.h

Loading...

llvm/trunk/lib/Target/TargetLoweringObjectFile.cpp

Loading...

llvm/trunk/lib/Target/X86/X86MCInstLower.cpp

Loading...

llvm/trunk/lib/Target/X86/X86TargetObjectFile.cpp

Loading...

llvm/trunk/lib/Target/X86/X86TargetObjectFile.h

Loading...

llvm/trunk/lib/Target/XCore/XCoreTargetObjectFile.cpp

Loading...

llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp

Loading...

llvm/trunk/test/CodeGen/PowerPC/private.ll

Loading...

llvm/trunk/test/CodeGen/X86/2009-11-16-UnfoldMemOpBug.ll

Loading...

llvm/trunk/test/CodeGen/X86/global-sections.ll

Loading...

llvm/trunk/test/CodeGen/X86/osx-private-labels.ll

Loading...

llvm/trunk/test/CodeGen/X86/pr10420.ll

Loading...

llvm/trunk/test/CodeGen/X86/private-2.ll

Loading...

llvm/trunk/test/Instrumentation/AddressSanitizer/instrument_global.ll

Loading...

llvm/trunk/test/LTO/private-symbol.ll

Loading...

Add Comment