Skip to content

Commit a268a63

Browse files
committed
Revert "[LTO] Add a function LTOCodeGenerator::getMergedModule"
This reverts commit 75a5eaf.
1 parent 700d16b commit a268a63

File tree

3 files changed

+2
-31
lines changed

3 files changed

+2
-31
lines changed

llvm/include/llvm/LTO/legacy/LTOCodeGenerator.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,6 @@ struct LTOCodeGenerator {
193193
void resetMergedModule() { MergedModule.reset(); }
194194
void DiagnosticHandler(const DiagnosticInfo &DI);
195195

196-
Module &getMergedModule() { return *MergedModule; }
197-
198196
private:
199197
/// Verify the merged module on first call.
200198
///

llvm/test/tools/llvm-lto/dump.ll

Lines changed: 0 additions & 14 deletions
This file was deleted.

llvm/tools/llvm-lto/llvm-lto.cpp

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,6 @@ static cl::opt<bool>
197197
cl::desc("Write merged LTO module to file before CodeGen"),
198198
cl::cat(LTOCategory));
199199

200-
static cl::opt<bool>
201-
DumpLinkedModule("dump-linked-module", cl::init(false),
202-
cl::desc("Dump linked LTO module before optimize"),
203-
cl::cat(LTOCategory));
204-
205200
static cl::list<std::string> InputFilenames(cl::Positional, cl::OneOrMore,
206201
cl::desc("<input bitcode files>"),
207202
cl::cat(LTOCategory));
@@ -321,11 +316,11 @@ namespace {
321316
if (!CurrentActivity.empty())
322317
OS << ' ' << CurrentActivity;
323318
OS << ": ";
324-
319+
325320
DiagnosticPrinterRawOStream DP(OS);
326321
DI.print(DP);
327322
OS << '\n';
328-
323+
329324
if (DI.getSeverity() == DS_Error)
330325
exit(1);
331326
return true;
@@ -1120,14 +1115,6 @@ int main(int argc, char **argv) {
11201115
error("error compiling the code");
11211116

11221117
} else {
1123-
if (DumpLinkedModule) {
1124-
if (SaveLinkedModuleFile)
1125-
error(": -dump-linked-module must be used without -dump-linked-module");
1126-
1127-
Module &M = CodeGen.getMergedModule();
1128-
M.dump();
1129-
}
1130-
11311118
if (Parallelism != 1)
11321119
error("-j must be specified together with -o");
11331120

0 commit comments

Comments
 (0)