Benjamin Kramer | 72c0d7f | 2011-09-13 19:42:23 +0000 | [diff] [blame] | 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, |
Alexey Samsonov | eceb5b9 | 2012-08-27 07:17:47 +0000 | [diff] [blame] | 21 | StringRef stringSection, |
Eric Christopher | 806e03d | 2012-11-07 23:22:07 +0000 | [diff] [blame] | 22 | StringRef rangeSection, |
Alexey Samsonov | 4c0ae90 | 2012-11-12 14:25:36 +0000 | [diff] [blame^] | 23 | const RelocAddrMap *Map) { |
Benjamin Kramer | 72c0d7f | 2011-09-13 19:42:23 +0000 | [diff] [blame] | 24 | return new DWARFContextInMemory(isLittleEndian, infoSection, abbrevSection, |
Alexey Samsonov | eceb5b9 | 2012-08-27 07:17:47 +0000 | [diff] [blame] | 25 | aRangeSection, lineSection, stringSection, |
Eric Christopher | 806e03d | 2012-11-07 23:22:07 +0000 | [diff] [blame] | 26 | rangeSection, Map); |
Benjamin Kramer | 72c0d7f | 2011-09-13 19:42:23 +0000 | [diff] [blame] | 27 | } |