Util/slottracker.cpp
/// CreateModuleSlot - Insert the specified GlobalValue* into the slot table.
Insert the specified GlobalValue* into the slot table.
Insert the specified GlobalValue * into the slot table .
void SlotTracker::CreateModuleSlot(const GlobalValue *V) {
    assert(V && "Can't insert a null Value into SlotTracker!");
    assert(!V->getType()->isVoidTy() && "Doesn't need a slot!");
    assert(!V->hasName() && "Doesn't need a slot!");
    unsigned DestSlot = mNext++;
    mMap[V] = DestSlot;
    mSap[DestSlot] = V;
    ST_DEBUG("  Inserting value [" << V->getType() << "] = " << V << " slot=" << DestSlot << " [");
    ST_DEBUG((isa<GlobalVariable>(V) ? 'G' :
             (isa<Function>(V) ? 'F' :
             (isa<GlobalAlias>(V) ? 'A' : 'o'))) << "]\n");
}
void SlotTracker :: CreateModuleSlot ( const GlobalValue * V ) { assert ( V && " " ) ; assert ( ! V -> getType ( ) -> isVoidTy ( ) && " " ) ; assert ( ! V -> hasName ( ) && " " ) ; unsigned DestSlot = mNext ++ ; mMap [ V ] = DestSlot ; mSap [ DestSlot ] = V ; ST_DEBUG ( " " << V -> getType ( ) << " " << V << " " << DestSlot << " " ) ; ST_DEBUG ( ( isa < GlobalVariable > ( V ) ? ' ' : ( isa < Function > ( V ) ? ' ' : ( isa < GlobalAlias > ( V ) ? ' ' : ' ' ) ) ) << " \n " ) ; }
CreateModuleSlot - Insert the specified GlobalValue* into the slot table.
CreateModuleSlot - Insert the specified GlobalValue * into the slot table .
// G = Global, F = Function, A = Alias, o = other