Changes in directory llvm/lib/Linker:
LinkItems.cpp updated: 1.10 -> 1.11 --- Log message: For PR1302: http://llvm.org/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 --- Diffs of the changes: (+8 -8) LinkItems.cpp | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) Index: llvm/lib/Linker/LinkItems.cpp diff -u llvm/lib/Linker/LinkItems.cpp:1.10 llvm/lib/Linker/LinkItems.cpp:1.11 --- llvm/lib/Linker/LinkItems.cpp:1.10 Wed Apr 4 01:33:17 2007 +++ llvm/lib/Linker/LinkItems.cpp Wed Apr 4 01:44:18 2007 @@ -32,10 +32,10 @@ I != E; ++I) { if (I->second) { // Link in the library suggested. - bool is_bytecode = true; - if (LinkInLibrary(I->first, is_bytecode)) + bool is_native = false; + if (LinkInLibrary(I->first, is_native)) return true; - if (!is_bytecode) + if (is_native) NativeItems.push_back(*I); } else { // Link in the file suggested @@ -52,10 +52,10 @@ // that module should also be aggregated with duplicates eliminated. This is // now the time to process the dependent libraries to resolve any remaining // symbols. - bool is_bytecode; + bool is_native; for (Module::lib_iterator I = Composite->lib_begin(), E = Composite->lib_end(); I != E; ++I) - if(LinkInLibrary(*I, is_bytecode)) + if(LinkInLibrary(*I, is_native)) return true; return false; @@ -113,9 +113,9 @@ bool Linker::LinkInLibraries(const std::vector<std::string> &Libraries) { // Process the set of libraries we've been provided. - bool is_bytecode; + bool is_native = false; for (unsigned i = 0; i < Libraries.size(); ++i) - if (LinkInLibrary(Libraries[i], is_bytecode)) + if (LinkInLibrary(Libraries[i], is_native)) return true; // At this point we have processed all the libraries provided to us. Since @@ -126,7 +126,7 @@ const Module::LibraryListType& DepLibs = Composite->getLibraries(); for (Module::LibraryListType::const_iterator I = DepLibs.begin(), E = DepLibs.end(); I != E; ++I) - if (LinkInLibrary(*I, is_bytecode)) + if (LinkInLibrary(*I, is_native)) return true; return false; _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits