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