mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-10-31 08:16:47 +00:00 
			
		
		
		
	Fix usage of changed function prototype
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17798 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
		| @@ -155,7 +155,7 @@ int main(int argc, char **argv) | |||||||
|           Out = new std::ofstream(OutputFilename.c_str()); |           Out = new std::ofstream(OutputFilename.c_str()); | ||||||
|           // Make sure that the Out file gets unlinked from the disk if we get a |           // Make sure that the Out file gets unlinked from the disk if we get a | ||||||
|           // SIGINT |           // SIGINT | ||||||
|           sys::RemoveFileOnSignal(OutputFilename); |           sys::RemoveFileOnSignal(sys::Path(OutputFilename)); | ||||||
|         } |         } | ||||||
|       } |       } | ||||||
|      |      | ||||||
|   | |||||||
| @@ -159,7 +159,7 @@ int main(int argc, char **argv) { | |||||||
|  |  | ||||||
|     // Make sure that the Out file gets unlinked from the disk if we get a |     // Make sure that the Out file gets unlinked from the disk if we get a | ||||||
|     // signal |     // signal | ||||||
|     sys::RemoveFileOnSignal(OutputFilename); |     sys::RemoveFileOnSignal(sys::Path(OutputFilename)); | ||||||
|   } |   } | ||||||
|  |  | ||||||
|    |    | ||||||
|   | |||||||
| @@ -115,7 +115,7 @@ int main(int argc, char **argv) { | |||||||
|  |  | ||||||
|       // Make sure that the Out file gets unlinked from the disk if we get a |       // Make sure that the Out file gets unlinked from the disk if we get a | ||||||
|       // SIGINT |       // SIGINT | ||||||
|       sys::RemoveFileOnSignal(OutputFilename); |       sys::RemoveFileOnSignal(sys::Path(OutputFilename)); | ||||||
|     } else { |     } else { | ||||||
|       Out = &std::cout; |       Out = &std::cout; | ||||||
|     } |     } | ||||||
| @@ -148,7 +148,7 @@ int main(int argc, char **argv) { | |||||||
|        |        | ||||||
|       // Make sure that the Out file gets unlinked from the disk if we get a |       // Make sure that the Out file gets unlinked from the disk if we get a | ||||||
|       // SIGINT |       // SIGINT | ||||||
|       sys::RemoveFileOnSignal(OutputFilename); |       sys::RemoveFileOnSignal(sys::Path(OutputFilename)); | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -40,7 +40,8 @@ Force("f", cl::desc("Overwrite output files")); | |||||||
| static cl::opt<bool> | static cl::opt<bool> | ||||||
| DumpAsm("d", cl::desc("Print assembly as parsed"), cl::Hidden); | DumpAsm("d", cl::desc("Print assembly as parsed"), cl::Hidden); | ||||||
|  |  | ||||||
| static cl::opt<bool> NoCompress("disable-compression", cl::init(false), | static cl::opt<bool>  | ||||||
|  | NoCompress("disable-compression", cl::init(false), | ||||||
|            cl::desc("Don't ompress the generated bytecode")); |            cl::desc("Don't ompress the generated bytecode")); | ||||||
|  |  | ||||||
| static cl::opt<bool> | static cl::opt<bool> | ||||||
| @@ -113,7 +114,7 @@ int main(int argc, char **argv) { | |||||||
|                                 std::ios_base::trunc | std::ios_base::binary); |                                 std::ios_base::trunc | std::ios_base::binary); | ||||||
|         // Make sure that the Out file gets unlinked from the disk if we get a |         // Make sure that the Out file gets unlinked from the disk if we get a | ||||||
|         // SIGINT |         // SIGINT | ||||||
|         sys::RemoveFileOnSignal(OutputFilename); |         sys::RemoveFileOnSignal(sys::Path(OutputFilename)); | ||||||
|       } |       } | ||||||
|     } |     } | ||||||
|    |    | ||||||
|   | |||||||
| @@ -95,7 +95,7 @@ int main(int argc, char **argv) { | |||||||
|  |  | ||||||
|         // Make sure that the Out file gets unlinked from the disk if we get a |         // Make sure that the Out file gets unlinked from the disk if we get a | ||||||
|         // SIGINT |         // SIGINT | ||||||
|         sys::RemoveFileOnSignal(OutputFilename); |         sys::RemoveFileOnSignal(sys::Path(OutputFilename)); | ||||||
|       } |       } | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
|   | |||||||
| @@ -223,7 +223,7 @@ int main(int argc, char **argv, char **envp) { | |||||||
|  |  | ||||||
|   // Ensure that the bytecode file gets removed from the disk if we get a |   // Ensure that the bytecode file gets removed from the disk if we get a | ||||||
|   // terminating signal. |   // terminating signal. | ||||||
|   sys::RemoveFileOnSignal(RealBytecodeOutput); |   sys::RemoveFileOnSignal(sys::Path(RealBytecodeOutput)); | ||||||
|  |  | ||||||
|   // Generate the bytecode file. |   // Generate the bytecode file. | ||||||
|   if (GenerateBytecode(Composite.get(), Strip, !NoInternalize, &Out)) { |   if (GenerateBytecode(Composite.get(), Strip, !NoInternalize, &Out)) { | ||||||
| @@ -246,8 +246,8 @@ int main(int argc, char **argv, char **envp) { | |||||||
|       std::string AssemblyFile = OutputFilename + ".s"; |       std::string AssemblyFile = OutputFilename + ".s"; | ||||||
|  |  | ||||||
|       // Mark the output files for removal if we get an interrupt. |       // Mark the output files for removal if we get an interrupt. | ||||||
|       sys::RemoveFileOnSignal(AssemblyFile); |       sys::RemoveFileOnSignal(sys::Path(AssemblyFile)); | ||||||
|       sys::RemoveFileOnSignal(OutputFilename); |       sys::RemoveFileOnSignal(sys::Path(OutputFilename)); | ||||||
|  |  | ||||||
|       // Determine the locations of the llc and gcc programs. |       // Determine the locations of the llc and gcc programs. | ||||||
|       std::string llc = FindExecutable("llc", argv[0]); |       std::string llc = FindExecutable("llc", argv[0]); | ||||||
| @@ -271,8 +271,8 @@ int main(int argc, char **argv, char **envp) { | |||||||
|       std::string CFile = OutputFilename + ".cbe.c"; |       std::string CFile = OutputFilename + ".cbe.c"; | ||||||
|  |  | ||||||
|       // Mark the output files for removal if we get an interrupt. |       // Mark the output files for removal if we get an interrupt. | ||||||
|       sys::RemoveFileOnSignal(CFile); |       sys::RemoveFileOnSignal(sys::Path(CFile)); | ||||||
|       sys::RemoveFileOnSignal(OutputFilename); |       sys::RemoveFileOnSignal(sys::Path(OutputFilename)); | ||||||
|  |  | ||||||
|       // Determine the locations of the llc and gcc programs. |       // Determine the locations of the llc and gcc programs. | ||||||
|       std::string llc = FindExecutable("llc", argv[0]); |       std::string llc = FindExecutable("llc", argv[0]); | ||||||
|   | |||||||
| @@ -128,7 +128,7 @@ int main(int argc, char **argv) { | |||||||
|  |  | ||||||
|     // Make sure that the Out file gets unlinked from the disk if we get a |     // Make sure that the Out file gets unlinked from the disk if we get a | ||||||
|     // SIGINT |     // SIGINT | ||||||
|     sys::RemoveFileOnSignal(OutputFilename); |     sys::RemoveFileOnSignal(sys::Path(OutputFilename)); | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   if (verifyModule(*Composite.get())) { |   if (verifyModule(*Composite.get())) { | ||||||
|   | |||||||
| @@ -111,7 +111,7 @@ int main(int argc, char **argv) { | |||||||
|  |  | ||||||
|     // Make sure that the Output file gets unlinked from the disk if we get a |     // Make sure that the Output file gets unlinked from the disk if we get a | ||||||
|     // SIGINT |     // SIGINT | ||||||
|     sys::RemoveFileOnSignal(OutputFilename); |     sys::RemoveFileOnSignal(sys::Path(OutputFilename)); | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   // If the output is set to be emitted to standard out, and standard out is a |   // If the output is set to be emitted to standard out, and standard out is a | ||||||
|   | |||||||
| @@ -426,7 +426,7 @@ int main(int argc, char **argv) { | |||||||
|     } |     } | ||||||
|  |  | ||||||
|     // Make sure the file gets removed if *gasp* tablegen crashes... |     // Make sure the file gets removed if *gasp* tablegen crashes... | ||||||
|     sys::RemoveFileOnSignal(OutputFilename); |     sys::RemoveFileOnSignal(sys::Path(OutputFilename)); | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   try { |   try { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user