[PATCH] D52737: [ARM] Emmit data symbol for constant pool data
Diogo N. Sampaio via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 2 07:59:22 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL343594: [ARM] Emmit data symbol for constant pool data (authored by dnsampaio, committed by ).
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://reviews.llvm.org/D52737?vs=167912&id=167953#toc
Repository:
rL LLVM
https://reviews.llvm.org/D52737
Files:
llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp
llvm/trunk/test/MC/ARM/CheckDataSymbol.s
Index: llvm/trunk/test/MC/ARM/CheckDataSymbol.s
===================================================================
--- llvm/trunk/test/MC/ARM/CheckDataSymbol.s
+++ llvm/trunk/test/MC/ARM/CheckDataSymbol.s
@@ -0,0 +1,15 @@
+# RUN: llvm-mc -filetype=obj -assemble \
+# RUN: -triple=arm-arm-none-eabi -mcpu=cortex-a9 %s -o - \
+# RUN: | llvm-readobj -s -t - | FileCheck %s
+# CHECK: Name: $d.1 ({{[1-9][0-9]+}})
+# CHECK-NEXT: Value: 0x4
+# CHECK-NEXT: Size: 0
+# CHECK-NEXT: Binding: Local (0x0)
+# CHECK-NEXT: Type: None (0x0)
+# CHECK-NEXT: Other: 0
+# CHECK-NEXT: Section: .text (0x2)
+# CHECK-NEXT: }
+
+.text
+nop
+.zero 4
Index: llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp
===================================================================
--- llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp
+++ llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp
@@ -465,6 +465,11 @@
void emitPad(int64_t Offset);
void emitRegSave(const SmallVectorImpl<unsigned> &RegList, bool isVector);
void emitUnwindRaw(int64_t Offset, const SmallVectorImpl<uint8_t> &Opcodes);
+ void emitFill(const MCExpr &NumBytes, uint64_t FillValue,
+ SMLoc Loc) override {
+ EmitDataMappingSymbol();
+ MCObjectStreamer::emitFill(NumBytes, FillValue, Loc);
+ }
void ChangeSection(MCSection *Section, const MCExpr *Subsection) override {
LastMappingSymbols[getCurrentSection().first] = std::move(LastEMSInfo);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52737.167953.patch
Type: text/x-patch
Size: 1478 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181002/aba95490/attachment.bin>
More information about the llvm-commits
mailing list