From e58e7e647620f09025fe42d5ff69de7b65a2487c Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 10 Mar 2015 23:06:32 +0000 Subject: [PATCH] Add missing section symbol to COFF's .debug_types.dwo. Should bring the cygwin bots back. I added a triple to the test that was failing so that it would have failed on Linux. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231882 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/MC/MCObjectFileInfo.cpp | 2 +- test/DebugInfo/empty.ll | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/MC/MCObjectFileInfo.cpp b/lib/MC/MCObjectFileInfo.cpp index 6370203b2fc..ec1d4ba3364 100644 --- a/lib/MC/MCObjectFileInfo.cpp +++ b/lib/MC/MCObjectFileInfo.cpp @@ -651,7 +651,7 @@ void MCObjectFileInfo::InitCOFFMCObjectFileInfo(Triple T) { ".debug_types.dwo", COFF::IMAGE_SCN_MEM_DISCARDABLE | COFF::IMAGE_SCN_CNT_INITIALIZED_DATA | COFF::IMAGE_SCN_MEM_READ, - SectionKind::getMetadata()); + SectionKind::getMetadata(), "section_types_dwo"); DwarfAbbrevDWOSection = Ctx->getCOFFSection( ".debug_abbrev.dwo", COFF::IMAGE_SCN_MEM_DISCARDABLE | COFF::IMAGE_SCN_CNT_INITIALIZED_DATA | diff --git a/test/DebugInfo/empty.ll b/test/DebugInfo/empty.ll index f91105aba04..3c2b0539d0d 100644 --- a/test/DebugInfo/empty.ll +++ b/test/DebugInfo/empty.ll @@ -3,6 +3,9 @@ ; RUN: %llc_dwarf < %s -filetype=obj | llvm-dwarfdump - | FileCheck %s ; RUN: %llc_dwarf -split-dwarf=Enable < %s -filetype=obj | llvm-dwarfdump - | FileCheck --check-prefix=FISSION %s +; RUN: llc -mtriple i686-pc-cygwin < %s -filetype=obj | llvm-dwarfdump - | FileCheck %s +; RUN: llc -mtriple i686-pc-cygwin -split-dwarf=Enable < %s -filetype=obj | llvm-dwarfdump - | FileCheck --check-prefix=FISSION %s + ; darwin has a workaround for a linker bug so it always emits one line table entry ; XFAIL: darwin -- 2.34.1