aboutsummaryrefslogtreecommitdiff
path: root/examples/ModuleMaker/ModuleMaker.cpp
diff options
context:
space:
mode:
authorDan Gohman <sunfish@google.com>2014-02-13 18:33:37 -0800
committerDan Gohman <sunfish@google.com>2014-02-14 11:00:47 -0800
commit35c77715ea2991eaf0b433ec48d9e43ec54c0269 (patch)
tree24b064359a510e38875082fff7ebc9a291e49350 /examples/ModuleMaker/ModuleMaker.cpp
parent4875328877ab82284e108c6c858ffba929cf8488 (diff)
Use DataLayout to determine type size.
getPrimitiveSizeInBits works on integer types but not on pointer types. This change makes the code more robust, and will help support the removal of the pointer lowering pass. This also requires removing const from some Type pointers. Types are immutable, so the convention is that const is redundant.
Diffstat (limited to 'examples/ModuleMaker/ModuleMaker.cpp')
0 files changed, 0 insertions, 0 deletions