diff options
author | Chris Lattner <sabre@nondot.org> | 2001-11-26 19:14:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-11-26 19:14:33 +0000 |
commit | 302014f2e7845f4df9f041f45e868a315f6bbc8a (patch) | |
tree | c99d5e46179705fe33c39c137b08ef66e2dd2a86 /llvm/lib/Transforms/Instrumentation/TraceValues.cpp | |
parent | 1416a2992ed10bc24f18cdf4b9992e44ba25d510 (diff) | |
download | bcm5719-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.cpp | 3 |
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; } |