OLD | NEW |
1 //===- bugpoint.cpp - The LLVM Bugpoint utility ---------------------------===// | 1 //===- bugpoint.cpp - The LLVM Bugpoint utility ---------------------------===// |
2 // | 2 // |
3 // The LLVM Compiler Infrastructure | 3 // The LLVM Compiler Infrastructure |
4 // | 4 // |
5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
7 // | 7 // |
8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
9 // | 9 // |
10 // This program is an automated compiler debugger tool. It is used to narrow | 10 // This program is an automated compiler debugger tool. It is used to narrow |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 initializeRewritePNaClLibraryCallsPass(Registry); | 179 initializeRewritePNaClLibraryCallsPass(Registry); |
180 initializeSandboxIndirectCallsPass(Registry); | 180 initializeSandboxIndirectCallsPass(Registry); |
181 initializeSandboxMemoryAccessesPass(Registry); | 181 initializeSandboxMemoryAccessesPass(Registry); |
182 initializeSimplifyAllocasPass(Registry); | 182 initializeSimplifyAllocasPass(Registry); |
183 initializeSimplifyStructRegSignaturesPass(Registry); | 183 initializeSimplifyStructRegSignaturesPass(Registry); |
184 initializeStripAttributesPass(Registry); | 184 initializeStripAttributesPass(Registry); |
185 initializeStripMetadataPass(Registry); | 185 initializeStripMetadataPass(Registry); |
186 initializeStripModuleFlagsPass(Registry); | 186 initializeStripModuleFlagsPass(Registry); |
187 initializeStripTlsPass(Registry); | 187 initializeStripTlsPass(Registry); |
188 initializeSubstituteUndefsPass(Registry); | 188 initializeSubstituteUndefsPass(Registry); |
189 // Emscripten passes: | |
190 initializeExpandI64Pass(Registry); | |
191 initializeExpandInsertExtractElementPass(Registry); | |
192 initializeLowerEmAsyncifyPass(Registry); | |
193 initializeLowerEmExceptionsPass(Registry); | |
194 initializeLowerEmSetjmpPass(Registry); | |
195 initializeNoExitRuntimePass(Registry); | |
196 initializeNoExitRuntimePass(Registry); | |
197 // Emscripten passes end. | |
198 // @LOCALMOD-END | 189 // @LOCALMOD-END |
199 | 190 |
200 cl::ParseCommandLineOptions(argc, argv, | 191 cl::ParseCommandLineOptions(argc, argv, |
201 "LLVM automatic testcase reducer. See\nhttp://" | 192 "LLVM automatic testcase reducer. See\nhttp://" |
202 "llvm.org/cmds/bugpoint.html" | 193 "llvm.org/cmds/bugpoint.html" |
203 " for more information.\n"); | 194 " for more information.\n"); |
204 #ifndef DEBUG_BUGPOINT | 195 #ifndef DEBUG_BUGPOINT |
205 sys::SetInterruptFunction(BugpointInterruptFunction); | 196 sys::SetInterruptFunction(BugpointInterruptFunction); |
206 #endif | 197 #endif |
207 | 198 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 #endif | 254 #endif |
264 | 255 |
265 std::string Error; | 256 std::string Error; |
266 bool Failure = D.run(Error); | 257 bool Failure = D.run(Error); |
267 if (!Error.empty()) { | 258 if (!Error.empty()) { |
268 errs() << Error; | 259 errs() << Error; |
269 return 1; | 260 return 1; |
270 } | 261 } |
271 return Failure; | 262 return Failure; |
272 } | 263 } |
OLD | NEW |