mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-10-31 08:16:47 +00:00 
			
		
		
		
	git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116779 91177308-0d34-0410-b5e6-96231b3b80d8
		
			
				
	
	
		
			55 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			55 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
| //===-- llvm/MC/MCObjectFormat.h - Object Format Info -----------*- C++ -*-===//
 | |
| //
 | |
| //                     The LLVM Compiler Infrastructure
 | |
| //
 | |
| // This file is distributed under the University of Illinois Open Source
 | |
| // License. See LICENSE.TXT for details.
 | |
| //
 | |
| //===----------------------------------------------------------------------===//
 | |
| 
 | |
| #ifndef LLVM_MC_MCOBJECTFORMAT_H
 | |
| #define LLVM_MC_MCOBJECTFORMAT_H
 | |
| 
 | |
| namespace llvm {
 | |
| class MCSymbol;
 | |
| 
 | |
| class MCObjectFormat {
 | |
| public:
 | |
|   virtual ~MCObjectFormat();
 | |
| 
 | |
|   /// isAbsolute - Check if A - B is an absolute value
 | |
|   ///
 | |
|   /// \param InSet - True if this expression is in a set. For example:
 | |
|   ///   a:
 | |
|   ///   ...
 | |
|   ///   b:
 | |
|   ///   tmp = a - b
 | |
|   ///       .long tmp
 | |
|   /// \param A - LHS
 | |
|   /// \param B - RHS
 | |
|   virtual bool isAbsolute(bool InSet, const MCSymbol &A,
 | |
|                           const MCSymbol &B) const = 0;
 | |
| };
 | |
| 
 | |
| class MCELFObjectFormat : public MCObjectFormat {
 | |
| public:
 | |
|   virtual bool isAbsolute(bool InSet, const MCSymbol &A,
 | |
|                           const MCSymbol &B) const;
 | |
| };
 | |
| 
 | |
| class MCMachOObjectFormat : public MCObjectFormat {
 | |
| public:
 | |
|   virtual bool isAbsolute(bool InSet, const MCSymbol &A,
 | |
|                           const MCSymbol &B) const;
 | |
| };
 | |
| 
 | |
| class MCCOFFObjectFormat : public MCObjectFormat {
 | |
| public:
 | |
|   virtual bool isAbsolute(bool InSet, const MCSymbol &A,
 | |
|                           const MCSymbol &B) const;
 | |
| };
 | |
| 
 | |
| }  // End llvm namespace
 | |
| 
 | |
| #endif
 |