Home | History | Annotate | Download | only in Core
      1 //===- Environment.cpp ----------------------------------------------------===//
      2 //
      3 //                     The MCLinker Project
      4 //
      5 // This file is distributed under the University of Illinois Open Source
      6 // License. See LICENSE.TXT for details.
      7 //
      8 //===----------------------------------------------------------------------===//
      9 #include <mcld/Environment.h>
     10 #include <mcld/Support/TargetSelect.h>
     11 
     12 #include <llvm/Support/TargetSelect.h>
     13 
     14 void mcld::Initialize()
     15 {
     16   static bool is_initialized = false;
     17 
     18   if (is_initialized)
     19     return;
     20 
     21   llvm::InitializeAllTargets();
     22   mcld::InitializeAllTargets();
     23   mcld::InitializeAllEmulations();
     24   mcld::InitializeAllDiagnostics();
     25 
     26   is_initialized = true;
     27 }
     28 
     29 void mcld::Finalize()
     30 {
     31 }
     32 
     33