summaryrefslogtreecommitdiff
path: root/lib/Debugger/SourceLanguage-CPlusPlus.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-01-05 05:25:10 +0000
committerChris Lattner <sabre@nondot.org>2004-01-05 05:25:10 +0000
commit2eacf26aa61038c5171f7b0257bfc1d2fbf87f8d (patch)
tree9d828b421f23a4ae7f9321eb3c630f7011eebf03 /lib/Debugger/SourceLanguage-CPlusPlus.cpp
parent4575dcb5873af0163f871196b92a77928fbb5c8e (diff)
downloadllvm-2eacf26aa61038c5171f7b0257bfc1d2fbf87f8d.tar.gz
llvm-2eacf26aa61038c5171f7b0257bfc1d2fbf87f8d.tar.bz2
llvm-2eacf26aa61038c5171f7b0257bfc1d2fbf87f8d.tar.xz
Initial checkin of the LLVM source-level debugger. This is still not finished,
by any stretch of the imagination, but it is pretty cool and works :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10685 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Debugger/SourceLanguage-CPlusPlus.cpp')
-rw-r--r--lib/Debugger/SourceLanguage-CPlusPlus.cpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/Debugger/SourceLanguage-CPlusPlus.cpp b/lib/Debugger/SourceLanguage-CPlusPlus.cpp
new file mode 100644
index 0000000000..31e4fd4324
--- /dev/null
+++ b/lib/Debugger/SourceLanguage-CPlusPlus.cpp
@@ -0,0 +1,27 @@
+//===-- SourceLanguage-CPlusPlus.cpp - C++ SourceLanguage impl ------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file was developed by the LLVM research group and is distributed under
+// the University of Illinois Open Source License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+//
+// This file implements the SourceLanguage class for the C++ language.
+//
+//===----------------------------------------------------------------------===//
+
+#include "llvm/Debugger/SourceLanguage.h"
+using namespace llvm;
+
+#if 0
+namespace {
+ struct CPPSL : public SourceLanguage {
+ } TheCPlusPlusLanguageInstance;
+}
+#endif
+
+const SourceLanguage &SourceLanguage::getCPlusPlusInstance() {
+ return get(0); // We don't have an implementation for C yet fall back on
+ // generic
+}