'Unlike the parent version.  This returns a a pointer in the constant
addrspace.'

def insert_const_string(self, mod, string):

    text = Constant.stringz(string)
    name = '$'.join(['__conststring__', itanium_mangler.mangle_identifier(string)])
    gv = mod.globals.get(name)
    if (gv is None):
        gv = mod.add_global_variable(text.type, name=name, addrspace=nvvm.ADDRSPACE_CONSTANT)
        gv.linkage = LINKAGE_INTERNAL
        gv.global_constant = True
        gv.initializer = text
    charty = gv.type.pointee.element
    return Constant.bitcast(gv, charty.as_pointer(nvvm.ADDRSPACE_CONSTANT))
