C++程序  |  25行  |  709 B

//===- X86TargetInfo.cpp --------------------------------------------------===//
//
//                     The MCLinker Project
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#include "mcld/Target/TargetMachine.h"
#include "mcld/Support/TargetRegistry.h"

namespace mcld {

mcld::Target TheX86_32Target;
mcld::Target TheX86_64Target;

extern "C" void MCLDInitializeX86LDTargetInfo() {
  // register into mcld::TargetRegistry
  mcld::RegisterTarget X(TheX86_32Target, "x86");
  mcld::RegisterTarget Y(TheX86_64Target, "x86-64");
}

} // namespace of mcld