mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Prune #includes from llvm/Linker.h and llvm/System/Path.h,
forcing them down into various .cpp files. This change also: 1. Renames TimeValue::toString() and Path::toString() to ::str() for similarity with the STL. 2. Removes all stream insertion support for sys::Path, forcing clients to call .str(). 3. Removes a use of Config/alloca.h from bugpoint, using smallvector instead. 4. Weans llvm-db off <iostream> sys::Path really needs to be gutted, but I don't have the desire to do it at this point. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79869 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -344,8 +344,8 @@ Archive::getAllModules(std::vector<Module*>& Modules,
|
||||
|
||||
for (iterator I=begin(), E=end(); I != E; ++I) {
|
||||
if (I->isBitcode()) {
|
||||
std::string FullMemberName = archPath.toString() +
|
||||
"(" + I->getPath().toString() + ")";
|
||||
std::string FullMemberName = archPath.str() +
|
||||
"(" + I->getPath().str() + ")";
|
||||
MemoryBuffer *Buffer =
|
||||
MemoryBuffer::getNewMemBuffer(I->getSize(), FullMemberName.c_str());
|
||||
memcpy((char*)Buffer->getBufferStart(), I->getData(), I->getSize());
|
||||
@@ -484,8 +484,8 @@ Archive::findModuleDefiningSymbol(const std::string& symbol,
|
||||
return 0;
|
||||
|
||||
// Now, load the bitcode module to get the ModuleProvider
|
||||
std::string FullMemberName = archPath.toString() + "(" +
|
||||
mbr->getPath().toString() + ")";
|
||||
std::string FullMemberName = archPath.str() + "(" +
|
||||
mbr->getPath().str() + ")";
|
||||
MemoryBuffer *Buffer =MemoryBuffer::getNewMemBuffer(mbr->getSize(),
|
||||
FullMemberName.c_str());
|
||||
memcpy((char*)Buffer->getBufferStart(), mbr->getData(), mbr->getSize());
|
||||
@@ -534,8 +534,8 @@ Archive::findModulesDefiningSymbols(std::set<std::string>& symbols,
|
||||
if (mbr->isBitcode()) {
|
||||
// Get the symbols
|
||||
std::vector<std::string> symbols;
|
||||
std::string FullMemberName = archPath.toString() + "(" +
|
||||
mbr->getPath().toString() + ")";
|
||||
std::string FullMemberName = archPath.str() + "(" +
|
||||
mbr->getPath().str() + ")";
|
||||
ModuleProvider* MP =
|
||||
GetBitcodeSymbols((const unsigned char*)At, mbr->getSize(),
|
||||
FullMemberName, Context, symbols, error);
|
||||
@@ -552,7 +552,7 @@ Archive::findModulesDefiningSymbols(std::set<std::string>& symbols,
|
||||
} else {
|
||||
if (error)
|
||||
*error = "Can't parse bitcode member: " +
|
||||
mbr->getPath().toString() + ": " + *error;
|
||||
mbr->getPath().str() + ": " + *error;
|
||||
delete mbr;
|
||||
return false;
|
||||
}
|
||||
@@ -612,7 +612,7 @@ bool Archive::isBitcodeArchive() {
|
||||
continue;
|
||||
|
||||
std::string FullMemberName =
|
||||
archPath.toString() + "(" + I->getPath().toString() + ")";
|
||||
archPath.str() + "(" + I->getPath().str() + ")";
|
||||
|
||||
MemoryBuffer *Buffer =
|
||||
MemoryBuffer::getNewMemBuffer(I->getSize(), FullMemberName.c_str());
|
||||
|
||||
Reference in New Issue
Block a user