diff options
author | Chris Lattner <sabre@nondot.org> | 2003-04-16 20:28:45 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-04-16 20:28:45 +0000 |
commit | 4ad02e726d9b634372b037d4b352d8b63bb9e849 (patch) | |
tree | 463f4e5e0773c2c8ca3e891556fc0a36c83e3ab5 /lib/Transforms/Instrumentation/TraceValues.cpp | |
parent | 2c72b184b86152d4c9e00731d9257240f39ce20b (diff) |
Add new linkage types to support a real frontend
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5786 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Instrumentation/TraceValues.cpp')
-rw-r--r-- | lib/Transforms/Instrumentation/TraceValues.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Transforms/Instrumentation/TraceValues.cpp b/lib/Transforms/Instrumentation/TraceValues.cpp index c19848dd4b..75149ce912 100644 --- a/lib/Transforms/Instrumentation/TraceValues.cpp +++ b/lib/Transforms/Instrumentation/TraceValues.cpp @@ -154,7 +154,8 @@ static inline GlobalVariable *getStringRef(Module *M, const string &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, + GlobalVariable *GV = new GlobalVariable(Init->getType(), true, + GlobalValue::InternalLinkage, Init, "trstr"); M->getGlobalList().push_back(GV); return GV; |