mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-04 06:09:05 +00:00
eceb5b9977
This section (introduced in DWARF-3) is used to define instruction address ranges for functions that are not contiguous and can't be described by low_pc/high_pc attributes (this is the usual case for inlined subroutines). The patch is the first step to support fetching complete inlining info from DWARF. Reviewed by Benjamin Kramer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162657 91177308-0d34-0410-b5e6-96231b3b80d8
27 lines
1.1 KiB
C++
27 lines
1.1 KiB
C++
//===-- DIContext.cpp -----------------------------------------------------===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "llvm/DebugInfo/DIContext.h"
|
|
#include "DWARFContext.h"
|
|
using namespace llvm;
|
|
|
|
DIContext::~DIContext() {}
|
|
|
|
DIContext *DIContext::getDWARFContext(bool isLittleEndian,
|
|
StringRef infoSection,
|
|
StringRef abbrevSection,
|
|
StringRef aRangeSection,
|
|
StringRef lineSection,
|
|
StringRef stringSection,
|
|
StringRef rangeSection) {
|
|
return new DWARFContextInMemory(isLittleEndian, infoSection, abbrevSection,
|
|
aRangeSection, lineSection, stringSection,
|
|
rangeSection);
|
|
}
|