mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-10-31 08:16:47 +00:00 
			
		
		
		
	[MCJIT] Make llvm-rtdyld check RuntimeDyld's error state when running in -verify
mode. This will cause -verify mode to report failure when RuntimeDyld encounters an internal error (e.g. overflows in relocation computations). Previously we had let these errors slip past unreported. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214925 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
		| @@ -439,7 +439,14 @@ static int linkAndVerify() { | |||||||
|   // Resolve all the relocations we can. |   // Resolve all the relocations we can. | ||||||
|   Dyld.resolveRelocations(); |   Dyld.resolveRelocations(); | ||||||
|  |  | ||||||
|   return checkAllExpressions(Checker); |   int ErrorCode = checkAllExpressions(Checker); | ||||||
|  |   if (Dyld.hasError()) { | ||||||
|  |     errs() << "RTDyld reported an error applying relocations:\n  " | ||||||
|  |            << Dyld.getErrorString() << "\n"; | ||||||
|  |     ErrorCode = 1; | ||||||
|  |   } | ||||||
|  |  | ||||||
|  |   return ErrorCode; | ||||||
| } | } | ||||||
|  |  | ||||||
| int main(int argc, char **argv) { | int main(int argc, char **argv) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user