+change static naming in IR to make it compatible with NVVM

This commit is contained in:
Evghenii
2013-11-22 14:43:14 +01:00
parent 406aad78fe
commit e192e8ea9e
2 changed files with 8 additions and 8 deletions

View File

@@ -239,9 +239,9 @@ DeclStmt::EmitCode(FunctionEmitContext *ctx) const {
new llvm::GlobalVariable(*m->module, llvmType,
sym->type->IsConstType(),
llvm::GlobalValue::InternalLinkage, cinit,
llvm::Twine("static.") +
llvm::Twine("static_") +
llvm::Twine(sym->pos.first_line) +
llvm::Twine(".") + sym->name.c_str());
llvm::Twine("_") + sym->name.c_str());
// Tell the FunctionEmitContext about the variable
ctx->EmitVariableDebugInfo(sym);
}