mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36998 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1323,7 +1323,7 @@ Constant *DISerializer::getString(const std::string &String) {
|
|||||||
// Otherwise create and return a new string global.
|
// Otherwise create and return a new string global.
|
||||||
GlobalVariable *StrGV = new GlobalVariable(ConstStr->getType(), true,
|
GlobalVariable *StrGV = new GlobalVariable(ConstStr->getType(), true,
|
||||||
GlobalVariable::InternalLinkage,
|
GlobalVariable::InternalLinkage,
|
||||||
ConstStr, "str", M);
|
ConstStr, ".str", M);
|
||||||
StrGV->setSection("llvm.metadata");
|
StrGV->setSection("llvm.metadata");
|
||||||
// Convert to generic string pointer.
|
// Convert to generic string pointer.
|
||||||
Slot = ConstantExpr::getBitCast(StrGV, getStrPtrType());
|
Slot = ConstantExpr::getBitCast(StrGV, getStrPtrType());
|
||||||
|
Reference in New Issue
Block a user