]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/blob - contrib/llvm/lib/DebugInfo/DIContext.cpp
MFC r244628:
[FreeBSD/stable/9.git] / contrib / llvm / lib / DebugInfo / DIContext.cpp
1 //===-- DIContext.cpp -----------------------------------------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 #include "llvm/DebugInfo/DIContext.h"
11 #include "DWARFContext.h"
12 using namespace llvm;
13
14 DIContext::~DIContext() {}
15
16 DIContext *DIContext::getDWARFContext(bool isLittleEndian,
17                                       StringRef infoSection,
18                                       StringRef abbrevSection,
19                                       StringRef aRangeSection,
20                                       StringRef lineSection,
21                                       StringRef stringSection,
22                                       StringRef rangeSection,
23                                       const RelocAddrMap &Map) {
24   return new DWARFContextInMemory(isLittleEndian, infoSection, abbrevSection,
25                                   aRangeSection, lineSection, stringSection,
26                                   rangeSection, Map);
27 }