1affc150dc44fab1911775a49636d0ce85333b634Zonr Chang//===- X86Diagnostic.cpp --------------------------------------------------===// 2affc150dc44fab1911775a49636d0ce85333b634Zonr Chang// 3affc150dc44fab1911775a49636d0ce85333b634Zonr Chang// The MCLinker Project 4affc150dc44fab1911775a49636d0ce85333b634Zonr Chang// 5affc150dc44fab1911775a49636d0ce85333b634Zonr Chang// This file is distributed under the University of Illinois Open Source 6affc150dc44fab1911775a49636d0ce85333b634Zonr Chang// License. See LICENSE.TXT for details. 7affc150dc44fab1911775a49636d0ce85333b634Zonr Chang// 8affc150dc44fab1911775a49636d0ce85333b634Zonr Chang//===----------------------------------------------------------------------===// 937b74a387bb3993387029859c2d9d051c41c724eStephen Hines#include "mcld/LD/DWARFLineInfo.h" 1037b74a387bb3993387029859c2d9d051c41c724eStephen Hines#include "mcld/Support/TargetRegistry.h" 11affc150dc44fab1911775a49636d0ce85333b634Zonr Chang#include "X86.h" 12affc150dc44fab1911775a49636d0ce85333b634Zonr Chang 13affc150dc44fab1911775a49636d0ce85333b634Zonr Changnamespace mcld { 14affc150dc44fab1911775a49636d0ce85333b634Zonr Chang//===----------------------------------------------------------------------===// 15affc150dc44fab1911775a49636d0ce85333b634Zonr Chang// createX86Diagnostic - the help function to create corresponding X86Diagnostic 16f33f6de54db174aa679a4b6d1e040d37e95541c0Stephen Hines//===----------------------------------------------------------------------===// 1767e37f1be98c926645219cfb47fab9e90d8c725cShih-wei LiaoDiagnosticLineInfo* createX86DiagLineInfo(const mcld::Target& pTarget, 1837b74a387bb3993387029859c2d9d051c41c724eStephen Hines const std::string& pTriple) { 19affc150dc44fab1911775a49636d0ce85333b634Zonr Chang return new DWARFLineInfo(); 20affc150dc44fab1911775a49636d0ce85333b634Zonr Chang} 21affc150dc44fab1911775a49636d0ce85333b634Zonr Chang 2237b74a387bb3993387029859c2d9d051c41c724eStephen Hines} // namespace mcld 23affc150dc44fab1911775a49636d0ce85333b634Zonr Chang 24f33f6de54db174aa679a4b6d1e040d37e95541c0Stephen Hines//===----------------------------------------------------------------------===// 25affc150dc44fab1911775a49636d0ce85333b634Zonr Chang// InitializeX86Diagnostic 26f33f6de54db174aa679a4b6d1e040d37e95541c0Stephen Hines//===----------------------------------------------------------------------===// 2722add6ff3426df1a85089fe6a6e1597ee3b6f300Shih-wei Liaoextern "C" void MCLDInitializeX86DiagnosticLineInfo() { 28affc150dc44fab1911775a49636d0ce85333b634Zonr Chang // Register the linker frontend 2937b74a387bb3993387029859c2d9d051c41c724eStephen Hines mcld::TargetRegistry::RegisterDiagnosticLineInfo(mcld::TheX86_32Target, 3037b74a387bb3993387029859c2d9d051c41c724eStephen Hines mcld::createX86DiagLineInfo); 3137b74a387bb3993387029859c2d9d051c41c724eStephen Hines mcld::TargetRegistry::RegisterDiagnosticLineInfo(mcld::TheX86_64Target, 3237b74a387bb3993387029859c2d9d051c41c724eStephen Hines mcld::createX86DiagLineInfo); 33affc150dc44fab1911775a49636d0ce85333b634Zonr Chang} 34