summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Instrumentation/TraceValues.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-11-26 19:14:33 +0000
committerChris Lattner <sabre@nondot.org>2001-11-26 19:14:33 +0000
commit302014f2e7845f4df9f041f45e868a315f6bbc8a (patch)
treec99d5e46179705fe33c39c137b08ef66e2dd2a86 /llvm/lib/Transforms/Instrumentation/TraceValues.cpp
parent1416a2992ed10bc24f18cdf4b9992e44ba25d510 (diff)
downloadbcm5719-llvm-302014f2e7845f4df9f041f45e868a315f6bbc8a.tar.gz
bcm5719-llvm-302014f2e7845f4df9f041f45e868a315f6bbc8a.zip
Make strings be internal
llvm-svn: 1384
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/TraceValues.cpp')
-rw-r--r--llvm/lib/Transforms/Instrumentation/TraceValues.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/TraceValues.cpp b/llvm/lib/Transforms/Instrumentation/TraceValues.cpp
index dcca54d57b1..f59b0aed248 100644
--- a/llvm/lib/Transforms/Instrumentation/TraceValues.cpp
+++ b/llvm/lib/Transforms/Instrumentation/TraceValues.cpp
@@ -69,7 +69,8 @@ PrintMethodNameForType(const Type* type)
static inline GlobalVariable *GetStringRef(Module *M, const string &str) {
ConstPoolArray *Init = ConstPoolArray::get(str);
- GlobalVariable *GV = new GlobalVariable(Init->getType(), /*Const*/true, Init);
+ GlobalVariable *GV = new GlobalVariable(Init->getType(), /*Const*/true,
+ /*intern*/true, Init);
M->getGlobalList().push_back(GV);
return GV;
}
OpenPOWER on IntegriCloud