1 //===- X86Diagnostic.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 <llvm/ADT/Triple.h> 10 #include <mcld/Support/TargetRegistry.h> 11 #include <mcld/LD/DWARFLineInfo.h> 12 #include "X86.h" 13 14 using namespace mcld; 15 16 //===----------------------------------------------------------------------===// 17 // X86Diagnostic 18 19 20 namespace mcld { 21 //===----------------------------------------------------------------------===// 22 // createX86Diagnostic - the help function to create corresponding X86Diagnostic 23 // 24 DiagnosticLineInfo* createX86DiagLineInfo(const mcld::Target& pTarget, 25 const std::string &pTriple) 26 { 27 return new DWARFLineInfo(); 28 } 29 30 } // namespace of mcld 31 32 //========================== 33 // InitializeX86Diagnostic 34 extern "C" void MCLDInitializeX86DiagnosticLineInfo() { 35 // Register the linker frontend 36 mcld::TargetRegistry::RegisterDiagnosticLineInfo(TheX86_32Target, createX86DiagLineInfo); 37 mcld::TargetRegistry::RegisterDiagnosticLineInfo(TheX86_64Target, createX86DiagLineInfo); 38 } 39 40