llvm/lib/MC
Weiming Zhao 7e3119cb1a Fix 24560: assembler does not share constant pool for same constants
Summary: This patch returns the same label if the CP entry with the same value has been created.

Reviewers: eli.friedman, rengolin, jmolloy

Subscribers: majnemer, jmolloy, llvm-commits

Differential Revision: https://reviews.llvm.org/D25804

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286006 91177308-0d34-0410-b5e6-96231b3b80d8
2016-11-04 19:17:32 +00:00
..
MCDisassembler Use StringRef instead of raw pointers in MCAsmInfo/MCInstrInfo APIs (NFC) 2016-10-01 06:46:33 +00:00
MCParser Fix Clang-tidy readability-redundant-string-cstr warnings 2016-11-02 16:43:50 +00:00
CMakeLists.txt Revert r283690, "MC: Remove unused entities." 2016-10-10 22:49:37 +00:00
ConstantPools.cpp Fix 24560: assembler does not share constant pool for same constants 2016-11-04 19:17:32 +00:00
ELFObjectWriter.cpp Misc improvements to StringTableBuilder. 2016-10-04 22:43:25 +00:00
LLVMBuild.txt
MachObjectWriter.cpp Fix Clang-tidy readability-redundant-string-cstr warnings 2016-11-02 16:43:50 +00:00
MCAsmBackend.cpp [mips][ias] Support .dtprel[d]word and .tprel[d]word directives 2016-08-22 16:18:42 +00:00
MCAsmInfo.cpp [MC] Delete use of *structors_used. 2016-08-08 03:30:01 +00:00
MCAsmInfoCOFF.cpp [MC] Use LShr for constant evaluation of ">>" on non-arm64 darwin. 2015-11-11 00:51:36 +00:00
MCAsmInfoDarwin.cpp [MC] Delete use of *structors_used. 2016-08-08 03:30:01 +00:00
MCAsmInfoELF.cpp [WebAssembly] Don't create a needless .note.GNU-stack section 2016-01-15 23:59:13 +00:00
MCAsmStreamer.cpp Tidy the calls to getCurrentSection().first -> getCurrentSectionOnly to help 2016-10-14 05:47:37 +00:00
MCAssembler.cpp [MC] Don't crash when trying to emit a relocation against .bss. 2016-07-26 18:16:33 +00:00
MCCodeEmitter.cpp
MCCodeView.cpp [codeview] Truncate records to maximum record size near 64KB 2016-10-05 22:36:07 +00:00
MCContext.cpp Tidy spelling and grammar. 2016-09-29 02:03:44 +00:00
MCDwarf.cpp Reverting back r285355: "Update .debug_line section version information to match DWARF version", while I'm investigating a test failure. 2016-10-27 23:20:19 +00:00
MCELFObjectTargetWriter.cpp Always sort by offset first. NFC. 2015-12-17 15:08:24 +00:00
MCELFStreamer.cpp Fix instance of -Wdelete-incomplete 2016-06-22 23:25:26 +00:00
MCExpr.cpp [AMDGPU] Add 32-bit lo/hi got and pc relative variant kinds and emit appropriate relocations 2016-10-14 04:21:32 +00:00
MCFragment.cpp ADT: Split ilist_node_traits into alloc and callback, NFC 2016-08-30 18:40:47 +00:00
MCInst.cpp [MC] Remove guard(s). NFCI. 2016-08-22 11:55:22 +00:00
MCInstPrinter.cpp
MCInstrAnalysis.cpp
MCInstrDesc.cpp Replace uint16_t with the MCPhysReg typedef in many places. A lot of physical register arrays already use this typedef. 2015-12-05 07:13:35 +00:00
MCLabel.cpp [MC] Remove guard(s). NFCI. 2016-08-22 11:55:22 +00:00
MCLinkerOptimizationHint.cpp Apply clang-tidy's modernize-loop-convert to lib/MC. 2016-06-26 14:49:00 +00:00
MCMachObjectTargetWriter.cpp
MCMachOStreamer.cpp MachO: enable .data_region directives everywhere 2016-04-21 23:00:17 +00:00
MCNullStreamer.cpp
MCObjectFileInfo.cpp Move code only used by codegen out of MC. NFC. 2016-08-29 12:33:42 +00:00
MCObjectStreamer.cpp Tidy the calls to getCurrentSection().first -> getCurrentSectionOnly to help 2016-10-14 05:47:37 +00:00
MCObjectWriter.cpp Fix pr24486. 2015-10-05 12:07:05 +00:00
MCRegisterInfo.cpp Avoid accessing LLVM/DWARF register mappings if undefined 2016-08-12 23:12:59 +00:00
MCSchedule.cpp
MCSection.cpp MC: Move MCSection::begin/end to header, NFC 2016-09-12 00:17:09 +00:00
MCSectionCOFF.cpp [MC] Handle discardable COFF sections in assembly 2016-09-14 22:41:50 +00:00
MCSectionELF.cpp Bring r252305 back with a test fix. 2015-11-06 15:30:45 +00:00
MCSectionMachO.cpp Use StringRef in MCSectionMachO (NFC) 2016-10-05 01:02:34 +00:00
MCStreamer.cpp Tidy the calls to getCurrentSection().first -> getCurrentSectionOnly to help 2016-10-14 05:47:37 +00:00
MCSubtargetInfo.cpp (NFC) Change SubtargetFeatures::ToggleFeature and 2016-01-05 10:25:56 +00:00
MCSymbol.cpp Retire llvm::alignOf in favor of C++11 alignof. 2016-10-20 15:02:18 +00:00
MCSymbolELF.cpp
MCTargetOptions.cpp New llc option pie-copy-relocations to optimize access to extern globals. 2016-10-13 20:54:39 +00:00
MCValue.cpp [MC] Remove guard(s). NFCI. 2016-08-22 11:55:22 +00:00
MCWin64EH.cpp [MC] Create unique .pdata sections for every .text section 2016-05-02 23:22:18 +00:00
MCWinEH.cpp Revert r283690, "MC: Remove unused entities." 2016-10-10 22:49:37 +00:00
StringTableBuilder.cpp [ADT] Move CachedHashString to its own header in ADT, and rename to CachedHashStringRef. 2016-10-17 22:24:36 +00:00
SubtargetFeature.cpp [MC] Remove guard(s). NFCI. 2016-08-22 11:55:22 +00:00
WinCOFFObjectWriter.cpp Remove unused #includes of TimeValue.h. NFC. 2016-10-24 14:00:26 +00:00
WinCOFFStreamer.cpp [MC, COFF] Permit a variable to be redefined 2016-07-08 21:54:16 +00:00