1 //===-- DIContext.cpp -----------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #include "llvm/DebugInfo/DIContext.h"
11 #include "DWARFContext.h"
14 DIContext::~DIContext() {}
16 DIContext *DIContext::getDWARFContext(bool isLittleEndian,
17 StringRef infoSection,
18 StringRef abbrevSection,
19 StringRef aRangeSection,
20 StringRef lineSection,
21 StringRef stringSection) {
22 return new DWARFContextInMemory(isLittleEndian, infoSection, abbrevSection,
23 aRangeSection, lineSection, stringSection);