Special case the creation of relocation sections.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 30 Mar 2015 13:39:16 +0000 (13:39 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 30 Mar 2015 13:39:16 +0000 (13:39 +0000)
commit0bd11cd898ae3bda83ed5cfd81335534954905f5
tree1db0cb6e0f41eb1279ea23b6914d5d3e3b2452a2
parent35efeb5e16b492df88d8653914ea784ef663d79f
Special case the creation of relocation sections.

These sections are never looked up and we know when have to create them. Use
that to save adding them to the regular map and avoid a symbol->string->symbol
conversion for the group symbol.

This also makes the implementation independent of the details of how unique
sections are implemented.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233539 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCContext.h
lib/MC/ELFObjectWriter.cpp
lib/MC/MCContext.cpp