Author: bogner
Date: Wed Jan 22 22:41:06 2014
New Revision: 199870

URL: http://llvm.org/viewvc/llvm-project?rev=199870&view=rev
Log:
test/CodeGenCXX: Be less strict about return types

Some ABIs have different return types for constructors and
destructors, and we're just looking for the end of the function
here. Loosen up the regex.

Modified:
    cfe/trunk/test/CodeGenCXX/instr-profile-class.cpp

Modified: cfe/trunk/test/CodeGenCXX/instr-profile-class.cpp
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/instr-profile-class.cpp?rev=199870&r1=199869&r2=199870&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/instr-profile-class.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/instr-profile-class.cpp Wed Jan 22 22:41:06 2014
@@ -29,7 +29,7 @@ public:
     if (Member) {}
     // CTRGEN-NOT: store {{.*}} @[[SCC]],
     // CTRUSE-NOT: br {{.*}} !prof ![0-9]+
-    // CTRUSE: ret void
+    // CTRUSE: ret
   }
   // CTRUSE: ![[SC1]] = metadata !{metadata !"branch_weights", i32 100, i32 2}
 
@@ -42,7 +42,7 @@ public:
     if (Member) {}
     // DTRGEN-NOT: store {{.*}} @[[SDC]],
     // DTRUSE-NOT: br {{.*}} !prof ![0-9]+
-    // DTRUSE: ret void
+    // DTRUSE: ret
   }
   // DTRUSE: ![[SD1]] = metadata !{metadata !"branch_weights", i32 100, i32 2}
 
@@ -55,7 +55,7 @@ public:
     if (Member) {}
     // MTHGEN-NOT: store {{.*}} @[[SMC]],
     // MTHUSE-NOT: br {{.*}} !prof ![0-9]+
-    // MTHUSE: ret void
+    // MTHUSE: ret
   }
   // MTHUSE: ![[SM1]] = metadata !{metadata !"branch_weights", i32 100, i32 2}
 };
@@ -72,7 +72,7 @@ void simple_wrapper() {
   }
   // WRPGEN-NOT: store {{.*}} @[[SWC]],
   // WRPUSE-NOT: br {{.*}} !prof ![0-9]+
-  // WRPUSE: ret void
+  // WRPUSE: ret
 }
 // WRPUSE: ![[SW1]] = metadata !{metadata !"branch_weights", i32 100, i32 2}
 


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to