Skip to content

Commit d13fe56

Browse files
committed
[LLVM][WebAssembly] Change custom section naming in object file
1 parent a630d51 commit d13fe56

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ void WebAssemblyAsmPrinter::emitEndOfAsmFile(Module &M) {
462462

463463
void WebAssemblyAsmPrinter::emitBranchHintSection() const {
464464
MCSectionWasm *BranchHintsSection = OutContext.getWasmSection(
465-
"metadata.code.branch_hint", SectionKind::getMetadata());
465+
".custom_section.metadata.code.branch_hint", SectionKind::getMetadata());
466466
OutStreamer->pushSection();
467467
OutStreamer->switchSection(BranchHintsSection);
468468
const uint32_t NumFunctionHints =

llvm/test/MC/WebAssembly/branch-hints.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
; ASM-CHECK-NEXT: .int8 14
2525
; ASM-CHECK-NEXT: .ascii "branch-hinting"
2626

27-
; ASM-CHECK: .section metadata.code.branch_hint,"",@
27+
; ASM-CHECK: .section .custom_section.metadata.code.branch_hint,"",@
2828
; ASM-CHECK-NEXT: .asciz "\202\200\200\200"
2929
; ASM-CHECK-NEXT: .uleb128 test_unlikely_likely_branch@FUNCINDEX
3030
; ASM-CHECK-NEXT: .int8 2

0 commit comments

Comments
 (0)