forked from OSchip/llvm-project
				
			
							parent
							
								
									dc0a05df55
								
							
						
					
					
						commit
						204fbaf5c2
					
				|  | @ -14,20 +14,16 @@ | ||||||
| #ifndef LLVM_INCLUDE_COMPILER_DRIVER_ERROR_H | #ifndef LLVM_INCLUDE_COMPILER_DRIVER_ERROR_H | ||||||
| #define LLVM_INCLUDE_COMPILER_DRIVER_ERROR_H | #define LLVM_INCLUDE_COMPILER_DRIVER_ERROR_H | ||||||
| 
 | 
 | ||||||
|  | #include "llvm/ADT/StringRef.h" | ||||||
| #include "llvm/Support/raw_ostream.h" | #include "llvm/Support/raw_ostream.h" | ||||||
| 
 | 
 | ||||||
| #include <string> |  | ||||||
| 
 |  | ||||||
| namespace llvmc { | namespace llvmc { | ||||||
| 
 | 
 | ||||||
|   inline void PrintError(const char* Err) { |   inline void PrintError(llvm::StringRef Err) { | ||||||
|     extern const char* ProgramName; |     extern const char* ProgramName; | ||||||
|     llvm::errs() << ProgramName << ": " << Err << '\n'; |     llvm::errs() << ProgramName << ": " << Err << '\n'; | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   inline void PrintError(const std::string& Err) { |  | ||||||
|     PrintError(Err.c_str()); |  | ||||||
|   } |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| #endif // LLVM_INCLUDE_COMPILER_DRIVER_ERROR_H
 | #endif // LLVM_INCLUDE_COMPILER_DRIVER_ERROR_H
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 Mikhail Glushenkov
						Mikhail Glushenkov