xref: /freebsd/contrib/llvm-project/lldb/source/ValueObject/DILAST.cpp (revision 700637cbb5e582861067a11aaca4d053546871d2)
1 //===-- DILAST.cpp --------------------------------------------------------===//
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 #include "lldb/ValueObject/DILAST.h"
10 #include "llvm/Support/ErrorHandling.h"
11 
12 namespace lldb_private::dil {
13 
Accept(Visitor * v) const14 llvm::Expected<lldb::ValueObjectSP> ErrorNode::Accept(Visitor *v) const {
15   llvm_unreachable("Attempting to Visit a DIL ErrorNode.");
16 }
17 
Accept(Visitor * v) const18 llvm::Expected<lldb::ValueObjectSP> IdentifierNode::Accept(Visitor *v) const {
19   return v->Visit(this);
20 }
21 
Accept(Visitor * v) const22 llvm::Expected<lldb::ValueObjectSP> MemberOfNode::Accept(Visitor *v) const {
23   return v->Visit(this);
24 }
25 
Accept(Visitor * v) const26 llvm::Expected<lldb::ValueObjectSP> UnaryOpNode::Accept(Visitor *v) const {
27   return v->Visit(this);
28 }
29 
30 llvm::Expected<lldb::ValueObjectSP>
Accept(Visitor * v) const31 ArraySubscriptNode::Accept(Visitor *v) const {
32   return v->Visit(this);
33 }
34 
35 llvm::Expected<lldb::ValueObjectSP>
Accept(Visitor * v) const36 BitFieldExtractionNode::Accept(Visitor *v) const {
37   return v->Visit(this);
38 }
39 
40 } // namespace lldb_private::dil
41