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