[LLVMbugs] [Bug 10522] New: 2007-06-15-AnnotateAttribute.c does not show local variable annotations
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Jul 28 05:48:37 PDT 2011
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: unassignedbugs at nondot.org
ReportedBy: retval386 at gmail.com
CC: llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list