summaryrefslogtreecommitdiffstats
path: root/clang/test/TestRunner.sh
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-04-09 22:27:44 +0000
committerDouglas Gregor <dgregor@apple.com>2009-04-09 22:27:44 +0000
commitef84c4b434ebd74aa44f2ac1206b8236463cb139 (patch)
tree895ebd296d57b73eeec8ce5da1a81f1eef36a9e7 /clang/test/TestRunner.sh
parentf2489ea0431e81a1ba75d06bf9fab47ba08e187e (diff)
downloadbcm5719-llvm-ef84c4b434ebd74aa44f2ac1206b8236463cb139.tar.gz
bcm5719-llvm-ef84c4b434ebd74aa44f2ac1206b8236463cb139.zip
Implementation of pre-compiled headers (PCH) based on lazy
de-serialization of abstract syntax trees. PCH support serializes the contents of the abstract syntax tree (AST) to a bitstream. When the PCH file is read, declarations are serialized as-needed. For example, a declaration of a variable "x" will be deserialized only when its VarDecl can be found by a client, e.g., based on name lookup for "x" or traversing the entire contents of the owner of "x". This commit provides the framework for serialization and (lazy) deserialization, along with support for variable and typedef declarations (along with several kinds of types). More declarations/types, along with important auxiliary structures (source manager, preprocessor, etc.), will follow. llvm-svn: 68732
Diffstat (limited to 'clang/test/TestRunner.sh')
-rwxr-xr-xclang/test/TestRunner.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/TestRunner.sh b/clang/test/TestRunner.sh
index 754ab300603..66c1e1eab52 100755
--- a/clang/test/TestRunner.sh
+++ b/clang/test/TestRunner.sh
@@ -8,6 +8,7 @@
#
# %s - Replaced with the input name of the program, or the program to
# execute, as appropriate.
+# %S - Replaced with the directory where the input file resides
# %prcontext - prcontext.tcl script
# %t - temporary file name (derived from testcase name)
#
@@ -15,6 +16,7 @@
FILENAME=$1
TESTNAME=$1
SUBST=$1
+FILEDIR=`dirname $TESTNAME`
OUTPUT=Output/$1.out
@@ -78,6 +80,7 @@ grep 'RUN:' $FILENAME | \
-e "s| clang | $CLANG |g" \
-e "s| clang-cc | $CLANGCC |g" \
-e "s|%s|$SUBST|g" \
+ -e "s|%S|$FILEDIR|g" \
-e "s|%prcontext|prcontext.tcl|g" \
-e "s|%t|$TEMPOUTPUT|g" > $SCRIPT
OpenPOWER on IntegriCloud