Benjamin Kramer | aa2f78f | 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 | |
Alexey Samsonov | 4a7eb38 | 2014-10-20 20:28:51 +0000 | [diff] [blame] | 16 | DIContext *DIContext::getDWARFContext(const object::ObjectFile &Obj) { |
Eric Christopher | 7370b55 | 2012-11-12 21:40:38 +0000 | [diff] [blame] | 17 | return new DWARFContextInMemory(Obj); |
Benjamin Kramer | aa2f78f | 2011-09-13 19:42:23 +0000 | [diff] [blame] | 18 | } |