LinkerConfig.cpp revision 6f75755c9204b1d8817ae5a65a2f7e5af0ec3f70
1//===- LinkerConfig.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/LinkerConfig.h> 10#include <mcld/Config/Config.h> 11 12#include <mcld/Support/MsgHandling.h> 13 14using namespace mcld; 15 16//===----------------------------------------------------------------------===// 17// LinkerConfig 18//===----------------------------------------------------------------------===// 19LinkerConfig::LinkerConfig() 20 : m_Options(), 21 m_Scripts(), 22 m_Targets(), 23 m_Bitcode(), 24 m_Attribute(), 25 m_CodeGenType(Unknown), 26 m_CodePosition(DynamicDependent) 27{ 28 // FIXME: is here the right place to hold this? 29 InitializeDiagnosticEngine(*this); 30} 31 32LinkerConfig::LinkerConfig(const std::string& pTripleString) 33 : m_Options(), 34 m_Scripts(), 35 m_Targets(pTripleString), 36 m_Bitcode(), 37 m_Attribute(), 38 m_CodeGenType(Unknown), 39 m_CodePosition(DynamicDependent) 40{ 41 // FIXME: is here the right place to hold this? 42 InitializeDiagnosticEngine(*this); 43} 44 45LinkerConfig::~LinkerConfig() 46{ 47 // FIXME: is here the right place to hold this? 48 FinalizeDiagnosticEngine(); 49} 50 51const char* LinkerConfig::version() 52{ 53 return MCLD_VERSION; 54} 55