Home | History | Annotate | Download | only in TargetInfo
      1 //===- X86TargetInfo.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/Target/TargetMachine.h"
     10 #include "mcld/Support/TargetRegistry.h"
     11 
     12 namespace mcld {
     13 
     14 mcld::Target TheX86_32Target;
     15 mcld::Target TheX86_64Target;
     16 
     17 extern "C" void MCLDInitializeX86LDTargetInfo() {
     18   // register into mcld::TargetRegistry
     19   mcld::RegisterTarget X(TheX86_32Target, "x86");
     20   mcld::RegisterTarget Y(TheX86_64Target, "x86-64");
     21 }
     22 
     23 } // namespace of mcld
     24 
     25