• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
Initialize()12 void mcld::Initialize() {
13   static bool is_initialized = false;
14 
15   if (is_initialized)
16     return;
17 
18   mcld::InitializeAllTargets();
19   mcld::InitializeAllEmulations();
20   mcld::InitializeAllDiagnostics();
21 
22   is_initialized = true;
23 }
24 
Finalize()25 void mcld::Finalize() {
26 }
27