diff options
| author | Pavel Labath <labath@google.com> | 2018-06-12 13:11:25 +0000 |
|---|---|---|
| committer | Pavel Labath <labath@google.com> | 2018-06-12 13:11:25 +0000 |
| commit | dc4bd2e4419fd96842385b12ebe096c2929afc28 (patch) | |
| tree | 0b9b0bf56c71f6edc177e572b8c83b9c9d188806 /lldb/lit/SymbolFile | |
| parent | 07828811610dfaef98c9eaa82a754c516b4e2801 (diff) | |
| download | bcm5719-llvm-dc4bd2e4419fd96842385b12ebe096c2929afc28.tar.gz bcm5719-llvm-dc4bd2e4419fd96842385b12ebe096c2929afc28.zip | |
DWARFDebugNames: Implement last GetGlobalVariables overload
This function implements the search for all global variables within a
given compilation unit.
llvm-svn: 334500
Diffstat (limited to 'lldb/lit/SymbolFile')
| -rw-r--r-- | lldb/lit/SymbolFile/DWARF/find-variable-file.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lldb/lit/SymbolFile/DWARF/find-variable-file.cpp b/lldb/lit/SymbolFile/DWARF/find-variable-file.cpp index 4f0cb573aea..f71d4a2b09b 100644 --- a/lldb/lit/SymbolFile/DWARF/find-variable-file.cpp +++ b/lldb/lit/SymbolFile/DWARF/find-variable-file.cpp @@ -1,7 +1,15 @@ // REQUIRES: lld -// RUN: clang -g -c -o %t-1.o --target=x86_64-pc-linux %s -// RUN: clang -g -c -o %t-2.o --target=x86_64-pc-linux %S/Inputs/find-variable-file-2.cpp +// RUN: clang -g -c -o %t-1.o --target=x86_64-pc-linux -mllvm -accel-tables=Disable %s +// RUN: clang -g -c -o %t-2.o --target=x86_64-pc-linux -mllvm -accel-tables=Disable %S/Inputs/find-variable-file-2.cpp +// RUN: ld.lld %t-1.o %t-2.o -o %t +// RUN: lldb-test symbols --file=find-variable-file.cpp --find=variable %t | \ +// RUN: FileCheck --check-prefix=ONE %s +// RUN: lldb-test symbols --file=find-variable-file-2.cpp --find=variable %t | \ +// RUN: FileCheck --check-prefix=TWO %s + +// RUN: clang -g -c -o %t-1.o --target=x86_64-pc-linux -mllvm -accel-tables=Dwarf %s +// RUN: clang -g -c -o %t-2.o --target=x86_64-pc-linux -mllvm -accel-tables=Dwarf %S/Inputs/find-variable-file-2.cpp // RUN: ld.lld %t-1.o %t-2.o -o %t // RUN: lldb-test symbols --file=find-variable-file.cpp --find=variable %t | \ // RUN: FileCheck --check-prefix=ONE %s |

