mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-10-31 08:16:47 +00:00 
			
		
		
		
	There is now a canonical symbol at the end of a section that different passes can request. This also allows us to assert that we don't switch back to a section whose end symbol has already been printed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233026 91177308-0d34-0410-b5e6-96231b3b80d8
		
			
				
	
	
		
			32 lines
		
	
	
		
			939 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			939 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| //===- lib/MC/MCSection.cpp - Machine Code Section Representation ---------===//
 | |
| //
 | |
| //                     The LLVM Compiler Infrastructure
 | |
| //
 | |
| // This file is distributed under the University of Illinois Open Source
 | |
| // License. See LICENSE.TXT for details.
 | |
| //
 | |
| //===----------------------------------------------------------------------===//
 | |
| 
 | |
| #include "llvm/MC/MCSection.h"
 | |
| #include "llvm/MC/MCAsmInfo.h"
 | |
| #include "llvm/MC/MCContext.h"
 | |
| #include "llvm/MC/MCSymbol.h"
 | |
| #include "llvm/Support/raw_ostream.h"
 | |
| using namespace llvm;
 | |
| 
 | |
| //===----------------------------------------------------------------------===//
 | |
| // MCSection
 | |
| //===----------------------------------------------------------------------===//
 | |
| 
 | |
| MCSymbol *MCSection::getEndSymbol(MCContext &Ctx) const {
 | |
|   if (!End)
 | |
|     End = Ctx.createTempSymbol("sec_end", true);
 | |
|   return End;
 | |
| }
 | |
| 
 | |
| bool MCSection::hasEnded() const { return End && End->isInSection(); }
 | |
| 
 | |
| MCSection::~MCSection() {
 | |
| }
 | |
| 
 |