2011-10-20 21:10:27 +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-12-02 13:10:19 +00:00
|
|
|
StringRef stringSection,
|
|
|
|
StringRef rangeSection,
|
|
|
|
const RelocAddrMap &Map) {
|
2011-10-20 21:10:27 +00:00
|
|
|
return new DWARFContextInMemory(isLittleEndian, infoSection, abbrevSection,
|
2012-12-02 13:10:19 +00:00
|
|
|
aRangeSection, lineSection, stringSection,
|
|
|
|
rangeSection, Map);
|
2011-10-20 21:10:27 +00:00
|
|
|
}
|