2011-09-13 19:42:23 +00:00
|
|
|
//===-- 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,
|
2012-08-27 07:17:47 +00:00
|
|
|
StringRef stringSection,
|
|
|
|
StringRef rangeSection) {
|
2011-09-13 19:42:23 +00:00
|
|
|
return new DWARFContextInMemory(isLittleEndian, infoSection, abbrevSection,
|
2012-08-27 07:17:47 +00:00
|
|
|
aRangeSection, lineSection, stringSection,
|
|
|
|
rangeSection);
|
2011-09-13 19:42:23 +00:00
|
|
|
}
|