[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:
Eric Schweitz 2019-02-22 15:43:03 -08:00
parent 79a264856c
commit 2169307cd8
2 changed files with 7 additions and 7 deletions

View File

@ -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";
}

View File

@ -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());