aboutsummaryrefslogtreecommitdiffstats
path: root/lib/DebugInfo/DIContext.cpp
blob: e2fd55fd6ef8f319011536b67d3f053da0f21575 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//===-- 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) {
  return new DWARFContextInMemory(isLittleEndian, infoSection, abbrevSection,
                                  aRangeSection, lineSection, stringSection);
}