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