aboutsummaryrefslogtreecommitdiff
path: root/lib/VMCore/Module.cpp
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2003-07-23 18:37:06 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2003-07-23 18:37:06 +0000
commit92bdfe6951df4c59be569d9f143190d5eba87305 (patch)
tree394047301286774d52abcd6ef6b8c4b01146756a /lib/VMCore/Module.cpp
parentad44ebfff027899f45a645586a9a8bd3cb317eb5 (diff)
Add, rewrite, and/or reformat many comments.
Stop passing ostreams around: we already have one perfectly good ostream and we can all share it. Stop stashing a pointer to TargetData in the Pass object, because that will lead to a crash if there are no functions in the module (ouch!) Instead, use addRequired() and getAnalysis(), like we always should have done. Move the check for ConstantExpr up before the check for isPrimitiveType, because we need to be able to catch e.g. ubyte (cast bool false to ubyte), whose type is primitive but which is nevertheless a ConstantExpr, by calling our specialized handler instead of the AsmWriter. This would result in assembler errors when we would try to output something like ".byte (cast bool false to ubyte)". GC some unused variable declarations. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7265 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Module.cpp')
0 files changed, 0 insertions, 0 deletions