Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions llvm/lib/IR/AsmWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4082,10 +4082,10 @@ void AssemblyWriter::printTypeIdentities() {

/// printFunction - Print all aspects of a function.
void AssemblyWriter::printFunction(const Function *F) {
if (AnnotationWriter) AnnotationWriter->emitFunctionAnnot(F, Out);

if (F->isMaterializable())
Out << "; Materializable\n";
else if (AnnotationWriter)
AnnotationWriter->emitFunctionAnnot(F, Out);

const AttributeList &Attrs = F->getAttributes();
if (Attrs.hasFnAttrs()) {
Expand Down
9 changes: 9 additions & 0 deletions llvm/test/Assembler/metadata-annotations.ll
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
; RUN: llvm-as < %s | llvm-dis --materialize-metadata --show-annotations | FileCheck %s

; CHECK: ; Materializable
; CHECK-NEXT: define dso_local i32 @test() {}
define dso_local i32 @test() {
entry:
ret i32 0
}

Loading