aboutsummaryrefslogtreecommitdiff
path: root/lib/VMCore
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2011-04-07 00:14:29 +0000
committerNick Lewycky <nicholas@mxc.ca>2011-04-07 00:14:29 +0000
commit84025ba08ff23711b9d3d33c6c21819d63d30865 (patch)
tree124f3e6ea0de5e85aa52b2bdda7d5297e920bdac /lib/VMCore
parentc60a47509162412c4a776abae28402541bb73b15 (diff)
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
Diffstat (limited to 'lib/VMCore')
-rw-r--r--lib/VMCore/IRBuilder.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/VMCore/IRBuilder.cpp b/lib/VMCore/IRBuilder.cpp
index 595dea470b..1658d79c42 100644
--- a/lib/VMCore/IRBuilder.cpp
+++ b/lib/VMCore/IRBuilder.cpp
@@ -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;
}