Set unnamed_addr on strings created through the IRBuilder.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129040 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Nick Lewycky 2011-04-07 00:14:29 +00:00
parent c60a475091
commit 84025ba08f

View File

@ -30,6 +30,7 @@ Value *IRBuilderBase::CreateGlobalString(const char *Str, const Twine &Name) {
true, GlobalValue::InternalLinkage,
StrConstant, "", 0, false);
GV->setName(Name);
GV->setUnnamedAddr(true);
return GV;
}