Lines Matching refs:input

40   InputTree::dfs_iterator input, inEnd = m_LDInfo.inputs().dfs_end();
41 for (input = m_LDInfo.inputs().dfs_begin(); input!=inEnd; ++input) {
43 if ((*input)->type() == Input::Script ||
44 (*input)->type() == Input::Object ||
45 (*input)->type() == Input::DynObj ||
46 (*input)->type() == Input::Archive)
51 m_LDInfo.memAreaFactory().produce((*input)->path(), O_RDONLY);
53 (*input)->setMemArea(input_memory);
56 llvm::report_fatal_error("can not open file: " + (*input)->path().native());
61 if (m_LDBackend.getObjectReader()->isMyFormat(**input)) {
62 (*input)->setType(Input::Object);
63 (*input)->setContext(m_LDInfo.contextFactory().produce((*input)->path()));
64 m_LDBackend.getObjectReader()->readObject(**input);
67 else if (m_LDBackend.getDynObjReader()->isMyFormat(**input)) {
68 (*input)->setType(Input::DynObj);
69 (*input)->setContext(m_LDInfo.contextFactory().produce((*input)->path()));
70 (*input)->setSOName((*input)->path().native());
71 m_LDBackend.getDynObjReader()->readDSO(**input);
74 else if (m_LDBackend.getArchiveReader()->isMyFormat(*(*input))) {
75 (*input)->setType(Input::Archive);
76 mcld::InputTree* archive_member = m_LDBackend.getArchiveReader()->readArchive(**input);
78 llvm::report_fatal_error("wrong format archive" + (*input)->path().string());
82 m_LDInfo.inputs().merge<InputTree::Inclusive>(input, *archive_member);
86 (*input)->path().native() +
108 mcld::InputTree::const_bfs_iterator input, inEnd = m_LDInfo.inputs().bfs_end();
109 for (input=m_LDInfo.inputs().bfs_begin(); input!=inEnd; ++input) {
110 if ((*input)->type() == mcld::Input::DynObj ) {
112 if((*input)->attribute()->isStatic()) {
186 /// readSections - read all input section headers
191 mcld::InputTree::bfs_iterator input, inEnd = m_LDInfo.inputs().bfs_end();
192 for (input=m_LDInfo.inputs().bfs_begin(); input!=inEnd; ++input) {
193 if ((*input)->type() == Input::Object) {
194 if (!m_LDBackend.getObjectReader()->readSections(**input))
209 /// readSymbolTables - read symbol tables from the input files.
210 /// for each input file, loads its symbol table from file.
213 mcld::InputTree::dfs_iterator input, inEnd = m_LDInfo.inputs().dfs_end();
214 for (input=m_LDInfo.inputs().dfs_begin(); input!=inEnd; ++input) {
215 switch((*input)->type()) {
217 if (!m_LDBackend.getDynObjReader()->readSymbols(**input))
221 if (!m_LDBackend.getObjectReader()->readSymbols(**input))
229 /// mergeSymbolTables - merge the symbol tables of input files into the
233 mcld::InputTree::dfs_iterator input, inEnd = m_LDInfo.inputs().dfs_end();
234 for (input=m_LDInfo.inputs().dfs_begin(); input!=inEnd; ++input) {
235 if (!m_pLinker->mergeSymbolTable(**input))
243 /// @return if there are some input symbols with the same name to the
252 /// @return if there are some input symbols with the same name to the
267 mcld::InputTree::bfs_iterator input, inEnd = m_LDInfo.inputs().bfs_end();
268 for (input=m_LDInfo.inputs().bfs_begin(); input!=inEnd; ++input) {
269 if ((*input)->type() == Input::Object) {
270 if (!m_LDBackend.getObjectReader()->readRelocations(**input))