File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -4082,10 +4082,10 @@ void AssemblyWriter::printTypeIdentities() {
40824082
40834083// / printFunction - Print all aspects of a function.
40844084void  AssemblyWriter::printFunction (const  Function *F) {
4085-   if  (AnnotationWriter) AnnotationWriter->emitFunctionAnnot (F, Out);
4086- 
40874085  if  (F->isMaterializable ())
40884086    Out << " ; Materializable\n " 
4087+   else  if  (AnnotationWriter)
4088+     AnnotationWriter->emitFunctionAnnot (F, Out);
40894089
40904090  const  AttributeList &Attrs = F->getAttributes ();
40914091  if  (Attrs.hasFnAttrs ()) {
Original file line number Diff line number Diff line change 1+ ; RUN: llvm-as < %s | llvm-dis --materialize-metadata --show-annotations | FileCheck %s 
2+ 
3+ ; CHECK: ; Materializable 
4+ ; CHECK-NEXT: define dso_local i32 @test() {} 
5+ define  dso_local i32  @test () {
6+ entry:
7+   ret  i32  0 
8+ }
9+ 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments