mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Simplify getSymbolType.
This is still a really odd function. Most calls are in object format specific contexts and should probably be replaced with a more direct query, but at least now this is not too obnoxious to use. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240777 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -265,10 +265,7 @@ static int printLineInfoForInput(bool LoadObjects, bool UseDebugObj) {
|
||||
// Use symbol info to iterate functions in the object.
|
||||
for (const auto &P : SymAddr) {
|
||||
object::SymbolRef Sym = P.first;
|
||||
object::SymbolRef::Type SymType;
|
||||
if (Sym.getType(SymType))
|
||||
continue;
|
||||
if (SymType == object::SymbolRef::ST_Function) {
|
||||
if (Sym.getType() == object::SymbolRef::ST_Function) {
|
||||
StringRef Name;
|
||||
uint64_t Addr;
|
||||
if (Sym.getName(Name))
|
||||
|
Reference in New Issue
Block a user