aboutsummaryrefslogtreecommitdiff
path: root/lib/Debugger/SourceLanguage-CFamily.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Debugger/SourceLanguage-CFamily.cpp')
-rw-r--r--lib/Debugger/SourceLanguage-CFamily.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/lib/Debugger/SourceLanguage-CFamily.cpp b/lib/Debugger/SourceLanguage-CFamily.cpp
new file mode 100644
index 0000000000..392c07c818
--- /dev/null
+++ b/lib/Debugger/SourceLanguage-CFamily.cpp
@@ -0,0 +1,28 @@
+//===-- SourceLanguage-CFamily.cpp - C family 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 family of languages
+// (K&R C, C89, C99, etc).
+//
+//===----------------------------------------------------------------------===//
+
+#include "llvm/Debugger/SourceLanguage.h"
+using namespace llvm;
+
+#if 0
+namespace {
+ struct CSL : public SourceLanguage {
+ } TheCSourceLanguageInstance;
+}
+#endif
+
+const SourceLanguage &SourceLanguage::getCFamilyInstance() {
+ return get(0); // We don't have an implementation for C yet fall back on
+ // generic
+}