aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVikram S. Adve <vadve@cs.uiuc.edu>2002-03-18 03:40:25 +0000
committerVikram S. Adve <vadve@cs.uiuc.edu>2002-03-18 03:40:25 +0000
commit524185af3f0b243b94e4593f642645de7825a2da (patch)
tree887143815cb9a0e69467aab50fb731058db2dd7e
parenta45a327e8dc82cd9983bc19a78301d41c6cdbf59 (diff)
Just a comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1908 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/Instrumentation/TraceValues.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Transforms/Instrumentation/TraceValues.cpp b/lib/Transforms/Instrumentation/TraceValues.cpp
index 6e4fedcfa8..72c454187b 100644
--- a/lib/Transforms/Instrumentation/TraceValues.cpp
+++ b/lib/Transforms/Instrumentation/TraceValues.cpp
@@ -87,6 +87,9 @@ bool InsertTraceCode::doInitialization(Module *M) {
static inline GlobalVariable *getStringRef(Module *M, const string &str) {
// Create a constant internal string reference...
Constant *Init = ConstantArray::get(str);
+
+ // Create the global variable and record it in the module
+ // The GV will be renamed to a unique name if needed.
GlobalVariable *GV = new GlobalVariable(Init->getType(), true, true, Init,
"trstr");
M->getGlobalList().push_back(GV);