mirror of
https://github.com/exaloop/codon.git
synced 2025-06-03 15:03:52 +08:00
* namespace seq to codon * using namespace seq -> codon * seq:: to codon:: Co-authored-by: ‘markhend’ <‘markhend@gmail.com’>
20 lines
341 B
C++
20 lines
341 B
C++
#include "const.h"
|
|
|
|
namespace codon {
|
|
namespace ir {
|
|
|
|
const char Const::NodeId = 0;
|
|
|
|
int Const::doReplaceUsedType(const std::string &name, types::Type *newType) {
|
|
if (type->getName() == name) {
|
|
type = newType;
|
|
return 1;
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
const char TemplatedConst<std::string>::NodeId = 0;
|
|
|
|
} // namespace ir
|
|
} // namespace codon
|