For COFF and MachO, compute the gap between to symbols.

Before r238028 we used to do this in O(N^2), now we do it in O(N log N).

llvm-svn: 238698
diff --git a/llvm/test/DebugInfo/debuglineinfo-macho.test b/llvm/test/DebugInfo/debuglineinfo-macho.test
index a8dfe3c..ac292d9 100644
--- a/llvm/test/DebugInfo/debuglineinfo-macho.test
+++ b/llvm/test/DebugInfo/debuglineinfo-macho.test
@@ -1,7 +1,12 @@
 # Check that relocations get applied
 RUN: llvm-dwarfdump %p/Inputs/test-simple-macho.o | FileCheck %s
 RUN: llvm-dwarfdump %p/Inputs/test-multiple-macho.o | FileCheck %s
-RUN: llvm-rtdyld -printline %p/Inputs/test-multiple-macho.o | FileCheck %s
+RUN: llvm-rtdyld -printline %p/Inputs/test-multiple-macho.o | \
+RUN:   FileCheck --check-prefix=SIZE %s
 RUN: llvm-rtdyld -printobjline %p/Inputs/test-multiple-macho.o | FileCheck %s
 
+SIZE: Function: _bar, Size = 48
+SIZE: Function: _foo, Size = 16
+SIZE: Function: _fubar, Size = 46
+
 CHECK-NOT: error: failed to compute relocation: X86_64_RELOC_UNSIGNED