Small change to create_ll.sh [NFC]
authorJohannes Doerfert <doerfert@cs.uni-saarland.de>
Sun, 8 Mar 2015 15:36:27 +0000 (15:36 +0000)
committerJohannes Doerfert <doerfert@cs.uni-saarland.de>
Sun, 8 Mar 2015 15:36:27 +0000 (15:36 +0000)
llvm-svn: 231596

polly/test/create_ll.sh

index b0b56be..f6d8aee 100755 (executable)
@@ -20,7 +20,7 @@ echo '; FIXME: Edit the run line and add checks!' >> ${LLFILE}
 echo ';' >> ${LLFILE}
 echo '; XFAIL: *' >> ${LLFILE}
 echo ';' >> ${LLFILE}
-clang-format $1 | sed -e 's/^/;    /' >> ${LLFILE}
+clang-format $1 | sed -e 's/^[^$]/;    &/' -e 's/^$/;/' >> ${LLFILE}
 echo ';' >> ${LLFILE}
 
 cat ${LLFILE_TMP} | sed -e 's/ \#0//' >> ${LLFILE}