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