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 <mcld/Support/TargetRegistry.h>
     10 #include <mcld/LD/DWARFLineInfo.h>
     11 #include "Hexagon.h"
     12 
     13 namespace mcld {
     14 
     15 //===----------------------------------------------------------------------===//
     16 // createHexagonDiagnostic - the help function to create corresponding
     17 // HexagonDiagnostic
     18 //===----------------------------------------------------------------------===//
     19 DiagnosticLineInfo*
     20 createHexagonDiagLineInfo(const Target& pTarget, const std::string &pTriple)
     21 {
     22   return new DWARFLineInfo();
     23 }
     24 
     25 } // namespace of mcld
     26 
     27 using namespace 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