File tree Expand file tree Collapse file tree 3 files changed +2
-31
lines changed Expand file tree Collapse file tree 3 files changed +2
-31
lines changed Original file line number Diff line number Diff line change @@ -193,8 +193,6 @@ struct LTOCodeGenerator {
193
193
void resetMergedModule () { MergedModule.reset (); }
194
194
void DiagnosticHandler (const DiagnosticInfo &DI);
195
195
196
- Module &getMergedModule () { return *MergedModule; }
197
-
198
196
private:
199
197
// / Verify the merged module on first call.
200
198
// /
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -197,11 +197,6 @@ static cl::opt<bool>
197
197
cl::desc(" Write merged LTO module to file before CodeGen" ),
198
198
cl::cat(LTOCategory));
199
199
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
-
205
200
static cl::list<std::string> InputFilenames (cl::Positional, cl::OneOrMore,
206
201
cl::desc (" <input bitcode files>" ),
207
202
cl::cat(LTOCategory));
@@ -321,11 +316,11 @@ namespace {
321
316
if (!CurrentActivity.empty ())
322
317
OS << ' ' << CurrentActivity;
323
318
OS << " : " ;
324
-
319
+
325
320
DiagnosticPrinterRawOStream DP (OS);
326
321
DI.print (DP);
327
322
OS << ' \n ' ;
328
-
323
+
329
324
if (DI.getSeverity () == DS_Error)
330
325
exit (1 );
331
326
return true ;
@@ -1120,14 +1115,6 @@ int main(int argc, char **argv) {
1120
1115
error (" error compiling the code" );
1121
1116
1122
1117
} 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
-
1131
1118
if (Parallelism != 1 )
1132
1119
error (" -j must be specified together with -o" );
1133
1120
You can’t perform that action at this time.
0 commit comments