Home | History | Annotate | Download | only in ARM
      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 "mcld/LD/DWARFLineInfo.h"
     10 #include "mcld/Support/TargetRegistry.h"
     11 #include "ARM.h"
     12 
     13 namespace mcld {
     14 //===----------------------------------------------------------------------===//
     15 // createARMDiagnostic - the help function to create corresponding ARMDiagnostic
     16 //===----------------------------------------------------------------------===//
     17 DiagnosticLineInfo* createARMDiagLineInfo(const mcld::Target& pTarget,
     18                                           const std::string& pTriple) {
     19   return new DWARFLineInfo();
     20 }
     21 
     22 }  // namespace mcld
     23 
     24 //===----------------------------------------------------------------------===//
     25 // InitializeARMDiagnostic
     26 //===----------------------------------------------------------------------===//
     27 extern "C" void MCLDInitializeARMDiagnosticLineInfo() {
     28   // Register the linker frontend
     29   mcld::TargetRegistry::RegisterDiagnosticLineInfo(mcld::TheARMTarget,
     30                                                    mcld::createARMDiagLineInfo);
     31   mcld::TargetRegistry::RegisterDiagnosticLineInfo(mcld::TheThumbTarget,
     32                                                    mcld::createARMDiagLineInfo);
     33 }
     34