File indexing completed on 2026-05-10 08:43:39
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #ifndef LLVM_DEBUGINFO_BTF_BTFCONTEXT_H
0015 #define LLVM_DEBUGINFO_BTF_BTFCONTEXT_H
0016
0017 #include "llvm/DebugInfo/BTF/BTFParser.h"
0018 #include "llvm/DebugInfo/DIContext.h"
0019
0020 namespace llvm {
0021
0022 class BTFContext final : public DIContext {
0023 BTFParser BTF;
0024
0025 public:
0026 BTFContext() : DIContext(CK_BTF) {}
0027
0028 void dump(raw_ostream &OS, DIDumpOptions DumpOpts) override {
0029
0030
0031 }
0032
0033 DILineInfo getLineInfoForAddress(
0034 object::SectionedAddress Address,
0035 DILineInfoSpecifier Specifier = DILineInfoSpecifier()) override;
0036
0037 DILineInfo
0038 getLineInfoForDataAddress(object::SectionedAddress Address) override;
0039
0040 DILineInfoTable getLineInfoForAddressRange(
0041 object::SectionedAddress Address, uint64_t Size,
0042 DILineInfoSpecifier Specifier = DILineInfoSpecifier()) override;
0043
0044 DIInliningInfo getInliningInfoForAddress(
0045 object::SectionedAddress Address,
0046 DILineInfoSpecifier Specifier = DILineInfoSpecifier()) override;
0047
0048 std::vector<DILocal>
0049 getLocalsForAddress(object::SectionedAddress Address) override;
0050
0051 static std::unique_ptr<BTFContext> create(
0052 const object::ObjectFile &Obj,
0053 std::function<void(Error)> ErrorHandler = WithColor::defaultErrorHandler);
0054 };
0055
0056 }
0057
0058 #endif