[codegen/alignment_info] better handling of constants

This commit is contained in:
Philippe Tillet
2019-07-18 16:12:06 -07:00
parent 86f70f8224
commit f0d8306437
11 changed files with 57 additions and 33 deletions

View File

@@ -71,6 +71,13 @@ constant *constant_range::get(constant_int *first, constant_int *last) {
return new constant_range(ty, first, last);
}
const constant_int* constant_range::get_first() const {
return first_;
}
const constant_int* constant_range::get_last() const {
return last_;
}
// constant_fp
// FIXME use something like APFloat