Fix http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070507/049516.html
authorDevang Patel <dpatel@apple.com>
Fri, 11 May 2007 23:14:43 +0000 (23:14 +0000)
committerDevang Patel <dpatel@apple.com>
Fri, 11 May 2007 23:14:43 +0000 (23:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36998 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineModuleInfo.cpp

index 185f348e0a2f0da1ab841f1cedcfd5df68431a8c..9d532add1a0bb8a4ab46b821f74ad525c93272fd 100644 (file)
@@ -1323,7 +1323,7 @@ Constant *DISerializer::getString(const std::string &String) {
     // Otherwise create and return a new string global.
     GlobalVariable *StrGV = new GlobalVariable(ConstStr->getType(), true,
                                                GlobalVariable::InternalLinkage,
-                                               ConstStr, "str", M);
+                                               ConstStr, ".str", M);
     StrGV->setSection("llvm.metadata");
     // Convert to generic string pointer.
     Slot = ConstantExpr::getBitCast(StrGV, getStrPtrType());