Re-land [MC] Fix quadratic behavior in addPendingLabel
authorAlexandre Ganea <alexandre.ganea@ubisoft.com>
Sun, 26 Apr 2020 14:39:30 +0000 (10:39 -0400)
committerAlexandre Ganea <alexandre.ganea@ubisoft.com>
Sun, 26 Apr 2020 14:39:42 +0000 (10:39 -0400)
commitfd773e8a51b82775f411061117173a21b500642a
treeaced5a31091c4e8dac54d73146e9a7bc912df977
parentacbc5ede9916a22b06341647d94e5dff51af32a2
Re-land [MC] Fix quadratic behavior in addPendingLabel

This was discovered when compiling large unity/blob/jumbo files.

Differential Revision: https://reviews.llvm.org/D78775
llvm/include/llvm/MC/MCObjectStreamer.h
llvm/lib/MC/MCObjectStreamer.cpp