From 0086a5a3bb7137fad41d3b50e1cfb0c062b08c3a Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Tue, 7 Jul 2009 00:12:59 +0000 Subject: 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 . llvm-svn: 74885 --- clang/test/PCH/libroot/usr/include/reloc.h | 15 +++++++++++++++ clang/test/PCH/libroot/usr/include/reloc2.h | 15 +++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 clang/test/PCH/libroot/usr/include/reloc.h create mode 100644 clang/test/PCH/libroot/usr/include/reloc2.h (limited to 'clang/test/PCH/libroot/usr/include') 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 + + + + + + + +// 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 + + + + + + + + + +// Line number below is important! +int y = 2; +#endif // RELOC2_H -- cgit v1.2.3