diff --git a/src/mapleall/maple_driver/src/driver_runner.cpp b/src/mapleall/maple_driver/src/driver_runner.cpp index c901cc076b05a1b94d7be2af10919b85fa62ed87..759b59c6715d39e092366da84a0207b0f1753b9a 100644 --- a/src/mapleall/maple_driver/src/driver_runner.cpp +++ b/src/mapleall/maple_driver/src/driver_runner.cpp @@ -208,7 +208,9 @@ ErrorCode DriverRunner::ParseInput() const { MIRParser parser(*theModule); ErrorCode ret = kErrorNoError; if (!fileParsed) { - if (inputFileType != kFileTypeBpl) { + if (inputFileType != kFileTypeBpl && + inputFileType != kFileTypeMbc && + inputFileType != kFileTypeLmbc) { bool parsed = parser.ParseMIR(0, 0, false, true); if (!parsed) { ret = kErrorExit; @@ -235,7 +237,9 @@ ErrorCode DriverRunner::ParseInput() const { ErrorCode DriverRunner::ParseSrcLang(MIRSrcLang &srcLang) const { ErrorCode ret = kErrorNoError; - if (inputFileType != kFileTypeBpl) { + if (inputFileType != kFileTypeBpl && + inputFileType != kFileTypeMbc && + inputFileType != kFileTypeLmbc) { MIRParser parser(*theModule); bool parsed = parser.ParseSrcLang(srcLang); if (!parsed) { diff --git a/src/mapleall/maple_driver/src/maple_comb_compiler.cpp b/src/mapleall/maple_driver/src/maple_comb_compiler.cpp index edefcc0d64eeaf9d8bfd425c5bee820eec42fdb6..d749855b6cc152600b49ece5badfb0d3aacc9633 100644 --- a/src/mapleall/maple_driver/src/maple_comb_compiler.cpp +++ b/src/mapleall/maple_driver/src/maple_comb_compiler.cpp @@ -33,6 +33,12 @@ std::string MapleCombCompiler::GetInputFileName(const MplOptions &options, const if (action.GetInputFileType() == InputFileType::kFileTypeBpl) { return action.GetFullOutputName() + ".bpl"; } + if (action.GetInputFileType() == InputFileType::kFileTypeMbc) { + return action.GetFullOutputName() + ".mbc"; + } + if (action.GetInputFileType() == InputFileType::kFileTypeLmbc) { + return action.GetFullOutputName() + ".lmbc"; + } return action.GetFullOutputName() + ".mpl"; } diff --git a/src/mapleall/maple_driver/src/mpl_options.cpp b/src/mapleall/maple_driver/src/mpl_options.cpp index b8c3c5da5dbbe9e1a56781dc3aadae921eda08b6..7814eb0b57daa0994191a8e674ef631d02ee8367 100644 --- a/src/mapleall/maple_driver/src/mpl_options.cpp +++ b/src/mapleall/maple_driver/src/mpl_options.cpp @@ -807,6 +807,12 @@ std::string MplOptions::GetInputFileNameForPrint(const Action * const action) co if (action->GetInputFileType() == InputFileType::kFileTypeBpl) { return action->GetFullOutputName() + ".bpl"; } + if (action->GetInputFileType() == InputFileType::kFileTypeMbc) { + return action->GetFullOutputName() + ".mbc"; + } + if (action->GetInputFileType() == InputFileType::kFileTypeLmbc) { + return action->GetFullOutputName() + ".lmbc"; + } return action->GetFullOutputName() + ".mpl"; }