diff options
author | Daniel Jasper <djasper@google.com> | 2012-12-18 21:05:13 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2012-12-18 21:05:13 +0000 |
commit | 2af6bbe7e0fae3eebb4ea3992c44dd10b38536c2 (patch) | |
tree | f9745faa6895d577bbf6fea13476d86792a5e846 /llvm/lib/CodeGen/MachineInstr.cpp | |
parent | 78eaf05fa72bd1376c0923329953fec20671b6b6 (diff) | |
download | bcm5719-llvm-2af6bbe7e0fae3eebb4ea3992c44dd10b38536c2.tar.gz bcm5719-llvm-2af6bbe7e0fae3eebb4ea3992c44dd10b38536c2.zip |
Better support for constructor initializers.
We used to format initializers like this (with a sort of hacky implementation):
Constructor()
: Val1(A),
Val2(B) {
and now format like this (with a somewhat better solution):
Constructor()
: Val1(A), Val2(B) {
assuming this would not fit on a single line. Also added tests.
As a side effect we now first analyze whether an UnwrappedLine needs to be
split at all. If not, not splitting it is the best solution by definition. As
this should be a very common case in normal code, not exploring the entire
solution space can provide significant speedup.
llvm-svn: 170457
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
0 files changed, 0 insertions, 0 deletions