• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //===- AArch64Diagnostic.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 "AArch64.h"
12 
13 namespace mcld {
14 //===----------------------------------------------------------------------===//
15 // createAArch64Diagnostic - the help function to create corresponding
16 // AArch64Diagnostic
17 //===----------------------------------------------------------------------===//
createAArch64DiagLineInfo(const mcld::Target & pTarget,const std::string & pTriple)18 DiagnosticLineInfo* createAArch64DiagLineInfo(const mcld::Target& pTarget,
19                                               const std::string& pTriple) {
20   return new DWARFLineInfo();
21 }
22 
23 }  // namespace mcld
24 
25 //===----------------------------------------------------------------------===//
26 // InitializeAArch64Diagnostic
27 //===----------------------------------------------------------------------===//
MCLDInitializeAArch64DiagnosticLineInfo()28 extern "C" void MCLDInitializeAArch64DiagnosticLineInfo() {
29   // Register the linker frontend
30   mcld::TargetRegistry::RegisterDiagnosticLineInfo(
31       mcld::TheAArch64Target, mcld::createAArch64DiagLineInfo);
32 }
33