xref: /freebsd/contrib/llvm-project/lldb/include/lldb/Symbol/SymbolLocation.h (revision 0fca6ea1d4eea4c934cfff25ac9ee8ad6fe95583)
1 //===-- SymbolLocation.h ----------------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLDB_SYMBOL_SYMBOLLOCATION_H
10 #define LLDB_SYMBOL_SYMBOLLOCATION_H
11 
12 #include "lldb/Utility/ConstString.h"
13 #include "lldb/Utility/FileSpec.h"
14 #include "lldb/lldb-private.h"
15 
16 #include <vector>
17 
18 namespace lldb_private {
19 
20 /// Stores a function module spec, symbol name and possibly an alternate symbol
21 /// name.
22 struct SymbolLocation {
23   FileSpec module_spec;
24   std::vector<ConstString> symbols;
25 
26   // The symbols are regular expressions. In such case all symbols are matched
27   // with their trailing @VER symbol version stripped.
28   bool symbols_are_regex = false;
29 };
30 
31 } // namespace lldb_private
32 #endif // LLDB_SYMBOL_SYMBOLLOCATION_H
33