Exemple #1
0
//----------------------------------------------------------------------
// SymbolVendor constructor
//----------------------------------------------------------------------
SymbolVendor::SymbolVendor(Module *module) :
    ModuleChild(module),
    m_mutex (Mutex::eMutexTypeRecursive),
    m_type_list(),
    m_compile_units(),
    m_sym_file_ap()
{
    ObjectFile * objfile = module->GetObjectFile();
    ConstString target_triple;
    if (objfile && objfile->GetTargetTriple(target_triple))
    {
        m_type_list.GetClangASTContext().SetTargetTriple (target_triple.AsCString());
    }
}