1 //===- ARMDiagnostic.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/Support/TargetRegistry.h> 10 #include <mcld/LD/DWARFLineInfo.h> 11 #include "ARM.h" 12 13 using namespace mcld; 14 15 namespace mcld { 16 //===----------------------------------------------------------------------===// 17 // createARMDiagnostic - the help function to create corresponding ARMDiagnostic 18 //===----------------------------------------------------------------------===// 19 DiagnosticLineInfo* createARMDiagLineInfo(const mcld::Target& pTarget, 20 const std::string &pTriple) 21 { 22 return new DWARFLineInfo(); 23 } 24 25 } // namespace of mcld 26 27 //===----------------------------------------------------------------------===// 28 // InitializeARMDiagnostic 29 //===----------------------------------------------------------------------===// 30 extern "C" void MCLDInitializeARMDiagnosticLineInfo() { 31 // Register the linker frontend 32 mcld::TargetRegistry::RegisterDiagnosticLineInfo(TheARMTarget, createARMDiagLineInfo); 33 mcld::TargetRegistry::RegisterDiagnosticLineInfo(TheThumbTarget, createARMDiagLineInfo); 34 } 35 36