mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-04 07:32:13 +00:00
For PR1302:
Use local variable names that match the function parameter name that it is passed to so the code is more clear, to wit: is_bytecode -> is_native git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35656 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0091bf2439
commit
c07cfdda02
@ -32,10 +32,10 @@ Linker::LinkInItems(const ItemList& Items, ItemList& NativeItems) {
|
|||||||
I != E; ++I) {
|
I != E; ++I) {
|
||||||
if (I->second) {
|
if (I->second) {
|
||||||
// Link in the library suggested.
|
// Link in the library suggested.
|
||||||
bool is_bytecode = true;
|
bool is_native = false;
|
||||||
if (LinkInLibrary(I->first, is_bytecode))
|
if (LinkInLibrary(I->first, is_native))
|
||||||
return true;
|
return true;
|
||||||
if (!is_bytecode)
|
if (is_native)
|
||||||
NativeItems.push_back(*I);
|
NativeItems.push_back(*I);
|
||||||
} else {
|
} else {
|
||||||
// Link in the file suggested
|
// Link in the file suggested
|
||||||
@ -52,10 +52,10 @@ Linker::LinkInItems(const ItemList& Items, ItemList& NativeItems) {
|
|||||||
// that module should also be aggregated with duplicates eliminated. This is
|
// that module should also be aggregated with duplicates eliminated. This is
|
||||||
// now the time to process the dependent libraries to resolve any remaining
|
// now the time to process the dependent libraries to resolve any remaining
|
||||||
// symbols.
|
// symbols.
|
||||||
bool is_bytecode;
|
bool is_native;
|
||||||
for (Module::lib_iterator I = Composite->lib_begin(),
|
for (Module::lib_iterator I = Composite->lib_begin(),
|
||||||
E = Composite->lib_end(); I != E; ++I)
|
E = Composite->lib_end(); I != E; ++I)
|
||||||
if(LinkInLibrary(*I, is_bytecode))
|
if(LinkInLibrary(*I, is_native))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
@ -113,9 +113,9 @@ bool Linker::LinkInLibrary(const std::string& Lib, bool& is_native) {
|
|||||||
bool Linker::LinkInLibraries(const std::vector<std::string> &Libraries) {
|
bool Linker::LinkInLibraries(const std::vector<std::string> &Libraries) {
|
||||||
|
|
||||||
// Process the set of libraries we've been provided.
|
// Process the set of libraries we've been provided.
|
||||||
bool is_bytecode;
|
bool is_native = false;
|
||||||
for (unsigned i = 0; i < Libraries.size(); ++i)
|
for (unsigned i = 0; i < Libraries.size(); ++i)
|
||||||
if (LinkInLibrary(Libraries[i], is_bytecode))
|
if (LinkInLibrary(Libraries[i], is_native))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
// At this point we have processed all the libraries provided to us. Since
|
// At this point we have processed all the libraries provided to us. Since
|
||||||
@ -126,7 +126,7 @@ bool Linker::LinkInLibraries(const std::vector<std::string> &Libraries) {
|
|||||||
const Module::LibraryListType& DepLibs = Composite->getLibraries();
|
const Module::LibraryListType& DepLibs = Composite->getLibraries();
|
||||||
for (Module::LibraryListType::const_iterator I = DepLibs.begin(),
|
for (Module::LibraryListType::const_iterator I = DepLibs.begin(),
|
||||||
E = DepLibs.end(); I != E; ++I)
|
E = DepLibs.end(); I != E; ++I)
|
||||||
if (LinkInLibrary(*I, is_bytecode))
|
if (LinkInLibrary(*I, is_native))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user