mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-11-04 05:17:07 +00:00 
			
		
		
		
	Header files will be on the way. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9298 91177308-0d34-0410-b5e6-96231b3b80d8
		
			
				
	
	
		
			29 lines
		
	
	
		
			853 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			853 B
		
	
	
	
		
			C++
		
	
	
	
	
	
// 
 | 
						|
//                     The LLVM Compiler Infrastructure
 | 
						|
//
 | 
						|
// This file was developed by the LLVM research group and is distributed under
 | 
						|
// the University of Illinois Open Source License. See LICENSE.TXT for details.
 | 
						|
// 
 | 
						|
//===----------------------------------------------------------------------===//
 | 
						|
// FIXME: Eliminate this file.
 | 
						|
 | 
						|
#include "llvm/CodeGen/ValueSet.h"
 | 
						|
#include "llvm/Value.h"
 | 
						|
#include <iostream>
 | 
						|
 | 
						|
std::ostream &operator<<(std::ostream &O, RAV V) { // func to print a Value 
 | 
						|
  const Value &v = V.V;
 | 
						|
  if (v.hasName())
 | 
						|
    return O << (void*)&v << "(" << v.getName() << ") ";
 | 
						|
  else if (isa<Constant>(v))
 | 
						|
    return O << (void*)&v << "(" << v << ") ";
 | 
						|
  else
 | 
						|
    return O << (void*)&v << " ";
 | 
						|
}
 | 
						|
 | 
						|
void printSet(const ValueSet &S) {
 | 
						|
  for (ValueSet::const_iterator I = S.begin(), E = S.end(); I != E; ++I)
 | 
						|
    std::cerr << RAV(*I);
 | 
						|
}
 | 
						|
 |