Re-land r348335 "[XRay] Move-only Allocator, FunctionCallTrie, and Array"
authorDean Michael Berris <dberris@google.com>
Thu, 6 Dec 2018 00:25:56 +0000 (00:25 +0000)
committerDean Michael Berris <dberris@google.com>
Thu, 6 Dec 2018 00:25:56 +0000 (00:25 +0000)
commitcb447a260446de91592227643e4775bd2fe54f2e
tree2d51b3b94d4f8b95a4be447dbd0b9e7261bd2db5
parent2d36473873c6176f0658a95796046b383def2ac1
Re-land r348335 "[XRay] Move-only Allocator, FunctionCallTrie, and Array"

Continuation of D54989.

Additional changes:

  - Use `.AppendEmplace(...)` instead of `.Append(Type{...})` to appease
    GCC 4.8 with confusion on when an initializer_list is used as
    opposed to a temporary aggregate initialized object.

llvm-svn: 348438
compiler-rt/lib/xray/tests/unit/function_call_trie_test.cc
compiler-rt/lib/xray/tests/unit/segmented_array_test.cc
compiler-rt/lib/xray/xray_allocator.h
compiler-rt/lib/xray/xray_function_call_trie.h
compiler-rt/lib/xray/xray_profile_collector.cc
compiler-rt/lib/xray/xray_profiling.cc
compiler-rt/lib/xray/xray_segmented_array.h