use std::vector instead of std::list for both Section and Symbol lists because

we care more about random access than insertion/deletion of elements.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75828 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bruno Cardoso Lopes
2009-07-15 20:49:10 +00:00
parent cf20031f60
commit 4b70fab658
5 changed files with 193 additions and 190 deletions

View File

@@ -65,6 +65,8 @@ long int X86ELFWriterInfo::getAddendForRelTy(unsigned RelTy) const {
switch(RelTy) {
case R_X86_64_PC32: return -4;
break;
case R_X86_64_32: return 0;
break;
default:
llvm_unreachable("unknown x86 relocation type");
}