forked from OSchip/llvm-project
[flang] address review comments
Original-commit: flang-compiler/f18@4dd4766f4d Reviewed-on: https://github.com/flang-compiler/f18/pull/295
This commit is contained in:
parent
79a264856c
commit
2169307cd8
|
@ -15,9 +15,9 @@
|
|||
#include "builder.h"
|
||||
#include <ostream>
|
||||
|
||||
namespace Fortran::IntermediateRepresentation {
|
||||
namespace Fortran::FIR {
|
||||
|
||||
void IntermediateRepresentationBuilder::dump() const {
|
||||
void FIRBuilder::dump() const {
|
||||
std::cerr << "builder state:\n";
|
||||
}
|
||||
|
|
@ -12,16 +12,16 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#ifndef FORTRAN_INTERMEDIATEREPRESENTATION_BUILDER_H_
|
||||
#define FORTRAN_INTERMEDIATEREPRESENTATION_BUILDER_H_
|
||||
#ifndef FORTRAN_FIR_BUILDER_H_
|
||||
#define FORTRAN_FIR_BUILDER_H_
|
||||
|
||||
#include "stmt.h"
|
||||
#include <initializer_list>
|
||||
|
||||
namespace Fortran::IntermediateRepresentation {
|
||||
namespace Fortran::FIR {
|
||||
|
||||
struct IntermediateRepresentationBuilder {
|
||||
explicit IntermediateRepresentationBuilder(BasicBlock &block)
|
||||
struct FIRBuilder {
|
||||
explicit FIRBuilder(BasicBlock &block)
|
||||
: cursorRegion_{block.getParent()}, cursorBlock_{&block} {}
|
||||
template<typename A> Statement &Insert(A &&s) {
|
||||
CHECK(GetInsertionPoint());
|
Loading…
Reference in New Issue