summaryrefslogtreecommitdiffstats
path: root/clang/test/PCH/libroot/usr/include
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-07-07 00:12:59 +0000
committerDouglas Gregor <dgregor@apple.com>2009-07-07 00:12:59 +0000
commit0086a5a3bb7137fad41d3b50e1cfb0c062b08c3a (patch)
treef4e5530b1ac1ba4a1317e3a4c2eb0568c9bfb00b /clang/test/PCH/libroot/usr/include
parent97213bac53fd78f80f0aefd381d129886324bfbf (diff)
downloadbcm5719-llvm-0086a5a3bb7137fad41d3b50e1cfb0c062b08c3a.tar.gz
bcm5719-llvm-0086a5a3bb7137fad41d3b50e1cfb0c062b08c3a.zip
Introduce the notion of "Relocatable" precompiled headers, which are built
with a particular system root directory and can be used with a different system root directory when the headers it depends on have been installed. Relocatable precompiled headers rewrite the file names of the headers used when generating the PCH file into the corresponding file names of the headers available when using the PCH file. Addresses <rdar://problem/7001604>. llvm-svn: 74885
Diffstat (limited to 'clang/test/PCH/libroot/usr/include')
-rw-r--r--clang/test/PCH/libroot/usr/include/reloc.h15
-rw-r--r--clang/test/PCH/libroot/usr/include/reloc2.h15
2 files changed, 30 insertions, 0 deletions
diff --git a/clang/test/PCH/libroot/usr/include/reloc.h b/clang/test/PCH/libroot/usr/include/reloc.h
new file mode 100644
index 00000000000..04eeacba8ff
--- /dev/null
+++ b/clang/test/PCH/libroot/usr/include/reloc.h
@@ -0,0 +1,15 @@
+#ifndef RELOC_H
+#define RELOC_H
+
+#include <reloc2.h>
+
+
+
+
+
+
+
+// Line number 13 below is important
+int x = 2;
+
+#endif // RELOC_H
diff --git a/clang/test/PCH/libroot/usr/include/reloc2.h b/clang/test/PCH/libroot/usr/include/reloc2.h
new file mode 100644
index 00000000000..995415ce95b
--- /dev/null
+++ b/clang/test/PCH/libroot/usr/include/reloc2.h
@@ -0,0 +1,15 @@
+#ifndef RELOC2_H
+#define RELOC2_H
+#include <stddef.h>
+
+
+
+
+
+
+
+
+
+// Line number below is important!
+int y = 2;
+#endif // RELOC2_H
OpenPOWER on IntegriCloud