1//===- ARMDiagnostic.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 "ARM.h"
13
14using namespace mcld;
15
16//===----------------------------------------------------------------------===//
17// ARMDiagnostic
18
19
20namespace mcld {
21//===----------------------------------------------------------------------===//
22// createARMDiagnostic - the help function to create corresponding ARMDiagnostic
23//
24DiagnosticLineInfo* createARMDiagLineInfo(const mcld::Target& pTarget,
25                                          const std::string &pTriple)
26{
27  return new DWARFLineInfo();
28}
29
30} // namespace of mcld
31
32//==========================
33// InitializeARMDiagnostic
34extern "C" void MCLDInitializeARMDiagnosticLineInfo() {
35  // Register the linker frontend
36  mcld::TargetRegistry::RegisterDiagnosticLineInfo(TheARMTarget, createARMDiagLineInfo);
37  mcld::TargetRegistry::RegisterDiagnosticLineInfo(TheThumbTarget, createARMDiagLineInfo);
38}
39
40