Changeset 3798 in CLRX


Ignore:
Timestamp:
Feb 15, 2018, 12:54:56 PM (20 months ago)
Author:
matszpk
Message:

CLRadeonExtender: AsmROCm: Move got symbols populating to prepareBinary.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CLRadeonExtender/trunk/amdasm/AsmROCmFormat.cpp

    r3797 r3798  
    26432643    // add symbols before section diffs prepping
    26442644    addSymbols(false);
     2645    output.gotSymbols.resize(gotSymbols.size());
    26452646   
    26462647    if (good)
     
    27392740    dataSymbols.insert(dataSymbols.end(), output.symbols.begin(), output.symbols.end());
    27402741    output.symbols = std::move(dataSymbols);
     2742}
     2743
     2744bool AsmROCmHandler::prepareBinary()
     2745{
     2746    if (unresolvedGlobals)
     2747    {
     2748        // add and update symbols after section diffs prepping only
     2749        // if we have unresolved globals
     2750        addSymbols(true);
     2751        binGen->updateSymbols();
     2752    }
    27412753   
    27422754    if (gotSymbols.empty())
    2743         return;
     2755        return good;
    27442756   
    27452757    // create map to speedup finding symbol indices
     
    27942806        }
    27952807    }
    2796 }
    2797 
    2798 bool AsmROCmHandler::prepareBinary()
    2799 {
    2800     if (unresolvedGlobals)
    2801     {
    2802         // add and update symbols after section diffs prepping only
    2803         // if we have unresolved globals
    2804         addSymbols(true);
    2805         binGen->updateSymbols();
    2806     }
    28072808    return good;
    28082809}
Note: See TracChangeset for help on using the changeset viewer.