summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2015-04-23 17:37:47 +0000
committerZachary Turner <zturner@google.com>2015-04-23 17:37:47 +0000
commit6489d7b9490a0099ad1b0e5ba143591b4de71db3 (patch)
tree8c4bf553b036e4e3fee3c1fed84fd326db7704c3 /llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
parent5461d45abf940b51cfe97eaa0a7cf274d43cb394 (diff)
downloadbcm5719-llvm-6489d7b9490a0099ad1b0e5ba143591b4de71db3.tar.gz
bcm5719-llvm-6489d7b9490a0099ad1b0e5ba143591b4de71db3.zip
Move DIContext.h to common DebugInfo location.
This will enable us to create a PDBContext so as to expose some amount of debug info functionality through a common interace. Differential Revision: http://reviews.llvm.org/D9205 Reviewed by: Alexey Samsonov llvm-svn: 235612
Diffstat (limited to 'llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp')
-rw-r--r--llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp b/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
index a99f57f5037..c1cb0218ac3 100644
--- a/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
+++ b/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
@@ -13,7 +13,8 @@
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/Triple.h"
-#include "llvm/DebugInfo/DWARF/DIContext.h"
+#include "llvm/DebugInfo/DIContext.h"
+#include "llvm/DebugInfo/DWARF/DWARFContext.h"
#include "llvm/Object/ObjectFile.h"
#include "llvm/Object/RelocVisitor.h"
#include "llvm/Support/CommandLine.h"
@@ -86,7 +87,7 @@ static void DumpInput(StringRef Filename) {
}
ObjectFile &Obj = *ObjOrErr.get();
- std::unique_ptr<DIContext> DICtx(DIContext::getDWARFContext(Obj));
+ std::unique_ptr<DIContext> DICtx(new DWARFContextInMemory(Obj));
outs() << Filename
<< ":\tfile format " << Obj.getFileFormatName() << "\n\n";
OpenPOWER on IntegriCloud