More unnamed_addr.

llvm-svn: 123681
This commit is contained in:
Rafael Espindola 2011-01-17 22:22:52 +00:00
parent de089d462c
commit 2e217d6555
2 changed files with 3 additions and 0 deletions

View File

@ -630,6 +630,7 @@ llvm::Constant *CodeGenModule::EmitAnnotateAttr(llvm::GlobalValue *GV,
new llvm::GlobalVariable(*M, unit->getType(), false,
llvm::GlobalValue::PrivateLinkage, unit,
".str");
unitGV->setUnnamedAddr(true);
// Create the ConstantStruct for the global annotation.
llvm::Constant *Fields[4] = {

View File

@ -5,4 +5,6 @@ void a(char *a) {
__attribute__((annotate("bar"))) static char bar;
}
// CHECK: private unnamed_addr global
// CHECK: private unnamed_addr global
// CHECK: @llvm.global.annotations = appending global [2 x %0]