mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-11-03 14:21:30 +00:00 
			
		
		
		
	Simplify handling of --noexecstack by using getNonexecutableStackSection.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219799 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
		@@ -255,13 +255,11 @@ MCELFStreamer *createMipsNaClELFStreamer(MCContext &Context, MCAsmBackend &TAB,
 | 
			
		||||
                                         raw_ostream &OS,
 | 
			
		||||
                                         MCCodeEmitter *Emitter,
 | 
			
		||||
                                         const MCSubtargetInfo &STI,
 | 
			
		||||
                                         bool RelaxAll, bool NoExecStack) {
 | 
			
		||||
                                         bool RelaxAll) {
 | 
			
		||||
  MipsNaClELFStreamer *S = new MipsNaClELFStreamer(Context, TAB, OS, Emitter,
 | 
			
		||||
                                                   STI);
 | 
			
		||||
  if (RelaxAll)
 | 
			
		||||
    S->getAssembler().setRelaxAll(true);
 | 
			
		||||
  if (NoExecStack)
 | 
			
		||||
    S->getAssembler().setNoExecStack(true);
 | 
			
		||||
 | 
			
		||||
  // Set bundle-alignment as required by the NaCl ABI for the target.
 | 
			
		||||
  S->EmitBundleAlignMode(MIPS_NACL_BUNDLE_ALIGN);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user