summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/tools/llvmc/example/Skeleton/driver
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm/tools/llvmc/example/Skeleton/driver')
-rw-r--r--contrib/llvm/tools/llvmc/example/Skeleton/driver/Main.cpp14
-rw-r--r--contrib/llvm/tools/llvmc/example/Skeleton/driver/Makefile13
2 files changed, 27 insertions, 0 deletions
diff --git a/contrib/llvm/tools/llvmc/example/Skeleton/driver/Main.cpp b/contrib/llvm/tools/llvmc/example/Skeleton/driver/Main.cpp
new file mode 100644
index 0000000..b1f5b67
--- /dev/null
+++ b/contrib/llvm/tools/llvmc/example/Skeleton/driver/Main.cpp
@@ -0,0 +1,14 @@
+//===--- Main.cpp - The LLVM Compiler Driver -------------------*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open
+// Source License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+//
+// Just include CompilerDriver/Main.inc.
+//
+//===----------------------------------------------------------------------===//
+
+#include "llvm/CompilerDriver/Main.inc"
diff --git a/contrib/llvm/tools/llvmc/example/Skeleton/driver/Makefile b/contrib/llvm/tools/llvmc/example/Skeleton/driver/Makefile
new file mode 100644
index 0000000..93e795b
--- /dev/null
+++ b/contrib/llvm/tools/llvmc/example/Skeleton/driver/Makefile
@@ -0,0 +1,13 @@
+##===- llvmc/example/Skeleton/driver/Makefile --------------*- Makefile -*-===##
+#
+# The LLVM Compiler Infrastructure
+#
+# This file is distributed under the University of Illinois Open
+# Source License. See LICENSE.TXT for details.
+#
+##===----------------------------------------------------------------------===##
+
+LEVEL = $(LLVMC_BASE_LEVEL)/..
+LLVMC_BASED_DRIVER = $(LLVMC_BASED_DRIVER_NAME)
+
+include $(LEVEL)/Makefile.common
OpenPOWER on IntegriCloud