aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineModuleInfo.cpp
diff options
context:
space:
mode:
authorNathan Lanza <nathan@lanza.io>2018-11-05 22:55:30 +0000
committerNathan Lanza <nathan@lanza.io>2018-11-05 22:55:30 +0000
commit8b73fa61d17cd2bf8104e1488edb213f00306238 (patch)
tree66881e45ac964e4317e672d719ffa504ddf0b490 /llvm/lib/CodeGen/MachineModuleInfo.cpp
parent08c41659ef78a25573fde7728fc2d8dbb9cda5da (diff)
downloadllvm-8b73fa61d17cd2bf8104e1488edb213f00306238.zip
llvm-8b73fa61d17cd2bf8104e1488edb213f00306238.tar.gz
llvm-8b73fa61d17cd2bf8104e1488edb213f00306238.tar.bz2
Adjust the comment section of CreateSource to account for lines longer than 60
Summary: On rare occasions, the address, instruction and arguments of a line of assembly in the CreateSource printout would reach > 60 characters. The function would integer overflow and try to indent a line by `0xfff...`. Change the calculated offset to be the maximum of 60 or `line_strm.str().size()` Reviewers: clayborg, xiaobai Reviewed By: clayborg Differential Revision: https://reviews.llvm.org/D52745 llvm-svn: 346179
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp')
0 files changed, 0 insertions, 0 deletions