bool DefSymAction::activate(InputBuilder& pBuilder) const { pBuilder.createNode<InputTree::Positional>("defsym", sys::fs::Path("NAN")); Input* input = *pBuilder.getCurrentNode(); pBuilder.setContext(*input, false); m_Assignment.append(";"); pBuilder.setMemory(*input, &m_Assignment[0], m_Assignment.size()); return true; }
bool MemoryAreaAction::activate(InputBuilder& pBuilder) const { Input* input = *pBuilder.getCurrentNode(); if (input->hasMemArea()) return false; // already got type - for example, bitcode if (input->type() == Input::Script || input->type() == Input::Object || input->type() == Input::DynObj || input->type() == Input::Archive) return false; return pBuilder.setMemory(*input, m_Mode, m_Permission); }
bool ContextAction::activate(InputBuilder& pBuilder) const { Input* input = *pBuilder.getCurrentNode(); if (input->hasContext()) return false; // already got type - for example, bitcode if (input->type() == Input::Script || input->type() == Input::Object || input->type() == Input::DynObj || input->type() == Input::Archive) return false; return pBuilder.setContext(*input); }