Fix build and PDB test on Linux

llvm-svn: 305716
This commit is contained in:
Reid Kleckner 2017-06-19 17:27:31 +00:00
parent 77d0bb4720
commit adea0ce7ca
2 changed files with 5 additions and 5 deletions

View File

@ -209,7 +209,7 @@ static void addObjectsToPDB(BumpPtrAllocator &Alloc, SymbolTable *Symtab,
fatal(".debug$S sections must have both a string table subsection "
"and a checksum subsection table or neither");
auto NewChecksums =
std::make_unique<DebugChecksumsSubsection>(*PDBStrTab);
make_unique<DebugChecksumsSubsection>(*PDBStrTab);
for (FileChecksumEntry &FC : Checksums) {
StringRef FileName = ExitOnErr(CVStrTab.getString(FC.FileNameOffset));
ExitOnErr(Builder.getDbiBuilder().addModuleSourceFile(

View File

@ -32,8 +32,8 @@ CHECK-NEXT: Flags: 0
CHECK-NEXT: MachineType: x86
CHECK-NEXT: Modules:
CHECK-LABEL: - Module: '{{.*}}pdb_lines_1.obj'
CHECK-NEXT: ObjFile: '{{.*}}pdb_lines_1.obj'
CHECK-LABEL: - Module: {{.*}}pdb_lines_1.obj
CHECK-NEXT: ObjFile: {{.*}}pdb_lines_1.obj
CHECK-NEXT: SourceFiles:
CHECK-NEXT: - '{{.*}}pdb_lines_1.c'
CHECK-NEXT: - '{{.*}}foo.h'
@ -93,8 +93,8 @@ CHECK-NEXT: IsStatement: true
CHECK-NEXT: EndDelta: 0
CHECK-NEXT: Columns:
CHECK-LABEL: - Module: '{{.*}}pdb_lines_2.obj'
CHECK-NEXT: ObjFile: '{{.*}}pdb_lines_2.obj'
CHECK-LABEL: - Module: {{.*}}pdb_lines_2.obj
CHECK-NEXT: ObjFile: {{.*}}pdb_lines_2.obj
CHECK-NEXT: SourceFiles:
CHECK-NEXT: - '{{.*}}pdb_lines_2.c'
CHECK-NEXT: Subsections: