diff options
| author | Zachary Turner <zturner@google.com> | 2018-10-08 22:38:27 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2018-10-08 22:38:27 +0000 |
| commit | c8207fa59ba19d63b1356d489028b5ec0bf6eafd (patch) | |
| tree | 2f176bacf1677593c79ff96d2793b822bc8276b4 /llvm/test/DebugInfo/PDB | |
| parent | bc1cd929bf9f4a65911c85bdc45b51a5ad6d5449 (diff) | |
| download | bcm5719-llvm-c8207fa59ba19d63b1356d489028b5ec0bf6eafd.tar.gz bcm5719-llvm-c8207fa59ba19d63b1356d489028b5ec0bf6eafd.zip | |
[PDB] fix a bug in global stream name lookup.
When we're looking up a record in the last hash bucket chain, we
need to be careful with the end-offset calculation.
llvm-svn: 344001
Diffstat (limited to 'llvm/test/DebugInfo/PDB')
| -rw-r--r-- | llvm/test/DebugInfo/PDB/pdbdump-global-lookup.test | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/DebugInfo/PDB/pdbdump-global-lookup.test b/llvm/test/DebugInfo/PDB/pdbdump-global-lookup.test index 37309f20520..18a6f18101c 100644 --- a/llvm/test/DebugInfo/PDB/pdbdump-global-lookup.test +++ b/llvm/test/DebugInfo/PDB/pdbdump-global-lookup.test @@ -4,6 +4,12 @@ ; RUN: -global-name=abcdefg \ ; RUN: %p/Inputs/every-function.pdb | FileCheck %s +; This is a separate command line invocation because B::PureFunc +; is special. It's in the last hash bucket, so it exercises a special +; calculation path. +; RUN: llvm-pdbutil dump -globals -global-name=B::PureFunc \ +; RUN: %p/Inputs/symbolformat.pdb | FileCheck --check-prefix=PURE %s + CHECK: Global Symbols CHECK-NEXT: ============================================================ CHECK-NEXT: Global Name `operator delete` @@ -16,3 +22,9 @@ CHECK-NEXT: 2016 | S_PROCREF [size = 20] `main` CHECK-NEXT: module = 1, sum name = 0, offset = 1952 CHECK-NEXT: Global Name `abcdefg` CHECK-NEXT: (no matching records found) + +PURE: Global Symbols +PURE-NEXT: ============================================================ +PURE-NEXT: Global Name `B::PureFunc` +PURE-NEXT: 980 | S_PROCREF [size = 28] `B::PureFunc` +PURE-NEXT: module = 1, sum name = 0, offset = 800 |

