http://llvm.org/bugs/show_bug.cgi?id=10522
Summary: 2007-06-15-AnnotateAttribute.c does not show local
variable annotations
Product: new-bugs
Version: 2.9
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
llvm/test/FrontendC/2007-06-15-AnnotateAttribute.c has a comment that reads:
// RUN: %llvmgcc -S %s -o - | grep llvm.global.annotations
// RUN: %llvmgcc -S %s -o - | grep llvm.var.annotation | count 3
When I run the following I get no output of any kind:
"clang -emit-llvm -S 2007-06-15-AnnotateAttribute.c -o - | grep
llvm.var.annotation"
The following does seem to function correctly:
"clang -emit-llvm -S 2007-06-15-AnnotateAttribute.c -o - | grep
llvm.global.annotation"
It outputs:
@llvm.global.annotations = appending global [2 x { i8*, i8*, i8*, i32 }] [{
i8*, i8*, i8*, i32 } { i8* bitcast (i32* @main.a to i8*), i8* getelementptr
inbounds ([20 x i8]* @main.a1, i32 0, i32 0), i8* getelementptr inbounds ([31 x
i8]* @.str, i32 0, i32 0), i32 20 }, { i8*, i8*, i8*, i32 } { i8* bitcast (i32*
@X to i8*), i8* getelementptr inbounds ([20 x i8]* @X3, i32 0, i32 0), i8*
getelementptr inbounds ([31 x i8]* @.str4, i32 0, i32 0), i32 7 }], section
"llvm.metadata"
I attached the output of
"clang -emit-llvm -S 2007-06-15-AnnotateAttribute.c"
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs