summaryrefslogtreecommitdiff
path: root/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
commit2cf2634ffdb4f7c8d46cef3f8e60a55993f1c57a (patch)
treec9a3838dd8bb8eda8c958dfd28ef7f74c61a66f2 /test/TestRunner.sh
parent8d7f5481a0eeb4c0508202a4bd2b754cfa93c4fe (diff)
downloadclang-2cf2634ffdb4f7c8d46cef3f8e60a55993f1c57a.tar.gz
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68732 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/TestRunner.sh')
-rwxr-xr-xtest/TestRunner.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/TestRunner.sh b/test/TestRunner.sh
index 754ab30060..66c1e1eab5 100755
--- a/test/TestRunner.sh
+++ b/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