summaryrefslogtreecommitdiff
path: root/lib/DebugInfo/PDB/PDBSymbolTypeBaseClass.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2015-02-08 00:29:29 +0000
committerZachary Turner <zturner@google.com>2015-02-08 00:29:29 +0000
commite642985be95bdf8ecca36652b3c560b434af71cf (patch)
tree3a502ff56f375dfd0e5c9a91964a0abf93fa05f5 /lib/DebugInfo/PDB/PDBSymbolTypeBaseClass.cpp
parent3e7edda4aab617e7c801e5e2edfda8a6bdb19794 (diff)
Some cleanup for libpdb.
This patch implements a few of the optional suggestions from the initial patch comitting libpdb. In particular, it implements a virtual function out of line for each of the concrete classes. A few other minor cleanups exist as well, such as using override instead of virtual, etc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228516 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/DebugInfo/PDB/PDBSymbolTypeBaseClass.cpp')
-rw-r--r--lib/DebugInfo/PDB/PDBSymbolTypeBaseClass.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/DebugInfo/PDB/PDBSymbolTypeBaseClass.cpp b/lib/DebugInfo/PDB/PDBSymbolTypeBaseClass.cpp
new file mode 100644
index 00000000000..0decf479d6c
--- /dev/null
+++ b/lib/DebugInfo/PDB/PDBSymbolTypeBaseClass.cpp
@@ -0,0 +1,21 @@
+//===- PDBSymbolTypeBaseClass.cpp - -----------------------------*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+#include <utility>
+
+#include "llvm/DebugInfo/PDB/PDBSymbol.h"
+#include "llvm/DebugInfo/PDB/PDBSymbolTypeBaseClass.h"
+
+using namespace llvm;
+
+PDBSymbolTypeBaseClass::PDBSymbolTypeBaseClass(
+ std::unique_ptr<IPDBRawSymbol> Symbol)
+ : PDBSymbol(std::move(Symbol)) {}
+
+void PDBSymbolTypeBaseClass::dump(llvm::raw_ostream &OS) const {}