[PATCH] D89928: [RISCV] Fix incorrect elf attributes name
Jim Lin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 21 22:27:21 PDT 2020
Jim created this revision.
Jim added a reviewer: HsiangKai.
Herald added subscribers: llvm-commits, NickHung, jdoerfert, evandro, luismarques, apazos, sameer.abuasal, pzheng, s.egerton, lenary, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya.
Herald added a project: LLVM.
Jim requested review of this revision.
Herald added a subscriber: MaskRay.
According to https://github.com/riscv/riscv-elf-psabi-doc/pull/71, the elf attributes name should have Tag_RISCV prefix.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D89928
Files:
llvm/lib/Support/RISCVAttributes.cpp
Index: llvm/lib/Support/RISCVAttributes.cpp
===================================================================
--- llvm/lib/Support/RISCVAttributes.cpp
+++ llvm/lib/Support/RISCVAttributes.cpp
@@ -12,12 +12,12 @@
using namespace llvm::RISCVAttrs;
static const TagNameItem tagData[] = {
- {STACK_ALIGN, "Tag_stack_align"},
- {ARCH, "Tag_arch"},
- {UNALIGNED_ACCESS, "Tag_unaligned_access"},
- {PRIV_SPEC, "Tag_priv_spec"},
- {PRIV_SPEC_MINOR, "Tag_priv_spec_minor"},
- {PRIV_SPEC_REVISION, "Tag_priv_spec_revision"},
+ {STACK_ALIGN, "Tag_RISCV_stack_align"},
+ {ARCH, "Tag_RISCV_arch"},
+ {UNALIGNED_ACCESS, "Tag_RISCV_unaligned_access"},
+ {PRIV_SPEC, "Tag_RISCV_priv_spec"},
+ {PRIV_SPEC_MINOR, "Tag_RISCV_priv_spec_minor"},
+ {PRIV_SPEC_REVISION, "Tag_RISCV_priv_spec_revision"},
};
const TagNameMap llvm::RISCVAttrs::RISCVAttributeTags(tagData,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89928.299860.patch
Type: text/x-patch
Size: 893 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201022/02361263/attachment.bin>
More information about the llvm-commits
mailing list