File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
llvm/include/llvm/DebugInfo/LogicalView/Core Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -473,7 +473,7 @@ class LLVM_ABI LVScopeCompileUnit final : public LVScope {
473
473
474
474
// Record scope sizes indexed by lexical level.
475
475
// Setting an initial size that will cover a very deep nested scopes.
476
- const size_t TotalInitialSize = 8 ;
476
+ static constexpr size_t TotalInitialSize = 8 ;
477
477
using LVTotalsEntry = std::pair<unsigned , float >;
478
478
SmallVector<LVTotalsEntry> Totals;
479
479
// Maximum seen lexical level. It is used to control how many entries
@@ -510,7 +510,7 @@ class LLVM_ABI LVScopeCompileUnit final : public LVScope {
510
510
void addMapping (LVLine *Line, LVSectionIndex SectionIndex);
511
511
LVLineRange lineRange (LVLocation *Location) const ;
512
512
513
- LVNameInfo NameNone = {UINT64_MAX, 0 };
513
+ static constexpr LVNameInfo NameNone = {UINT64_MAX, 0 };
514
514
void addPublicName (LVScope *Scope, LVAddress LowPC, LVAddress HighPC) {
515
515
PublicNames.emplace (std::piecewise_construct, std::forward_as_tuple (Scope),
516
516
std::forward_as_tuple (LowPC, HighPC - LowPC));
You can’t perform that action at this time.
0 commit comments