Make the AttrListPtr object a part of the LLVMContext.
[oota-llvm.git] / utils / UpdateCMakeLists.pl
index 8f535145de3115959ee1a3db793d5fa0f63aa417..d92a767adf328b4194595deb4033c4d16a09f58f 100755 (executable)
@@ -68,8 +68,7 @@ sub UpdateCMake {
   while(<IN>) {
     if (!$foundLibrary) {
       print OUT $_;
-      if (/^add_clang_library\(/ || /^add_llvm_library\(/ || /^add_llvm_target\(/
-          || /^add_executable\(/) {
+      if (/^add_[^_]+_library\(/ || /^add_llvm_target\(/ || /^add_executable\(/) {
         $foundLibrary = 1;
         EmitCMakeList($dir);
       }