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