[PATCH] D43712: [WebAssembly] Remove ELF-ness.
Rui Ueyama via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 27 16:59:45 PST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL326289: [WebAssembly] Remove ELF-ness. (authored by ruiu, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D43712?vs=135769&id=136198#toc
Repository:
rL LLVM
https://reviews.llvm.org/D43712
Files:
lld/trunk/wasm/Writer.cpp
Index: lld/trunk/wasm/Writer.cpp
===================================================================
--- lld/trunk/wasm/Writer.cpp
+++ lld/trunk/wasm/Writer.cpp
@@ -839,16 +839,12 @@
static StringRef getOutputDataSegmentName(StringRef Name) {
if (Config->Relocatable)
return Name;
-
- for (StringRef V :
- {".text.", ".rodata.", ".data.rel.ro.", ".data.", ".bss.rel.ro.",
- ".bss.", ".init_array.", ".fini_array.", ".ctors.", ".dtors.", ".tbss.",
- ".gcc_except_table.", ".tdata.", ".ARM.exidx.", ".ARM.extab."}) {
- StringRef Prefix = V.drop_back();
- if (Name.startswith(V) || Name == Prefix)
- return Prefix;
- }
-
+ if (Name.startswith(".text."))
+ return ".text";
+ if (Name.startswith(".data."))
+ return ".data";
+ if (Name.startswith(".bss."))
+ return ".bss";
return Name;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43712.136198.patch
Type: text/x-patch
Size: 844 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180228/3c168575/attachment.bin>
More information about the llvm-commits
mailing list