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] Add support for dumping global variables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230744 91177308-0d34-0410-b5e6-96231b3b80d8
- Loading branch information
Zachary Turner
committed
Feb 27, 2015
1 parent
b1961a3
commit 964a619
Showing
7 changed files
with
82 additions
and
56 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
Binary file not shown.
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,32 +1,40 @@ | ||
; RUN: llvm-pdbdump %p/Inputs/empty.pdb | FileCheck %s -check-prefix=NO_ARGS | ||
; RUN: llvm-pdbdump -types %p/Inputs/empty.pdb | FileCheck %s -check-prefix=TYPES | ||
; RUN: llvm-pdbdump -compilands %p/Inputs/empty.pdb | FileCheck %s -check-prefix=COMPILANDS | ||
; RUN: llvm-pdbdump -types -compilands %p/Inputs/empty.pdb | FileCheck %s -check-prefix=BOTH | ||
; RUN: llvm-pdbdump -types -compilands %p/Inputs/empty.pdb | FileCheck %s -check-prefix=MULTIPLE | ||
|
||
; Check that neither symbols nor compilands are dumped when neither argument specified. | ||
; NO_ARGS: empty.pdb | ||
; NO_ARGS: Guid: {0B355641-86A0-A249-896F-9988FAE52FF0} | ||
; NO_ARGS: Attributes: HasPrivateSymbols | ||
; NO_ARGS-NOT: Dumping compilands | ||
; NO_ARGS-NOT: Dumping symbols | ||
; NO_ARGS-NOT: ---TYPES--- | ||
; NO_ARGS-NOT: ---COMPILANDS--- | ||
; NO_ARGS-NOT: ---GLOBALS--- | ||
; NO_ARGS-NOT: ---SYMBOLS--- | ||
|
||
; Check that only symbols are dumped when only -types is specified. | ||
; Check that only types are dumped when only -types is specified. | ||
; TYPES: empty.pdb | ||
; TYPES: Guid: {0B355641-86A0-A249-896F-9988FAE52FF0} | ||
; TYPES: Attributes: HasPrivateSymbols | ||
; TYPES: Dumping types | ||
; TYPES-NOT: Dumping compilands | ||
; TYPES: ---TYPES--- | ||
; TYPES-NOT: ---COMPILANDS--- | ||
; TYPES-NOT: ---GLOBALS--- | ||
; TYPES-NOT: ---SYMBOLS--- | ||
|
||
; Check that only compilands are dumped when only -compilands is specified. | ||
; COMPILANDS: empty.pdb | ||
; COMPILANDS: Guid: {0B355641-86A0-A249-896F-9988FAE52FF0} | ||
; COMPILANDS: Attributes: HasPrivateSymbols | ||
; COMPILANDS-NOT: Dumping types | ||
; COMPILANDS: Dumping compilands | ||
; COMPILANDS: ---COMPILANDS--- | ||
; COMPILANDS-NOT: ---TYPES--- | ||
; COMPILANDS-NOT: ---GLOBALS--- | ||
; COMPILANDS-NOT: ---SYMBOLS--- | ||
|
||
; Check that types and compilands are dumped when both arguments are specified. | ||
; BOTH: empty.pdb | ||
; BOTH: Guid: {0B355641-86A0-A249-896F-9988FAE52FF0} | ||
; BOTH: Attributes: HasPrivateSymbols | ||
; BOTH: Dumping types | ||
; BOTH: Dumping compilands | ||
; MULTIPLE: empty.pdb | ||
; MULTIPLE: Guid: {0B355641-86A0-A249-896F-9988FAE52FF0} | ||
; MULTIPLE: Attributes: HasPrivateSymbols | ||
; MULTIPLE: ---COMPILANDS--- | ||
; MULTIPLE: ---TYPES--- | ||
; MULTIPLE-NOT: ---GLOBALS--- | ||
; MULTIPLE-NOT: ---SYMBOLS--- |
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