projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
a45a327
)
Just a comment.
author
Vikram S. Adve
<vadve@cs.uiuc.edu>
Mon, 18 Mar 2002 03:40:25 +0000
(
03:40
+0000)
committer
Vikram S. Adve
<vadve@cs.uiuc.edu>
Mon, 18 Mar 2002 03:40:25 +0000
(
03:40
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1908
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Instrumentation/TraceValues.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Instrumentation/TraceValues.cpp
b/lib/Transforms/Instrumentation/TraceValues.cpp
index 6e4fedcfa8583a2a8da2ce9ae88bb9c9cbd603d6..72c454187b3114bbceb9a64569dbf7d4f2b5f222 100644
(file)
--- 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);