[llvm-dwp] Start error messages with a lowercase letter.

We usually start error messages with lowercase letters and most of them
in llvm-dwp follow that rule. This patch fixes a few messages that
started with capital letters.

Differential revision: https://reviews.llvm.org/D76277
This commit is contained in:
Igor Kudrin 2020-03-17 18:59:48 +07:00
parent 0b458d4dca
commit b1c8a378f7
5 changed files with 12 additions and 12 deletions

View File

@ -18,10 +18,10 @@ RUN: | FileCheck --check-prefix=DWO1DWP %s
Build from a, b, and c.c all containing a single void() func by the name of the file. Build from a, b, and c.c all containing a single void() func by the name of the file.
DWOS: error: Duplicate DWO ID ({{.*}}) in 'c.c' and 'c.c'{{$}} DWOS: error: duplicate DWO ID ({{.*}}) in 'c.c' and 'c.c'{{$}}
1DWP: error: Duplicate DWO ID ({{.*}}) in 'c.c' (from '{{.*}}ac.dwp') and 'c.c'{{$}} 1DWP: error: duplicate DWO ID ({{.*}}) in 'c.c' (from '{{.*}}ac.dwp') and 'c.c'{{$}}
2DWP: error: Duplicate DWO ID ({{.*}}) in 'c.c' and 'c.c' (from '{{.*}}bc.dwp'){{$}} 2DWP: error: duplicate DWO ID ({{.*}}) in 'c.c' and 'c.c' (from '{{.*}}bc.dwp'){{$}}
DWODWOS: error: Duplicate DWO ID ({{.*}}) in 'c.c' and 'c.c'{{$}} DWODWOS: error: duplicate DWO ID ({{.*}}) in 'c.c' and 'c.c'{{$}}
DWO1DWP: error: Duplicate DWO ID ({{.*}}) in 'c.c' (from 'c.dwo' in '{{.*}}ac.dwp') and 'c.c'{{$}} DWO1DWP: error: duplicate DWO ID ({{.*}}) in 'c.c' (from 'c.dwo' in '{{.*}}ac.dwp') and 'c.c'{{$}}
DWO2DWP: error: Duplicate DWO ID ({{.*}}) in 'c.c' and 'c.c' (from 'c.dwo' in '{{.*}}bc.dwp'){{$}} DWO2DWP: error: duplicate DWO ID ({{.*}}) in 'c.c' and 'c.c' (from 'c.dwo' in '{{.*}}bc.dwp'){{$}}

View File

@ -5,4 +5,4 @@ CHECK: Type Unit
CHECK: Type Unit CHECK: Type Unit
// Check that llvm-dwp can parse DW_FORM_string for CU name // Check that llvm-dwp can parse DW_FORM_string for CU name
DUP: Duplicate DWO ID ({{.*}}) in 'a.cpp' and 'a.cpp' DUP: duplicate DWO ID ({{.*}}) in 'a.cpp' and 'a.cpp'

View File

@ -1,3 +1,3 @@
RUN: not llvm-dwp %p/../Inputs/invalid_cu_index/x.dwp -o %t 2>&1 | FileCheck %s RUN: not llvm-dwp %p/../Inputs/invalid_cu_index/x.dwp -o %t 2>&1 | FileCheck %s
CHECK: error: Failed to parse cu_index CHECK: error: failed to parse cu_index

View File

@ -1,3 +1,3 @@
RUN: not llvm-dwp %p/../Inputs/missing_tu_index/x.dwp -o %t 2>&1 | FileCheck %s RUN: not llvm-dwp %p/../Inputs/missing_tu_index/x.dwp -o %t 2>&1 | FileCheck %s
CHECK: error: Failed to parse tu_index CHECK: error: failed to parse tu_index

View File

@ -479,7 +479,7 @@ static Error
buildDuplicateError(const std::pair<uint64_t, UnitIndexEntry> &PrevE, buildDuplicateError(const std::pair<uint64_t, UnitIndexEntry> &PrevE,
const CompileUnitIdentifiers &ID, StringRef DWPName) { const CompileUnitIdentifiers &ID, StringRef DWPName) {
return make_error<DWPError>( return make_error<DWPError>(
std::string("Duplicate DWO ID (") + utohexstr(PrevE.first) + ") in " + std::string("duplicate DWO ID (") + utohexstr(PrevE.first) + ") in " +
buildDWODescription(PrevE.second.Name, PrevE.second.DWPName, buildDWODescription(PrevE.second.Name, PrevE.second.DWPName,
PrevE.second.DWOName) + PrevE.second.DWOName) +
" and " + buildDWODescription(ID.Name, DWPName, ID.DWOName)); " and " + buildDWODescription(ID.Name, DWPName, ID.DWOName));
@ -596,7 +596,7 @@ static Error write(MCStreamer &Out, ArrayRef<std::string> Inputs) {
DWARFUnitIndex CUIndex(DW_SECT_INFO); DWARFUnitIndex CUIndex(DW_SECT_INFO);
DataExtractor CUIndexData(CurCUIndexSection, Obj.isLittleEndian(), 0); DataExtractor CUIndexData(CurCUIndexSection, Obj.isLittleEndian(), 0);
if (!CUIndex.parse(CUIndexData)) if (!CUIndex.parse(CUIndexData))
return make_error<DWPError>("Failed to parse cu_index"); return make_error<DWPError>("failed to parse cu_index");
for (const DWARFUnitIndex::Entry &E : CUIndex.getRows()) { for (const DWARFUnitIndex::Entry &E : CUIndex.getRows()) {
auto *I = E.getOffsets(); auto *I = E.getOffsets();
@ -631,7 +631,7 @@ static Error write(MCStreamer &Out, ArrayRef<std::string> Inputs) {
DWARFUnitIndex TUIndex(DW_SECT_TYPES); DWARFUnitIndex TUIndex(DW_SECT_TYPES);
DataExtractor TUIndexData(CurTUIndexSection, Obj.isLittleEndian(), 0); DataExtractor TUIndexData(CurTUIndexSection, Obj.isLittleEndian(), 0);
if (!TUIndex.parse(TUIndexData)) if (!TUIndex.parse(TUIndexData))
return make_error<DWPError>("Failed to parse tu_index"); return make_error<DWPError>("failed to parse tu_index");
addAllTypesFromDWP(Out, TypeIndexEntries, TUIndex, TypesSection, addAllTypesFromDWP(Out, TypeIndexEntries, TUIndex, TypesSection,
CurTypesSection.front(), CurEntry, CurTypesSection.front(), CurEntry,
ContributionOffsets[DW_SECT_TYPES - DW_SECT_INFO]); ContributionOffsets[DW_SECT_TYPES - DW_SECT_INFO]);