• Chris Toshok's avatar
    use llvm::StringRef instead of char*'s. · d5389981
    Chris Toshok authored
    turns out we allocate/free the same std::strings for every slot name, for every typeNew.
    instead do it once, when we create the slotdefs array.  Also, use llvm::StringRefs instead of
    std::strings since we already have them in setattrGeneric (the other caller of update_slot.)
    d5389981
typeobject.h 1.35 KB