Skip to content

Commit 17f06bb

Browse files
committed
Revert "Omit empty sections in map file output"
This reverts commit 20e8f39. Signed-off-by: Parth Arora <partaror@qti.qualcomm.com>
1 parent 20e8f39 commit 17f06bb

8 files changed

Lines changed: 1 addition & 72 deletions

File tree

lib/LayoutMap/TextLayoutPrinter.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -358,14 +358,6 @@ void TextLayoutPrinter::printGlobalPluginInfo(Module &M, bool UseColor) {
358358
const LinkerScript::PluginVectorT &UniversalPlugins =
359359
M.getPluginManager().getUniversalPlugins();
360360

361-
bool hasPluginInfo =
362-
!UniversalPlugins.empty() || !PluginListForSectionMatcher.empty() ||
363-
!PluginListForSectionIterator.empty() ||
364-
!PluginListForOutputSectionIterator.empty() ||
365-
!PluginListForMemorySize.empty() || !PluginListForFileSize.empty();
366-
if (!hasPluginInfo)
367-
return;
368-
369361
if (UseColor)
370362
outputStream().changeColor(llvm::raw_ostream::GREEN);
371363
outputStream() << "Linker Plugin Information"
@@ -423,9 +415,6 @@ void TextLayoutPrinter::printGlobalPluginInfo(Module &M, bool UseColor) {
423415
for (auto &P : PluginListForFileSize)
424416
PrintPlugin(*P);
425417
}
426-
427-
if (!M.getScript().getPluginRunList().size())
428-
return;
429418
outputStream() << "Linker Plugin Run Information"
430419
<< "\n";
431420
int Index = 0;
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
add_subdirectory(EmitMapFileEvenInCrash)
2-
add_subdirectory(EmptyMapSections)
32
add_subdirectory(PluginAPI)
43
add_subdirectory(SymbolResolutionReport)

test/Common/standalone/CommandLine/BuildAndReproduce/BuildAndReproduce.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ RUN: %filecheck %s < %t2.out.map
2020
#CHECK: Linker scripts used (including INCLUDE command)
2121
#CHECK: {{.*}}script.t({{.*}})
2222
#CHECK: bar.t({{.*}})
23+
#CHECK: Linker Plugin Information
2324
#CHECK: foo.o*(.text*) #Rule 1, {{.*}}script.t {{.*}}
2425
#CHECK: bar.o*(.text*) #Rule 3, bar.t {{.*}}
2526
#END_TEST

test/Common/standalone/EmptyMapSections/CMakeLists.txt

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

test/Common/standalone/EmptyMapSections/EmptyMapSections.test

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

test/Common/standalone/EmptyMapSections/EmptyPlugin.cpp

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

test/Common/standalone/EmptyMapSections/Inputs/1.c

Lines changed: 0 additions & 1 deletion
This file was deleted.

test/Common/standalone/EmptyMapSections/Inputs/PluginConfig.yaml

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

0 commit comments

Comments
 (0)