summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDecl.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-03-01 22:58:13 +0000
committerDevang Patel <dpatel@apple.com>2011-03-01 22:58:13 +0000
commit40eee1e9700153e40d075f0e9009b42d37ef9ab0 (patch)
tree9b1bfd7acfa3083665b431ece1c75d1caf6081bb /clang/lib/CodeGen/CGDecl.cpp
parentcf386e24ab4ea80411515e62904002a66f1ff576 (diff)
downloadbcm5719-llvm-40eee1e9700153e40d075f0e9009b42d37ef9ab0.tar.gz
bcm5719-llvm-40eee1e9700153e40d075f0e9009b42d37ef9ab0.zip
Today, the language front ends produces llvm.dbg.* intrinsics, used to encode arguments' debug info, in order any way, most of the times. However, if a front end mix-n-matches llvm.dbg.declare and llvm.dbg.value intrinsics to encode debug info for arguments then code generator needs a way to find argument order.
Use 8 bits from line number field to keep track of argument ordering while encoding debug info for an argument. That leaves 24 bit for line no, DebugLoc also allocates 24 bit for line numbers. If a function has more than 255 arguments then rest of the arguments will be ordered by llvm.dbg.* intrinsics' ordering in IR. llvm-svn: 126793
Diffstat (limited to 'clang/lib/CodeGen/CGDecl.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud