projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Convert a bunch of loops to foreach. NFC.
[oota-llvm.git]
/
utils
/
UpdateCMakeLists.pl
diff --git
a/utils/UpdateCMakeLists.pl
b/utils/UpdateCMakeLists.pl
index d92a767adf328b4194595deb4033c4d16a09f58f..c896ea839be88521f74ea749b97b87c1a4b7595a 100755
(executable)
--- a/
utils/UpdateCMakeLists.pl
+++ b/
utils/UpdateCMakeLists.pl
@@
-68,7
+68,7
@@
sub UpdateCMake {
while(<IN>) {
if (!$foundLibrary) {
print OUT $_;
while(<IN>) {
if (!$foundLibrary) {
print OUT $_;
- if (/^add_[^_]+_library\(/ || /^add_llvm_target\(/ || /^add_executable\(/) {
+ if (/^add_[^_]+_library\(/ || /^add_llvm_target\(/ || /^add_
[^_]+_
executable\(/) {
$foundLibrary = 1;
EmitCMakeList($dir);
}
$foundLibrary = 1;
EmitCMakeList($dir);
}