summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/PDB/PDB.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2015-02-06 19:44:09 +0000
committerZachary Turner <zturner@google.com>2015-02-06 19:44:09 +0000
commit079ba9224fd2431c343a77558539d897e24842a4 (patch)
treedaa2723d9f2ef6bb54cb8b8b1f95abde718abd01 /llvm/lib/DebugInfo/PDB/PDB.cpp
parent8a6f35546b48a84adfcb6941d8d7727675024b3c (diff)
downloadbcm5719-llvm-079ba9224fd2431c343a77558539d897e24842a4.tar.gz
bcm5719-llvm-079ba9224fd2431c343a77558539d897e24842a4.zip
Create lib/DebugInfo/PDB.
This patch creates a platform-independent interface to a PDB reader. There is currently no implementation of this interface, which will be provided in future patches. This defines the basic object model which any implementation must conform to. Reviewed by: David Blaikie Differential Revision: http://reviews.llvm.org/D7356 llvm-svn: 228428
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/PDB.cpp')
-rw-r--r--llvm/lib/DebugInfo/PDB/PDB.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/llvm/lib/DebugInfo/PDB/PDB.cpp b/llvm/lib/DebugInfo/PDB/PDB.cpp
new file mode 100644
index 00000000000..e80beee4e34
--- /dev/null
+++ b/llvm/lib/DebugInfo/PDB/PDB.cpp
@@ -0,0 +1,21 @@
+//===- PDB.cpp - base header file for creating a PDB reader -----*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+#include "llvm/ADT/StringRef.h"
+
+#include "llvm/DebugInfo/PDB/PDB.h"
+#include "llvm/DebugInfo/PDB/IPDBSession.h"
+
+using namespace llvm;
+
+std::unique_ptr<IPDBSession> llvm::createPDBReader(PDB_ReaderType Type,
+ StringRef Path) {
+ // Create the correct concrete instance type based on the value of Type.
+ return nullptr;
+}
OpenPOWER on IntegriCloud