summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorAdrian McCarthy <amccarth@google.com>2016-11-02 21:30:35 +0000
committerAdrian McCarthy <amccarth@google.com>2016-11-02 21:30:35 +0000
commit4333daab1c69b6e2e789df68375007a69f3bb9da (patch)
tree7309f08207a49be8f7c0e6d0c983bb99779e3142 /llvm/lib/CodeGen
parentcb2e749e4611d22e710f5c5084420909312405b3 (diff)
downloadbcm5719-llvm-4333daab1c69b6e2e789df68375007a69f3bb9da.tar.gz
bcm5719-llvm-4333daab1c69b6e2e789df68375007a69f3bb9da.zip
Emit S_COMPILE3 record once per TU rather than once per function
This has some ripple effects in several tests. llvm-svn: 285862
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
index fc691456a48..aa7a301687f 100644
--- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
@@ -391,6 +391,11 @@ void CodeViewDebug::endModule() {
// Use the generic .debug$S section, and make a subsection for all the inlined
// subprograms.
switchToDebugSectionForSymbol(nullptr);
+
+ MCSymbol *CompilerInfo = beginCVSubsection(ModuleSubstreamKind::Symbols);
+ emitCompilerInformation();
+ endCVSubsection(CompilerInfo);
+
emitInlineeLinesSubsection();
// Emit per-function debug information.
@@ -2131,8 +2136,6 @@ MCSymbol *CodeViewDebug::beginCVSubsection(ModuleSubstreamKind Kind) {
OS.AddComment("Subsection size");
OS.emitAbsoluteSymbolDiff(EndLabel, BeginLabel, 4);
OS.EmitLabel(BeginLabel);
- if (Kind == ModuleSubstreamKind::Symbols)
- emitCompilerInformation();
return EndLabel;
}
OpenPOWER on IntegriCloud