From: Vikram S. Adve Date: Mon, 18 Mar 2002 03:40:25 +0000 (+0000) Subject: Just a comment. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=524185af3f0b243b94e4593f642645de7825a2da;p=oota-llvm.git Just a comment. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1908 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Instrumentation/TraceValues.cpp b/lib/Transforms/Instrumentation/TraceValues.cpp index 6e4fedcfa85..72c454187b3 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);