1 //===- MipsDiagnostic.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 "Mips.h" 13 14 using namespace mcld; 15 16 17 namespace mcld { 18 //===----------------------------------------------------------------------===// 19 // createMipsDiagnostic - the help function to create corresponding 20 // MipsDiagnostic 21 DiagnosticLineInfo* createMipsDiagLineInfo(const mcld::Target& pTarget, 22 const std::string &pTriple) 23 { 24 return new DWARFLineInfo(); 25 } 26 27 } // namespace of mcld 28 29 //========================== 30 // InitializeMipsDiagnostic 31 extern "C" void MCLDInitializeMipsDiagnosticLineInfo() { 32 // Register the linker frontend 33 mcld::TargetRegistry::RegisterDiagnosticLineInfo(TheMipselTarget, createMipsDiagLineInfo); 34 } 35 36