| //===- X86Diagnostic.cpp --------------------------------------------------===// |
| // This file is distributed under the University of Illinois Open Source |
| // License. See LICENSE.TXT for details. |
| //===----------------------------------------------------------------------===// |
| #include <llvm/ADT/Triple.h> |
| #include <mcld/Support/TargetRegistry.h> |
| #include <mcld/LD/DWARFLineInfo.h> |
| //===----------------------------------------------------------------------===// |
| //===----------------------------------------------------------------------===// |
| // createX86Diagnostic - the help function to create corresponding X86Diagnostic |
| DiagnosticLineInfo* createX86DiagLineInfo(const mcld::Target& pTarget, |
| const std::string &pTriple) |
| return new DWARFLineInfo(); |
| //========================== |
| // InitializeX86Diagnostic |
| extern "C" void LLVMInitializeX86DiagnosticLineInfo() { |
| // Register the linker frontend |
| mcld::TargetRegistry::RegisterDiagnosticLineInfo(TheX86Target, createX86DiagLineInfo); |