forked from llvm-mirror/llvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[llvm-pdbdump] Abstract some of the YAML/Raw printing code.
There is a lot of duplicate code for printing line info between YAML and the raw output printer. This introduces a base class that can be shared between the two, and makes some minor cleanups in the process. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301728 91177308-0d34-0410-b5e6-96231b3b80d8
- Loading branch information
Zachary Turner
committed
Apr 29, 2017
1 parent
e85d77f
commit 40d2ca9
Showing
22 changed files
with
420 additions
and
270 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,59 @@ | ||
; RUN: llvm-pdbdump pdb2yaml -dbi-module-lines %p/Inputs/empty.pdb \ | ||
; RUN: | FileCheck -check-prefix=YAML %s | ||
YAML: --- | ||
YAML: MSF: | ||
YAML: SuperBlock: | ||
YAML: BlockSize: 4096 | ||
YAML: FreeBlockMap: 2 | ||
YAML: NumBlocks: 25 | ||
YAML: NumDirectoryBytes: 136 | ||
YAML: Unknown1: 0 | ||
YAML: BlockMapAddr: 24 | ||
YAML: NumDirectoryBlocks: 1 | ||
YAML: DirectoryBlocks: [ 23 ] | ||
YAML: NumStreams: 0 | ||
YAML: FileSize: 102400 | ||
YAML: DbiStream: | ||
YAML: VerHeader: V70 | ||
YAML: Age: 1 | ||
YAML: BuildNumber: 35840 | ||
YAML: PdbDllVersion: 31101 | ||
YAML: PdbDllRbld: 0 | ||
YAML: Flags: 1 | ||
YAML: MachineType: x86 | ||
YAML: Modules: | ||
YAML: - Module: 'd:\src\llvm\test\DebugInfo\PDB\Inputs\empty.obj' | ||
YAML: ObjFile: 'd:\src\llvm\test\DebugInfo\PDB\Inputs\empty.obj' | ||
YAML: SourceFiles: | ||
YAML: - 'd:\src\llvm\test\debuginfo\pdb\inputs\empty.cpp' | ||
YAML: LineInfo: | ||
YAML: Lines: | ||
YAML: CodeSize: 10 | ||
YAML: Flags: [ ] | ||
YAML: RelocOffset: 16 | ||
YAML: RelocSegment: 1 | ||
YAML: LineInfo: | ||
YAML: - FileName: 'd:\src\llvm\test\debuginfo\pdb\inputs\empty.cpp' | ||
YAML: Lines: | ||
YAML: - Offset: 0 | ||
YAML: LineStart: 5 | ||
YAML: IsStatement: true | ||
YAML: EndDelta: 5 | ||
YAML: - Offset: 3 | ||
YAML: LineStart: 6 | ||
YAML: IsStatement: true | ||
YAML: EndDelta: 6 | ||
YAML: - Offset: 8 | ||
YAML: LineStart: 7 | ||
YAML: IsStatement: true | ||
YAML: EndDelta: 7 | ||
YAML: Columns: | ||
YAML: Checksums: | ||
YAML: - FileName: 'd:\src\llvm\test\debuginfo\pdb\inputs\empty.cpp' | ||
YAML: Kind: MD5 | ||
YAML: Checksum: A0A5BD0D3ECD93FC29D19DE826FBF4BC | ||
YAML: - Module: '* Linker *' | ||
YAML: ObjFile: '' | ||
; RUN: llvm-pdbdump pdb2yaml -dbi-module-lines %p/Inputs/empty.pdb \ | ||
; RUN: | FileCheck -check-prefix=YAML %s | ||
|
||
|
||
YAML: --- | ||
YAML: MSF: | ||
YAML: SuperBlock: | ||
YAML: BlockSize: 4096 | ||
YAML: FreeBlockMap: 2 | ||
YAML: NumBlocks: 25 | ||
YAML: NumDirectoryBytes: 136 | ||
YAML: Unknown1: 0 | ||
YAML: BlockMapAddr: 24 | ||
YAML: NumDirectoryBlocks: 1 | ||
YAML: DirectoryBlocks: [ 23 ] | ||
YAML: NumStreams: 0 | ||
YAML: FileSize: 102400 | ||
YAML: DbiStream: | ||
YAML: VerHeader: V70 | ||
YAML: Age: 1 | ||
YAML: BuildNumber: 35840 | ||
YAML: PdbDllVersion: 31101 | ||
YAML: PdbDllRbld: 0 | ||
YAML: Flags: 1 | ||
YAML: MachineType: x86 | ||
YAML: Modules: | ||
YAML: - Module: 'd:\src\llvm\test\DebugInfo\PDB\Inputs\empty.obj' | ||
YAML: ObjFile: 'd:\src\llvm\test\DebugInfo\PDB\Inputs\empty.obj' | ||
YAML: SourceFiles: | ||
YAML: - 'd:\src\llvm\test\debuginfo\pdb\inputs\empty.cpp' | ||
YAML: LineInfo: | ||
YAML: Checksums: | ||
YAML: - FileName: 'd:\src\llvm\test\debuginfo\pdb\inputs\empty.cpp' | ||
YAML: Kind: MD5 | ||
YAML: Checksum: A0A5BD0D3ECD93FC29D19DE826FBF4BC | ||
YAML: Lines: | ||
YAML: CodeSize: 10 | ||
YAML: Flags: [ ] | ||
YAML: RelocOffset: 16 | ||
YAML: RelocSegment: 1 | ||
YAML: Blocks: | ||
YAML: - FileName: 'd:\src\llvm\test\debuginfo\pdb\inputs\empty.cpp' | ||
YAML: Lines: | ||
YAML: - Offset: 0 | ||
YAML: LineStart: 5 | ||
YAML: IsStatement: true | ||
YAML: EndDelta: 0 | ||
YAML: - Offset: 3 | ||
YAML: LineStart: 6 | ||
YAML: IsStatement: true | ||
YAML: EndDelta: 0 | ||
YAML: - Offset: 8 | ||
YAML: LineStart: 7 | ||
YAML: IsStatement: true | ||
YAML: EndDelta: 0 | ||
YAML: Columns: | ||
YAML: - Module: '* Linker *' | ||
YAML: ObjFile: '' | ||
YAML: ... |
Oops, something went wrong.