Modify annotate intrinsic to take 2 additional args: file and line number.
authorTanya Lattner <tonic@nondot.org>
Mon, 18 Jun 2007 22:23:39 +0000 (22:23 +0000)
committerTanya Lattner <tonic@nondot.org>
Mon, 18 Jun 2007 22:23:39 +0000 (22:23 +0000)
Fix up Annotate attribute test case.
Fix DebugFilename.c test case to look for right file name.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37632 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Intrinsics.td
test/CFrontend/2006-09-25-DebugFilename.c
test/CFrontend/2007-06-15-AnnotateAttribute.c

index 4b427f30a432562b613a9808ac3c0f18c817559b..0f9ef6a76fa177778e03803e08a5263c55d205da 100644 (file)
@@ -237,8 +237,9 @@ def int_eh_typeid_for : Intrinsic<[llvm_i32_ty, llvm_ptr_ty]>;
 
 //===---------------- Generic Variable Attribute Intrinsics----------------===//
 //
-def int_var_annotation : Intrinsic<[llvm_void_ty, llvm_ptr_ty, llvm_ptr_ty], 
-                                      [], "llvm.var.annotation">;
+def int_var_annotation : Intrinsic<[llvm_void_ty, llvm_ptr_ty, llvm_ptr_ty,
+                                    llvm_ptr_ty, llvm_i32_ty], 
+                                    [], "llvm.var.annotation">;
 
 //===----------------------------------------------------------------------===//
 // Target-specific intrinsics
index e115c394a5ebb305ddba5e0c48d494fa9fb14e38..2139c1ade56466ec509fd9b71013e187901bb684 100644 (file)
@@ -1,5 +1,5 @@
 // RUN: ignore %llvmgcc -xc %s -S -o /dev/null |& \
-// RUN:   grep fluffy | grep 2006-09-25-DebugFilename.c.tr
+// RUN:   grep fluffy | grep 2006-09-25-DebugFilename.c
 #include "2006-09-25-DebugFilename.h"
 int func1() { return hfunc1(); }
 int func2() { fluffy; return hfunc1(); }
index 18ce69389dca9085cb1ebe8e1850a3c74b4c4519..6fe09c2e33e17e34b95dd9eddb3799d3886e79ea 100644 (file)
@@ -1,5 +1,4 @@
-// RUN: %llvmgxx -c -emit-llvm %s -o - | llvm-dis | grep llvm.global.annotations | grep foo \ 
-// RUN: | grep @X | grep @a
+// RUN: %llvmgxx -c -emit-llvm %s -o - | llvm-dis | grep llvm.global.annotations
 // RUN: %llvmgxx -c -emit-llvm %s -o - | llvm-dis | grep -c llvm.var.annotation | grep 3 
 
 #include <stdio.h>