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