mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 21:24:00 +00:00
Object: Add some types to SymbolRef::Type.
Some of these can be true at the same time and there are a lot to add, so this should be turned into a bitfield. Some of the other accessors should probably be folded into this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142318 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -621,6 +621,12 @@ error_code ELFObjectFile<target_endianness, is64Bits>
|
||||
}
|
||||
|
||||
switch (symb->getType()) {
|
||||
case ELF::STT_SECTION:
|
||||
Result = SymbolRef::ST_Debug;
|
||||
break;
|
||||
case ELF::STT_FILE:
|
||||
Result = SymbolRef::ST_File;
|
||||
break;
|
||||
case ELF::STT_FUNC:
|
||||
Result = SymbolRef::ST_Function;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user