llvm.org GIT mirror llvm / 227b6d0
Fix usage of changed function prototype git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17798 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Spencer 14 years ago
9 changed file(s) with 17 addition(s) and 16 deletion(s). Raw diff Collapse all Expand all
154154 Out = new std::ofstream(OutputFilename.c_str());
155155 // Make sure that the Out file gets unlinked from the disk if we get a
156156 // SIGINT
157 sys::RemoveFileOnSignal(OutputFilename);
157 sys::RemoveFileOnSignal(sys::Path(OutputFilename));
158158 }
159159 }
160160
158158
159159 // Make sure that the Out file gets unlinked from the disk if we get a
160160 // signal
161 sys::RemoveFileOnSignal(OutputFilename);
161 sys::RemoveFileOnSignal(sys::Path(OutputFilename));
162162 }
163163
164164
114114
115115 // Make sure that the Out file gets unlinked from the disk if we get a
116116 // SIGINT
117 sys::RemoveFileOnSignal(OutputFilename);
117 sys::RemoveFileOnSignal(sys::Path(OutputFilename));
118118 } else {
119119 Out = &std::cout;
120120 }
147147
148148 // Make sure that the Out file gets unlinked from the disk if we get a
149149 // SIGINT
150 sys::RemoveFileOnSignal(OutputFilename);
150 sys::RemoveFileOnSignal(sys::Path(OutputFilename));
151151 }
152152 }
153153
3939 static cl::opt
4040 DumpAsm("d", cl::desc("Print assembly as parsed"), cl::Hidden);
4141
42 static cl::opt NoCompress("disable-compression", cl::init(false),
43 cl::desc("Don't ompress the generated bytecode"));
42 static cl::opt
43 NoCompress("disable-compression", cl::init(false),
44 cl::desc("Don't ompress the generated bytecode"));
4445
4546 static cl::opt
4647 DisableVerify("disable-verify", cl::Hidden,
112113 std::ios_base::trunc | std::ios_base::binary);
113114 // Make sure that the Out file gets unlinked from the disk if we get a
114115 // SIGINT
115 sys::RemoveFileOnSignal(OutputFilename);
116 sys::RemoveFileOnSignal(sys::Path(OutputFilename));
116117 }
117118 }
118119
9494
9595 // Make sure that the Out file gets unlinked from the disk if we get a
9696 // SIGINT
97 sys::RemoveFileOnSignal(OutputFilename);
97 sys::RemoveFileOnSignal(sys::Path(OutputFilename));
9898 }
9999 }
100100 }
222222
223223 // Ensure that the bytecode file gets removed from the disk if we get a
224224 // terminating signal.
225 sys::RemoveFileOnSignal(RealBytecodeOutput);
225 sys::RemoveFileOnSignal(sys::Path(RealBytecodeOutput));
226226
227227 // Generate the bytecode file.
228228 if (GenerateBytecode(Composite.get(), Strip, !NoInternalize, &Out)) {
245245 std::string AssemblyFile = OutputFilename + ".s";
246246
247247 // Mark the output files for removal if we get an interrupt.
248 sys::RemoveFileOnSignal(AssemblyFile);
249 sys::RemoveFileOnSignal(OutputFilename);
248 sys::RemoveFileOnSignal(sys::Path(AssemblyFile));
249 sys::RemoveFileOnSignal(sys::Path(OutputFilename));
250250
251251 // Determine the locations of the llc and gcc programs.
252252 std::string llc = FindExecutable("llc", argv[0]);
270270 std::string CFile = OutputFilename + ".cbe.c";
271271
272272 // Mark the output files for removal if we get an interrupt.
273 sys::RemoveFileOnSignal(CFile);
274 sys::RemoveFileOnSignal(OutputFilename);
273 sys::RemoveFileOnSignal(sys::Path(CFile));
274 sys::RemoveFileOnSignal(sys::Path(OutputFilename));
275275
276276 // Determine the locations of the llc and gcc programs.
277277 std::string llc = FindExecutable("llc", argv[0]);
127127
128128 // Make sure that the Out file gets unlinked from the disk if we get a
129129 // SIGINT
130 sys::RemoveFileOnSignal(OutputFilename);
130 sys::RemoveFileOnSignal(sys::Path(OutputFilename));
131131 }
132132
133133 if (verifyModule(*Composite.get())) {
110110
111111 // Make sure that the Output file gets unlinked from the disk if we get a
112112 // SIGINT
113 sys::RemoveFileOnSignal(OutputFilename);
113 sys::RemoveFileOnSignal(sys::Path(OutputFilename));
114114 }
115115
116116 // If the output is set to be emitted to standard out, and standard out is a
425425 }
426426
427427 // Make sure the file gets removed if *gasp* tablegen crashes...
428 sys::RemoveFileOnSignal(OutputFilename);
428 sys::RemoveFileOnSignal(sys::Path(OutputFilename));
429429 }
430430
431431 try {