Renaming monicelli::plist to monicelli::plist_of
This commit is contained in:
parent
b2e7a11b7a
commit
711f693f55
|
@ -587,6 +587,10 @@ bool BitcodeEmitter::emit(Program const& program) {
|
|||
GUARDED(proto.emit(this));
|
||||
}
|
||||
|
||||
for (Function const& function: program.getFunctions()) {
|
||||
GUARDED(function.getPrototype().emit(this));
|
||||
}
|
||||
|
||||
for (Function const& function: program.getFunctions()) {
|
||||
GUARDED(function.emit(this));
|
||||
}
|
||||
|
|
|
@ -53,7 +53,7 @@ void ModuleRegistry::registerFunction(FunctionPrototype *proto) {
|
|||
#define PUT(type, funcname) \
|
||||
new FunctionPrototype { \
|
||||
new Id {#funcname}, Type::VOID, \
|
||||
plist({ \
|
||||
plist_of({ \
|
||||
new FunArg {new Id {"value"}, type, false} \
|
||||
}), \
|
||||
}
|
||||
|
@ -77,7 +77,7 @@ void monicelli::registerStdLib(ModuleRegistry &r) {
|
|||
r.registerFunction(GET(Type::INT, __Monicelli_getInt));
|
||||
r.registerFunction(new FunctionPrototype {
|
||||
new Id("__Monicelli_assert"), Type::VOID,
|
||||
plist({
|
||||
plist_of({
|
||||
new FunArg {new Id("condition"), Type::CHAR, false}
|
||||
})
|
||||
});
|
||||
|
|
|
@ -33,7 +33,7 @@ template<typename T> using PointerList = boost::ptr_vector<T>;
|
|||
template<typename T> using PointerSet = boost::ptr_unordered_set<T>;
|
||||
|
||||
template<typename T>
|
||||
PointerList<T>* plist(std::initializer_list<T*> elements) {
|
||||
PointerList<T>* plist_of(std::initializer_list<T*> elements) {
|
||||
PointerList<T> *result = new PointerList<T>(elements.size());
|
||||
for (T *el: elements) {
|
||||
result->push_back(el);
|
||||
|
|
Reference in New Issue
Block a user