OLD | NEW |
1 //===- subzero/src/llvm2ice.cpp - Driver for testing ----------------------===// | 1 //===- subzero/src/llvm2ice.cpp - Driver for testing ----------------------===// |
2 // | 2 // |
3 // The Subzero Code Generator | 3 // The Subzero Code Generator |
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 file defines a driver that uses LLVM capabilities to parse a | 10 // This file defines a driver that uses LLVM capabilities to parse a |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 if (SubzeroTimingEnabled) { | 143 if (SubzeroTimingEnabled) { |
144 std::cerr << "[Subzero timing] IR Parsing: " << T.getElapsedSec() | 144 std::cerr << "[Subzero timing] IR Parsing: " << T.getElapsedSec() |
145 << " sec\n"; | 145 << " sec\n"; |
146 } | 146 } |
147 | 147 |
148 if (!Mod) { | 148 if (!Mod) { |
149 Err.print(argv[0], errs()); | 149 Err.print(argv[0], errs()); |
150 return 1; | 150 return 1; |
151 } | 151 } |
152 | 152 |
153 Ice::Converter Converter(&Ctx, Flags); | 153 Ice::Converter Converter(Mod, &Ctx, Flags); |
154 Converter.convertToIce(Mod); | 154 Converter.convertToIce(); |
155 return Converter.getErrorStatus(); | 155 return Converter.getErrorStatus(); |
156 } | 156 } |
157 } | 157 } |
OLD | NEW |