summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/Inputs
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2017-02-08 20:51:11 +0000
committerDavid Blaikie <dblaikie@gmail.com>2017-02-08 20:51:11 +0000
commitee12322372c07b890aea4faa6f08e86b157b583e (patch)
tree6b1945ca5624ce56c97cf0eae90d2f7dba47a226 /clang/test/Modules/Inputs
parent28ffd3261ff1ff2c096e8c7136e3f2579f6c07c5 (diff)
downloadbcm5719-llvm-ee12322372c07b890aea4faa6f08e86b157b583e.tar.gz
bcm5719-llvm-ee12322372c07b890aea4faa6f08e86b157b583e.zip
Initialize builtins during modular codegen
llvm-svn: 294512
Diffstat (limited to 'clang/test/Modules/Inputs')
-rw-r--r--clang/test/Modules/Inputs/codegen-opt/bar.h (renamed from clang/test/Modules/Inputs/codegen/bar.h)0
-rw-r--r--clang/test/Modules/Inputs/codegen-opt/bar.modulemap (renamed from clang/test/Modules/Inputs/codegen/bar.modulemap)0
-rw-r--r--clang/test/Modules/Inputs/codegen-opt/foo.h10
-rw-r--r--clang/test/Modules/Inputs/codegen-opt/foo.modulemap1
-rw-r--r--clang/test/Modules/Inputs/codegen-opt/use.cpp (renamed from clang/test/Modules/Inputs/codegen/use.cpp)0
-rw-r--r--clang/test/Modules/Inputs/codegen/foo.h12
6 files changed, 14 insertions, 9 deletions
diff --git a/clang/test/Modules/Inputs/codegen/bar.h b/clang/test/Modules/Inputs/codegen-opt/bar.h
index a00e8f70e08..a00e8f70e08 100644
--- a/clang/test/Modules/Inputs/codegen/bar.h
+++ b/clang/test/Modules/Inputs/codegen-opt/bar.h
diff --git a/clang/test/Modules/Inputs/codegen/bar.modulemap b/clang/test/Modules/Inputs/codegen-opt/bar.modulemap
index f1dc625857e..f1dc625857e 100644
--- a/clang/test/Modules/Inputs/codegen/bar.modulemap
+++ b/clang/test/Modules/Inputs/codegen-opt/bar.modulemap
diff --git a/clang/test/Modules/Inputs/codegen-opt/foo.h b/clang/test/Modules/Inputs/codegen-opt/foo.h
new file mode 100644
index 00000000000..b3a7af7c9d9
--- /dev/null
+++ b/clang/test/Modules/Inputs/codegen-opt/foo.h
@@ -0,0 +1,10 @@
+void f1(int &);
+static void f2() {}
+inline void foo() {
+ static int i;
+ f1(i);
+ f2();
+}
+inline void foo2() {
+}
+void foo_ext() {}
diff --git a/clang/test/Modules/Inputs/codegen-opt/foo.modulemap b/clang/test/Modules/Inputs/codegen-opt/foo.modulemap
new file mode 100644
index 00000000000..2e095d2794c
--- /dev/null
+++ b/clang/test/Modules/Inputs/codegen-opt/foo.modulemap
@@ -0,0 +1 @@
+module foo { header "foo.h" }
diff --git a/clang/test/Modules/Inputs/codegen/use.cpp b/clang/test/Modules/Inputs/codegen-opt/use.cpp
index b55a31fe158..b55a31fe158 100644
--- a/clang/test/Modules/Inputs/codegen/use.cpp
+++ b/clang/test/Modules/Inputs/codegen-opt/use.cpp
diff --git a/clang/test/Modules/Inputs/codegen/foo.h b/clang/test/Modules/Inputs/codegen/foo.h
index b3a7af7c9d9..3fcab718573 100644
--- a/clang/test/Modules/Inputs/codegen/foo.h
+++ b/clang/test/Modules/Inputs/codegen/foo.h
@@ -1,10 +1,4 @@
-void f1(int &);
-static void f2() {}
-inline void foo() {
- static int i;
- f1(i);
- f2();
+inline void f1(const char* fmt, ...) {
+ __builtin_va_list args;
+ __builtin_va_start(args, fmt);
}
-inline void foo2() {
-}
-void foo_ext() {}
OpenPOWER on IntegriCloud