ARM64: don't emit .subsections_via_symbols on ELF.
Part of PR19455. llvm-svn: 206610
This commit is contained in:
		
							parent
							
								
									be3941cc79
								
							
						
					
					
						commit
						be1d1b6681
					
				| 
						 | 
					@ -120,6 +120,7 @@ private:
 | 
				
			||||||
//===----------------------------------------------------------------------===//
 | 
					//===----------------------------------------------------------------------===//
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void ARM64AsmPrinter::EmitEndOfAsmFile(Module &M) {
 | 
					void ARM64AsmPrinter::EmitEndOfAsmFile(Module &M) {
 | 
				
			||||||
 | 
					  if (Subtarget->isTargetMachO()) {
 | 
				
			||||||
    // Funny Darwin hack: This flag tells the linker that no global symbols
 | 
					    // Funny Darwin hack: This flag tells the linker that no global symbols
 | 
				
			||||||
    // contain code that falls through to other global symbols (e.g. the obvious
 | 
					    // contain code that falls through to other global symbols (e.g. the obvious
 | 
				
			||||||
    // implementation of multiple entry points).  If this doesn't occur, the
 | 
					    // implementation of multiple entry points).  If this doesn't occur, the
 | 
				
			||||||
| 
						 | 
					@ -127,6 +128,7 @@ void ARM64AsmPrinter::EmitEndOfAsmFile(Module &M) {
 | 
				
			||||||
    // generates code that does this, it is always safe to set.
 | 
					    // generates code that does this, it is always safe to set.
 | 
				
			||||||
    OutStreamer.EmitAssemblerFlag(MCAF_SubsectionsViaSymbols);
 | 
					    OutStreamer.EmitAssemblerFlag(MCAF_SubsectionsViaSymbols);
 | 
				
			||||||
    SM.serializeToStackMapSection();
 | 
					    SM.serializeToStackMapSection();
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  // Emit a .data.rel section containing any stubs that were created.
 | 
					  // Emit a .data.rel section containing any stubs that were created.
 | 
				
			||||||
  if (Subtarget->isTargetELF()) {
 | 
					  if (Subtarget->isTargetELF()) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,5 @@
 | 
				
			||||||
 | 
					; RUN: llc -mtriple=arm64-apple-ios7.0 -o - %s | FileCheck %s --check-prefix=CHECK-MACHO
 | 
				
			||||||
 | 
					; RUN: llc -mtriple=arm64-linux-gnu -o - %s | FileCheck %s --check-prefix=CHECK-ELF
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					; CHECK-MACHO: .subsections_via_symbols
 | 
				
			||||||
 | 
					; CHECK-ELF-NOT: .subsections_via_symbols
 | 
				
			||||||
		Loading…
	
		Reference in New Issue