From a53e96dcef0fb416a3d776b2a25e64addc05a2a7 Mon Sep 17 00:00:00 2001 From: Fred Chow Date: Sat, 27 Mar 2021 01:44:31 -0700 Subject: [PATCH] More driver changes to recognize .bpl as input file --- src/mapleall/maple_driver/src/maple_comb_compiler.cpp | 3 +++ src/mapleall/maple_driver/src/mpl_options.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/mapleall/maple_driver/src/maple_comb_compiler.cpp b/src/mapleall/maple_driver/src/maple_comb_compiler.cpp index 1bd79f2920..7f3763713e 100644 --- a/src/mapleall/maple_driver/src/maple_comb_compiler.cpp +++ b/src/mapleall/maple_driver/src/maple_comb_compiler.cpp @@ -31,6 +31,9 @@ std::string MapleCombCompiler::GetInputFileName(const MplOptions &options) const if (options.GetInputFileType() == InputFileType::kFileTypeVtableImplMpl) { return options.GetOutputFolder() + options.GetOutputName() + ".VtableImpl.mpl"; } + if (options.GetInputFileType() == InputFileType::kFileTypeBpl) { + return options.GetOutputFolder() + options.GetOutputName() + ".bpl"; + } return options.GetOutputFolder() + options.GetOutputName() + ".mpl"; } diff --git a/src/mapleall/maple_driver/src/mpl_options.cpp b/src/mapleall/maple_driver/src/mpl_options.cpp index 30ef4d5b58..ea14f179e1 100644 --- a/src/mapleall/maple_driver/src/mpl_options.cpp +++ b/src/mapleall/maple_driver/src/mpl_options.cpp @@ -466,6 +466,9 @@ std::string MplOptions::GetInputFileNameForPrint() const{ if (inputFileType == InputFileType::kFileTypeVtableImplMpl) { return outputFolder + outputName + ".VtableImpl.mpl"; } + if (inputFileType == InputFileType::kFileTypeBpl) { + return outputFolder + outputName + ".bpl"; + } return outputFolder + outputName + ".mpl"; } -- Gitee